Skip to content

Latest commit

 

History

History
 
 

gen2-ocr

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

中文文档

[Gen2] Text Detection + Optical Character Recognition (OCR) Pipeline

This pipeline implements text detection (EAST) followed by optical character recognition of the detected text. It implements issue #124.

How to Run

This example uses the Gen2 Pipeline Builder, so make sure to install the requirements below to make sure the appropriate Gen2 API version.

python3 -m pip install -r requirements.txt

After installing the requirements, running this pipeline is as simple as:

python3 main.py

Example Results

Upon running, you can point this at text of interest to get the detection and the resultant text in the detected areas (and the locations of the text in pixel space).

Note that the more text in the frame, the slower the network will run - as it is running OCR on every detected region of text.
And you will see this variance in the examples below:

Text Detection + OCR on DepthAI

Text Detection + OCR on DepthAI

Text Detection + OCR on DepthAI