Git Product home page Git Product logo

Comments (10)

yashpungaliya avatar yashpungaliya commented on May 26, 2024

This looks like a rather interesting problem because the orientation of an image can be arbitrary and can be decided only based on the content of the image. It would not always mean that the image should be in a Landscape/Portrait mode because the text on the image will determine its orientation.

For this, I suggest that we can use CV to detect a small sample of text on the image(even detecting the orientation of a character might work and make our lives easier). Based on this ,we rotate the image..

Possible issues-
1.Text is aligned both ways on the image.
2.Text is absent.
3.Vertically aligned text.

from openfoodfacts-ai.

teolemon avatar teolemon commented on May 26, 2024

@stephanegigandet Can we generate a dataset with a day's worth of selected ingredient pictures ?

from openfoodfacts-ai.

teolemon avatar teolemon commented on May 26, 2024

@stephanegigandet It has to be recent pictures, so that many ingredient lists are still poorly rotated.

from openfoodfacts-ai.

JyotsanaS avatar JyotsanaS commented on May 26, 2024

@teolemon I have created a small dataset of about 27 images which need rotation for ingredients and nutrition table.
https://github.com/JyotsanaS/off/tree/master/autorotate

from openfoodfacts-ai.

ash-kmr avatar ash-kmr commented on May 26, 2024

If no one is working on this issue, can I start working on it?

from openfoodfacts-ai.

Anubhav-Bhargava avatar Anubhav-Bhargava commented on May 26, 2024

This problem is similar to this StrackOverflow Question.
Tried the script on bunch of different images provided by @JyotsanaS.
The results are good but it sometimes detects the angle to be negative of the actual value (and vice versa), so the image is sometimes rotated in opposite direction.

from openfoodfacts-ai.

ash-kmr avatar ash-kmr commented on May 26, 2024

@Anubhav-Bhargava I think using image processing techniques ( non machine learning ) might not perform well on diverse data but I can be wrong here. I think this problem can be better solved using deep learning, I did see some papers on it which I am going to try now, lets see what technique works out better to solve this problem.

from openfoodfacts-ai.

llucifer97 avatar llucifer97 commented on May 26, 2024

Hi @teolemon if no one is working on this issue i would like to solve this issue?

from openfoodfacts-ai.

raphael0202 avatar raphael0202 commented on May 26, 2024

@teolemon Implemented in Robotoff, we should discuss how to use this feature in OFF

from openfoodfacts-ai.

teolemon avatar teolemon commented on May 26, 2024

@raphael0202 Perhaps in HungerGames ?

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.