Changes

Jump to navigation Jump to search
88 bytes added ,  09:54, 29 October 2016
Line 1,996: Line 1,996:  
==== Choosing the product by barcode ====
 
==== Choosing the product by barcode ====
 
<pre>code=</pre>
 
<pre>code=</pre>
 +
Values:
 
==== Selecting a photo ====
 
==== Selecting a photo ====
 
<pre>imgid=</pre>
 
<pre>imgid=</pre>
 +
Values:
 
==== Rotating a photo ====
 
==== Rotating a photo ====
 
<pre>angle=</pre>
 
<pre>angle=</pre>
 +
Values:
 
==== Removing background on a photo ("White magic") ====
 
==== Removing background on a photo ("White magic") ====
 
<pre>white_magic=</pre>
 
<pre>white_magic=</pre>
 +
Values:
 
==== Color correction on a photo ====
 
==== Color correction on a photo ====
 
<pre>normalize=</pre>
 
<pre>normalize=</pre>
 +
Values:
 
==== Cropping a photo ====
 
==== Cropping a photo ====
 +
<pre></pre>
 +
Values:
 
==== Performing OCR on a photo ====
 
==== Performing OCR on a photo ====
 
<pre>
 
<pre>
 
$.post('/cgi/ingredients.pl',
 
$.post('/cgi/ingredients.pl',
{code: code, id: imagefield, process_image:1 }, function(data) {
+
{ }, function(data) {
 
 
 
if (data.status == 0) {
 
if (data.status == 0) {
Line 2,021: Line 2,028:  
}, 'json');
 
}, 'json');
 
</pre>
 
</pre>
 +
<pre>/cgi/ingredients.pl?code=code&id=imagefield&process_image=1</pre>
    
=== Posting a new product ===
 
=== Posting a new product ===

Navigation menu