Search code examples
javaimageimage-processingimage-scaling

Image processing i.e. matching similar images in java


Is there a way where i can match some sort of screenshots with earlier stored images in my system. Consider 2 images i want to compare A and B. A is full screenshot of monitor whereas B corresponds to a particular window say a small image. My problem is to find whether A contains B or not?


Solution

  • For image processing I suggest using OpenCV library to get started. It has feature detectors which you can use to detect and find similar objects within an image like this. There are quite a few examples online you can use to perform the function you need. It is a pretty big topic so I can't share a lot, but I hope this can give you a head start :)

    Image Similarity Java

    Feature Matching Java (Stackoverflow answer)

    Feature Matching Example