Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Implementing OCR using tesseract.js on a real device

$
0
0

@duncandege wrote:

I want to implement OCR and i am using tesseract.js. The code works fine when testing on the browser however when i run it on my android device, it shows blank page. Any idea will be of great help.
Here is my code:

import * as Tesseract from ‘tesseract.js’;

Tesseract.recognize("./img/img.jpg")
.progress((progress) => {
this.loader.present();
})
.then((tesseractResult) => {
this.loader.dismiss();
this.recognizedText = tesseractResult.text;
console.log(“this is the data we collected from image”);
this.alerts(this.recognizedText);
});

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>