❔ Quick image finder in other image
Quick option to find a photo in another photo? For example, I have a picture of a cat that I pasted in 60 out of 100 pictures. I want the program to find which photos the cat is in.
7 Replies
Firstly, there's no good quick option for detecting / identifying images, assuming you have no prior experience in doing so. Images are not easy to work with.
Short and dumb idea: Assuming no major artifacts in image, and the photo of the cat has not been manipulated in ANY way (rotated, color changed, resized, cropped) when pasting, you could attempt to match the color values. This isn't a very robust option, and you'd probably want it to match based on some kind of configurable threshold to account for compression / artifacting. Would be easy for this to break and not work reliably.
Any form of transparency in the image of your cat would make the above harder to work with.
Long and not fun idea: Try and use some type of computer vision model trained on the image of your cat to detect it in the other photos. Don't really have any ML experience so I can't help you there.
i think opencv can do something like this
it should be able to, you'd just have to learn how to train a model on the image of your cat first
you can look at how pyautogui does it
GitHub
pyscreeze/init.py at b693ca9b2c964988a7e924a52f73e15db38511a8 ·...
PyScreeze is a simple, cross-platform screenshot module for Python 2 and 3. - pyscreeze/init.py at b693ca9b2c964988a7e924a52f73e15db38511a8 · asweigart/pyscreeze
run a bunch of random convolution filter and see if some sequences match. might work
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.