I use tesseract.js for detecting numbers in Node JS.
For example this is my image :
I run my script and it detects something like this:
289 ,0
And due to noises in the image, it considers space, other signs like comma and etc.
Is there anyway I can specify just numbers and no others signs like space and commas?
Also this is my code:
tesseract.recognize(
__dirname + '/Captcha.png',
'eng',
{ logger: m => console.log(m) }
).then(({ data: { text } }) => {
console.log(text);
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…