Git Product home page Git Product logo

Comments (2)

raphael0202 avatar raphael0202 commented on May 26, 2024

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.

from openfoodfacts-ai.

ashish-2005 avatar ashish-2005 commented on May 26, 2024

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

from openfoodfacts-ai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.