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

Add system to flatten curved images #53

Open
teolemon opened this issue Jul 9, 2016 · 2 comments
Open

Add system to flatten curved images #53

teolemon opened this issue Jul 9, 2016 · 2 comments

Comments

@teolemon
Copy link
Member

teolemon commented Jul 9, 2016

What

Part of

@raphael0202
Copy link
Contributor

More details about this project by @HARSH-nith:

Problem

We are currently using Google Vision OCR in robotoff for extracting nutrition table data from images.
The performance of google vision OCR is good, But the main drawback with google OCR is that it performs very badly with the images having non-aligned curvature. Due to this problem, we are unable to extract nutrition tables from packages like bottles and jars.

Proposed solution

Curvature Correction is a smart approach that we can employ to solve the issue of nonaligned curvature. I think that we can use curvature correction as an image pre-processing technique.
Through this technique, the image will be pre-processed before being given to Google Vision OCR for extraction of nutrition table data from it.
I am planning to integrate the curvature correction feature into robotoff.

@ashish-2005
Copy link

ashish-2005 commented Feb 7, 2023

Hii !
I started working on the image curvature correction , and i am following the Mathematica solution which involve finding the Contours , but i am getting some miscellaneous result. my solution is able to find nutrition-table in some images and failing in others

It would be great if you can guide me here (@raphael0202 @teolemon )

My solution involve following steps:

  • blurring image with 9x9 filter
  • Getting binary image with adaptive threshold
  • Then finding contours and choosing the largest one as nutrition-table contour

RESULTS
results
image 1,3,4,5,7 and 9 have correct contours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To discuss and validate
Development

No branches or pull requests

3 participants