Search for a pattern inside an image

I searched the Internet a little to compare images, but could not find the final answers. What I want to do is to see if a specific template exists in a larger image. Is there a good way to do this in java (specifically for implementation on an Android device)?

+4
source share
1 answer

Yes, there are ways to do this, although you'll have to take a peek at JavaCV, which is Google's conversion to OpenCV libraries. In particular, you'll want to learn the APIs that map patterns.

There are several resources that will help you: http://myrobotlab.org/node/104

http://code.google.com/p/myrobotlab/source/browse/trunk/myrobotlab/src/org/myrobotlab/image/OpenCVFilterMatchTemplate.java

http://opencv.willowgarage.com/wiki/FastMatchTemplate

+2
source

Source: https://habr.com/ru/post/1395719/


All Articles