Changes

Jump to navigation Jump to search
345 bytes added ,  14:16, 29 October 2016
Line 2,056: Line 2,056:     
==== Performing OCR on a photo ====
 
==== Performing OCR on a photo ====
 +
We start from a source image (defined by barcode and id) as selected for ingredients. We ask Product Opener to process it (process_image=1). Product Opener returns a JSON. Processing is done using Tesseract (3 on preprod). The result is often cripped with error. Take steps to avoid direct copy pasting into the ingredients field by your users.
 +
 
<pre>
 
<pre>
 
$.post('/cgi/ingredients.pl',
 
$.post('/cgi/ingredients.pl',
Line 2,081: Line 2,083:     
This will return JSON
 
This will return JSON
      
==== URL for the image manipulation API ====
 
==== URL for the image manipulation API ====

Navigation menu