8000 feat: Implement auto-rotation for selected images using Google Cloud Vision predictions by areebahmeddd · Pull Request #1562 · openfoodfacts/robotoff · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Implement auto-rotation for selected images using Google Cloud Vision predictions #1562

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

areebahmeddd
Copy link
Member
@areebahmeddd areebahmeddd commented May 9, 2025

Signed-off-by: Areeb Ahmed areebshariff@acm.org

Description

This PR adds automatic rotation for selected images (front, nutrition, ingredients, and packaging) based on Google Cloud Vision OCR predictions.

Key Changes

• Introduced ImageOrientationImporter to process orientation predictions, filtering for selected images with high confidence (≥95%)
• Added ImageOrientationAnnotator to perform image rotation via the Product Opener API
• Ensured correct handling of bounding box coordinates during image rotation
• Added unit and integration tests

This addresses issue #971, reflecting the updated requirement to apply rotation only to selected images rather than all raw images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

1 participant
0