-
Notifications
You must be signed in to change notification settings - Fork 191
New ocr blocks #1430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
New ocr blocks #1430
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new EasyOCR block for extracting text from images using the EasyOCR Optical Character Recognition library. The implementation provides multi-language support and integrates with the existing workflow system.
- Implements a new EasyOCR block with support for 75+ character sets/languages
- Adds integration test with OCR text stitching workflow
- Registers the new block in the workflow system loader
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.
File | Description |
---|---|
inference/core/workflows/core_steps/models/third_party/easy_ocr/v1.py |
Core implementation of the EasyOCR block with manifest, character set mappings, and detection conversion logic |
inference/core/workflows/core_steps/loader.py |
Registration of the new EasyOCR block in the workflow system |
requirements/_requirements.txt |
Addition of easyocr dependency |
tests/workflows/integration_tests/execution/test_workflow_with_easy_ocr.py |
Integration test for EasyOCR functionality with text stitching |
Comments suppressed due to low confidence (1)
tests/workflows/integration_tests/execution/test_workflow_with_easy_ocr.py:44
- Function name is misleading - this test is for OCR workflow, not detection plus classification. Consider renaming to 'test_easy_ocr_workflow_when_minimal_valid_input_provided' or similar.
def test_detection_plus_classification_workflow_when_minimal_valid_input_provided(
inference/core/workflows/core_steps/models/third_party/easy_ocr/v1.py
Outdated
Show resolved
Hide resolved
…r/v1.py Remove print statement Co-authored-by: Copilot <[email protected]>
Description
Adding an EasyOCR block
Type of change
Please delete options that are not relevant.
How has this change been tested, please provide a testcase or example of how you tested the change?
Tested with various images, and execution test case included
Any specific deployment considerations
Included in block
Docs