Fix StringOp overflow and add Flask web interface for Tesseract OCR#4527
Open
sking85522 wants to merge 3 commits intotesseract-ocr:mainfrom
Open
Fix StringOp overflow and add Flask web interface for Tesseract OCR#4527sking85522 wants to merge 3 commits intotesseract-ocr:mainfrom
sking85522 wants to merge 3 commits intotesseract-ocr:mainfrom
Conversation
This commit resolves a `-Wstringop-overflow` compiler warning in `src/ccutil/helpers.h` by refactoring `ReverseN` to use a safe `switch` statement instead of a dynamically bounded loop. Additionally, it introduces a Python Flask web interface in `app.py` that allows users to upload images for text extraction. It includes an "Experimental Handwriting" mode using image preprocessing and custom Tesseract PSM/OEM configurations. The project is configured for deployment on Render using a Dockerfile. Co-authored-by: sking85522 <201207653+sking85522@users.noreply.github.com>
Author
|
dafs |
Contributor
|
This commit resolves a `-Wstringop-overflow` compiler warning in `src/ccutil/helpers.h` by refactoring `ReverseN` to use a safe `switch` statement instead of a dynamically bounded loop. Additionally, it introduces a Python Flask web interface in `app.py` that allows users to upload images for text extraction. It includes an "Experimental Handwriting" mode using image preprocessing and custom Tesseract PSM/OEM configurations. The project is configured for deployment on Render using a Dockerfile to ensure the Tesseract C++ engine can be built and accessed via the Flask app. The original C++ source files are preserved. Co-authored-by: sking85522 <201207653+sking85522@users.noreply.github.com>
This commit resolves a `-Wstringop-overflow` compiler warning in `src/ccutil/helpers.h` by refactoring `ReverseN` to use a safe `switch` statement instead of a dynamically bounded loop. Additionally, it introduces a Python Flask web interface in `app.py` that allows users to upload images for text extraction. It includes an "Experimental Handwriting" mode using image preprocessing and custom Tesseract PSM/OEM configurations. The project is configured for deployment on Render using a Dockerfile to ensure the Tesseract C++ engine can be built and accessed via the Flask app. The original C++ source files are preserved. Co-authored-by: sking85522 <201207653+sking85522@users.noreply.github.com>
Collaborator
Collaborator
|
Why my call to copilot didn't activate it? |
Member
|
You should have got a warning symbol with the text "Copilot isn't available for cross-repository pull requests". Copilot does not accept PR requests from existing PRs which were mady by someone else. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit resolves a
-Wstringop-overflowcompiler warning insrc/ccutil/helpers.hby refactoringReverseNto use a safeswitchstatement instead of a dynamically bounded loop.Additionally, it introduces a Python Flask web interface in
app.pythat allows users to upload images for text extraction. It includes an "Experimental Handwriting" mode using image preprocessing and custom Tesseract PSM/OEM configurations.The project is configured for deployment on Render using a Dockerfile.