Closed KaranbeerKaur closed 7 years ago
I am a little bit confused. If you need to compare images why are you capturing texts in image. What are you trying to achieve exactly ?
I want to compare images having images and text, But I want to compare images only not text. My query is how I can omit text compare, which settings I have to set to compare image only
Is this screenshot from a web site ? If you can be more descriptive, I can suggest you more appropriate tools for this.
Unfortunately there is no "recognize text" feature available in the node-resemble-js and it's not the right tool. Basically texts are pixels with colors and it's same for images. If you need text recognition in an image what you need is OCR tools.
A simple suggestion: Why not cropping image before comparing ?
Comparing "only images and not text" is out of the scope of this library. If your texts are in particular place, you can use ignoreRectangles, see example.
General solution would not be easy. In theory you have to employ OCR with "hOCR" results. Then you can use Hocr results as an input to the ignoreRectangles
. For instance see tessarect.js and it's GetHOCRText
method.
maybe close this?
Closed.
Hi,
How I can remove text while compare , if image has both text and image. I want to compare only image part and don't want to highlight text. I have attached image for reference.