Note
This is a community plugin, an external project maintained by its respective author. Community plugins are not part of FiftyOne core and may change independently. Please review each plugin’s documentation and license before use.
PyTesseract Optical Character Recognition Plugin#
Updates#
2023-10-19: Added support for customizing prediction fields, and embedded field for OCR text.
This plugin is a Python plugin that allows you to perform optical character recognition on documents using PyTesseract — the Python bindings for the Tesseract OCR engine!
Watch On Youtube#
Installation#
fiftyone plugins download https://github.com/jacobmarks/pytesseract-ocr-plugin
You will also need to install the plugin’s requirements:
pip install -r requirements.txt
Operators#
run_ocr_engine
#
Runs the PyTesseract OCR engine on the documents in the dataset, converts the results to FiftyOne labels, and stores individual word predictions as well as block-level predictions on the dataset.
Usage#
You can access the operator via the App’s action menu, or by pressing the “`” key on your keyboard and selecting the operator from the dropdown menu.
If you have a view loaded and/or samples selected, the operator will give you the option to run the OCR engine on only those samples or on the entire dataset.
You can either choose to run the operator in the foreground, or to delegate the execution of the operator to a background job.
Once you’ve generated OCR predictions, you can search through them using the Keyword Search plugin!