Difference between revisions of "OCR/Results"

From Open Food Facts wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
== Example ==
 
== Example ==
 
=== Image ===
 
=== Image ===
 +
http://static.openfoodfacts.ovh/images/products/40193045/ingredients.12.400.jpg
 
=== Output ===
 
=== Output ===
 +
<pre>
 +
http://static.openfoodfacts.ovh/images/products/40193045/ingredients.12.full.json
 +
 +
  u'responses':[ 
 +
      { 
 +
        u'textAnnotations':[ 
 +
            { 
 +
              u'locale':u'de',
 +
              u'description':              u'Doppelrahmstufe\nAT Kasezubereitung 60% F.LT\nzutaten:Frischkase,
 +
              2              gefriergetrockne\nter Gorgonzola,
 +
              Salz,
 +
              Verdickungsmittet\nJohannisbrotkernmehl und Guarkemmehlt\nAroma,
 +
              Stickstoff zum Aufschlagen\nNach dem Offnen alsbald verzehren\nUngeoffnet gekuhlt mindestens\nhaltbar bis:siehe Boden\nBY 706\nIn Deutschland hergestellt\n',
 +
              u'boundingPoly':{ 
 +
                  u'vertices':[ 
 +
                    { 
 +
                        u'y':232,
 +
                        u'x':190
 +
                    },
 +
                    { 
 +
                        u'y':232,
 +
                        u'x':1500
 +
                    },
 +
                    { 
 +
                        u'y':1410,
 +
                        u'x':1500
 +
                    },
 +
                    { 
 +
                        u'y':1410,
 +
                        u'x':190
 +
                    }
 +
                  ]
 +
              }
 +
            }
 +
        ]
 +
      }
 +
  ]
 +
}
 +
</pre>
 +
 
=== Comments===
 
=== Comments===
 +
 
== What to do ==
 
== What to do ==
 
=== Cropped front images ===
 
=== Cropped front images ===

Revision as of 12:14, 24 January 2016

How to process the 1.4 million JSON files we've generated

Example

Image

ingredients.12.400.jpg

Output

http://static.openfoodfacts.ovh/images/products/40193045/ingredients.12.full.json
{  
   u'responses':[  
      {  
         u'textAnnotations':[  
            {  
               u'locale':u'de',
               u'description':               u'Doppelrahmstufe\nAT Kasezubereitung 60% F.LT\nzutaten:Frischkase,
               2               gefriergetrockne\nter Gorgonzola,
               Salz,
               Verdickungsmittet\nJohannisbrotkernmehl und Guarkemmehlt\nAroma,
               Stickstoff zum Aufschlagen\nNach dem Offnen alsbald verzehren\nUngeoffnet gekuhlt mindestens\nhaltbar bis:siehe Boden\nBY 706\nIn Deutschland hergestellt\n',
               u'boundingPoly':{  
                  u'vertices':[  
                     {  
                        u'y':232,
                        u'x':190
                     },
                     {  
                        u'y':232,
                        u'x':1500
                     },
                     {  
                        u'y':1410,
                        u'x':1500
                     },
                     {  
                        u'y':1410,
                        u'x':190
                     }
                  ]
               }
            }
         ]
      }
   ]
}

Comments

What to do

Cropped front images

Cropped ingredient images

Cropped nutrition images

Raw images

Versions of the same product

Check complete products

Suggest values for incomplete products

Search engine (internal/external) considerations