-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Same photo with different brightness #2
Comments
You could convert both images to grayscale and then check for similarities. |
Thanks for the quick reply. |
The code you've written above should do it.
|
oopsss! Even if I tried it still it can't identify it as duplicate images :) I will have a look again. Do you have any idea how to change the code to show only the mismatching areas of the two images. Currently it's showing the matching areas using green color lines. I want to do it the other way round. I have already tried passing the mismatches to below method. But didn't work. I might be doing some crazy thing. :) I have no idea of OpenCV API. Any good resource to refer it. Thanks! /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Features2d.drawMatches(img1, keypoints, img2, dupKeypoints, /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
Thanks for the great effort. Need some help to solve the below mentioned issue.
I have noticed that if we use the same photo with different brightness it consider that two photos as "Not duplicates".
I have tried below example, but didn't work.
Imgproc.cvtColor(img1, img1, Imgproc.COLOR_RGB2HSV);
Imgproc.cvtColor(img2, img2, Imgproc.COLOR_RGB2HSV);
Could you please help me with this ?
Thanks!
The text was updated successfully, but these errors were encountered: