User talk:Dead project: Difference between revisions

Jump to navigation Jump to search
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 numWord = textDetector.findText(img, words);
   var recognizedText;  
   var recognizedText;  
   for (var ix = 0; ix < numWord; ix++) {
   for (var ix = 0; ix < words.length; ix++) {
     recognizedText = recognizedText  + words[ix] + " ";
     recognizedText = recognizedText  + words[ix] + " ";
   }
   }
Confirmed users
770

edits

Navigation menu