Skip to content

Run optical character recognition with PyTesseract from the FiftyOne App!

Notifications You must be signed in to change notification settings

jacobmarks/pytesseract-ocr-plugin

Repository files navigation

PyTesseract Optical Character Recognition Plugin

funsd_predictions

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

Video Thumbnail

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.

ocr_queue_job

💡 Once you've generated OCR predictions, you can search through them using the Keyword Search plugin!

funsd_block_predictions

Releases

No releases published

Packages

No packages published

Languages