Confirmed users
770
edits
| Line 72: | Line 72: | ||
// Do text recognition. | // Do text recognition. | ||
// We might use built-in detection function or OpenCV in asm.js | // We might use built-in detection function or OpenCV in asm.js | ||
var words | var words= textDetector.findText(img); | ||
var recognizedText; | var recognizedText; | ||
for (var ix = 0; ix < | for (var ix = 0; ix < words.length; ix++) { | ||
recognizedText = recognizedText + words[ix] + " "; | recognizedText = recognizedText + words[ix] + " "; | ||
} | } | ||