openfoodfacts/openfoodfacts-ios

Clone the ingredients extraction system for recycling instructions

teolemon opened this issue · 0 comments

Overview

  • Clone the ingredients extraction system for recycling instructions

Flow

It works exactly like the ingredients field, tab and addition workflow. This means although I've redocumented everything, you can mostly clone the ingredients code, or refactor it to be able to handle the packaging case

  1. Upload a packaging_image
    Same process as ingredients but field is: packaging_fr , packaging_en
  2. Request OCR output
    Request: cgi/packaging.pl?code=3454681006511&id=packaging_fr&process_image=1&ocr_engine=google_cloud_vision
    Response: {"packaging_text_from_image":"tia ac ","packaging_text_from_image_orig":null,"status":0}
    API to perform OCR on it: https://documenter.getpostman.com/view/8470508/SVtN3Wzy?version=latest#c911e8c8-2b88-44cd-8512-52fa55131396
  3. Get the user to validate it
  4. Send the validated result to packaging_text
    Same process as ingredients but field is: packaging_text_fr , packaging_text_en

Feature visible in the Web version

image