Click here to Skip to main content
15,559,275 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I just started opencv
I converted a picture into a text file with opencv and I want to compare the similarities with the code with the ready text file I have, how can I code it? can anyone help?


What I have tried:

I did some research but couldn't come to a conclusion. Thank you in advance to those who will help.
Posted
Updated 4-Apr-22 23:51pm

1 solution

Don't even think about it.

"Similarities" in an image are complicated enough: a shade off, a slight change in size or alignment, a small rotation - these are difficult enough for a computer to spot in an actual picture: image similarity python - Google Search[^]
But converted to text? once you do that, you have no real idea even what shape the image was, much less what format the data might have been (and a JPG file content will be very different from a Bitmap or PNG file!).

Follow a few of those links, and use the packages to compare actual images, not a text "representation".
 
Share this answer
 
Comments
CPallini 5-Apr-22 6:36am    
5.
Member 15590963 6-Apr-22 6:57am    
I realized that I didn't ask the question clearly enough. I want to make a classic question reading system with opencv. It gets high marks as long as there are similar words, but I don't know how to check the correctness of the sentences.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900