Added logic in ocr
This commit is contained in:
@@ -402,6 +402,8 @@ function cameraCapture() {
|
|||||||
|
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
|
||||||
|
console.log(data);
|
||||||
|
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
alert("OCR Result: " + data.text);
|
alert("OCR Result: " + data.text);
|
||||||
console.error(data.text);
|
console.error(data.text);
|
||||||
|
|||||||
Reference in New Issue
Block a user