Hello! Has anyone tried to import an OCR js librar...
# suitescript
j
Hello! Has anyone tried to import an OCR js library to their Suitelet? Just checking if this is something feasible in NS. Thank you!
w
I have had this before; it is probably possible, but not feasible, to port something like Tesseract to work within suitescript. You would be better off consuming an external OCR API or hosting your own OCR app.
Alternatively; you could have your suitelet just serve up a (Tesseract/whatever) library to the client and leave it to the client browser to do the processing. This would be slow and unreliable, but might work for you.
d
+1 for OCR API, something like Azure Forms Recognizer which is pretty cheap and very accurate
I have a couple of Tesseract based applications deployed at clients but wouldn't bother now with AI\ML based services out there.
j
Hi @dynamicl — I know it has been months since this was posted. By any chance I can get a copy/snippet of how you implemented Tesseract on client side?
d
Hey, these are actually C# based OCR apps using Tesseract, not NS. I'd still advocate using an OCR API, be quicker to develop and more accurate as they are trained on millions of documents. It wouldn't be that hard to knock up a pretty nice application in Angular\SuiteScript\Azure OCR.
👍 1
j
Agree! We're now considering Azure Form Recognizer. Thank you for your inputs!
👍 1
m
We have a pipeline project to integrate https://www.veryfi.com/ into NetSuite