Features2D return TRUE if 2 Mat are matches

asked 2016-08-19 22:48:53 -0600

Sayugo gravatar image

updated 2016-08-20 06:10:35 -0600

Hello, I'm newbie in CV programming. Based on tutorial in Features2D I found that the detection of two images is not difficult. But the results of these tutorials is to show the keypoints of the two images and draw a line. My question is can I just get a boolean if the two images are the same or not. I do not need to display images from two matches Mat, I just need to know that both Mat is the same or not.

Let's say I have a picture of "A", then I insert the picture "A" is to the database. I also have a printed picture "A" on a piece of paper. When I show a printed picture of "A" to the camera, then my program will be able to instantly recognize the picture "A" is.

Thanks in advance for the reply.

edit retag flag offensive close merge delete

Comments

"My question is can I just get a boolean if the two images are the same or not"

then NO. it's the wrong tool for the job.

berak gravatar imageberak ( 2016-08-20 00:08:37 -0600 )edit

Okay, so OpenCV can compare 2 images, but cannot find if both images is same?

Sayugo gravatar imageSayugo ( 2016-08-20 05:19:07 -0600 )edit

define: "same".

berak gravatar imageberak ( 2016-08-20 05:23:06 -0600 )edit

same it means EQUAL

Sayugo gravatar imageSayugo ( 2016-08-20 05:24:19 -0600 )edit

image with red apple, image with green apple. same ?

berak gravatar imageberak ( 2016-08-20 05:26:03 -0600 )edit

X Y problem here.

please specify, what you need it for, the context. then we can discuss measures

berak gravatar imageberak ( 2016-08-20 05:27:35 -0600 )edit
1

No is not! May have been a misunderstanding here. Same, I mean are equal. So red apple is EQUAL to red apple, is not same with green apple. I'm sorry for the mistake, my bad.

Sayugo gravatar imageSayugo ( 2016-08-20 05:36:01 -0600 )edit