Skip to content

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

New ocr blocks #1430

wants to merge 9 commits into from

Conversation

lou-roboflow
Copy link
Collaborator

Description

Adding an EasyOCR block

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • [ X] New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

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

  • [X ] Docs updated? What were the changes: Included in block

@Copilot Copilot AI review requested due to automatic review settings July 17, 2025 23:44
Copy link

@Copilot Copilot AI left a 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(

@roboflow roboflow deleted a comment from Copilot AI Jul 17, 2025
@roboflow roboflow deleted a comment from Copilot AI Jul 17, 2025
@roboflow roboflow deleted a comment from Copilot AI Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant