playing around with tesseract.js following instructions here:
Please see attached demo I am getting the error:
Error in undefined: DataCloneError (DOM Exception 25): The object can not be cloned.
I have set the element ID and name to chip4.
I presume it is something to do with referencing the image ?
I suspect the issue is that the img element youβre getting is really a div; for image elements in Hype a <div> is constructed and then it uses the background-image CSS property (in most cases). The Tesseract.recognize() says that the Image Argument should be a different type, like an <img> tag.
You could probably get it to work by either supplying a URL in the argument or making your own <img> tag as the inner html of a rectangle element in Hype.
Iβve created an OCR reader by retrieving an image from a video stream. Works really well on iPhone. If anyone has any suggestions to make it better then please let me know