Skip to content
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

CV2-4187-Determine-what-percentage-of-an-image-is-text #445

Merged

Conversation

ahmednasserswe
Copy link
Contributor

Adding logging to Image OCR response so we can gather data about the boxes size of texts inside images. This later will help determining when do we need to deal with images only as text depending on which percentage of an image is text.

Reference: CV2-4187 (to provide additional context)

app/main/controller/image_ocr_controller.py Outdated Show resolved Hide resolved
app/main/controller/image_ocr_controller.py Outdated Show resolved Hide resolved
* Revert "Merge pull request #444 from meedan/CV2-4187-Determine-what-percentage-of-an-image-is-text"

This reverts commit 40b5874, reversing
changes made to 10901da.

* resolving conflicts while reverting

* Revert "Print `texts` instead of `response` in `ImageOcrResource`"

This reverts commit 9314332.

* Revert "Merge pull request #443 from meedan/CV2-4187-Determine-what-percentage-of-an-image-is-text"

This reverts commit 10901da, reversing
changes made to b36ad46.

* resolving conflicts while reverting 8c76c20

* Revert "change the logging in image_ocr_controller.py to use `json.dumps(response)`"

This reverts commit 9052fda.

* Revert "Merge pull request #442 from meedan/CV2-4187-Determine-what-percentage-of-an-image-is-text"

This reverts commit b36ad46, reversing
changes made to 5413a6e.
… of github.com:meedan/alegre into CV2-4187-Determine-what-percentage-of-an-image-is-text
app/main/lib/google_client.py Outdated Show resolved Hide resolved
app/main/lib/google_client.py Show resolved Hide resolved
app/main/lib/google_client.py Outdated Show resolved Hide resolved
@DGaffney DGaffney self-requested a review September 4, 2024 16:07
Copy link
Contributor

@DGaffney DGaffney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my comments - almost there!

…ception` to `Exception` in `google_client.py`
Copy link

codeclimate bot commented Sep 4, 2024

Code Climate has analyzed commit 829536f and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Bug Risk 1

The test coverage on the diff in this pull request is 88.8% (50% is the threshold).

This pull request will bring the total coverage in the repository to 79.7%.

View more on Code Climate.

@DGaffney DGaffney self-requested a review September 4, 2024 21:42
@ahmednasserswe ahmednasserswe merged commit 439c2b1 into develop Sep 5, 2024
4 checks passed
This pull request was closed.
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.

3 participants