Hey guys,
I am very new to image processing & OCR. But after a lot of trial and error.
I have reached to this point. I have a small image, cropped from larger
input and the image is pre-processed to maximise the visibility of the
number.
It is able to detect 10000 at the top, but it is not able to detect the
number on the bottom.
Here is the processed image I am working with.
.[image: processed image.jpeg]
I am running this in Browser using the tesseract.js node module, and here
is my code for the detection: Tried with default pageseg_mode, as well as
various other modes. 11 worked best out of all.
async function recognizeText(image) {
const worker = await createWorker('eng');
await worker.setParameters({
tessedit_char_whitelist: '0123456789',
tessedit_pageseg_mode: '11',
});
const ret = await worker.recognize(image);
console.log(ret.data.text);
await worker.terminate();
}
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/7e3e4683-2c35-42d2-ba72-8df2773d15b9n%40googlegroups.com.