Ask Your Question
0

OpenCV Java API to compare images

asked 2014-02-11 18:15:41 -0600

jkandula gravatar image

updated 2014-02-12 02:21:48 -0600

berak gravatar image

hi I am looking for Java API which can

  1. compare the images
  2. Find if image is part of a larger image.

I know that there is a java api but not sure if the above functionality exist in the api. could some one point me to examples / api documentation?

thanks

edit retag flag offensive close merge delete

Comments

Java API: docs.opencv.org/java/‎

Rui Marques gravatar imageRui Marques ( 2014-02-25 16:19:36 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2014-02-11 21:58:42 -0600

updated 2014-02-11 22:00:04 -0600

Hi,

you should look for Template Matching. There's a function in Imgproc, called Imgproc.matchTemplate. There's a good explanation for C++ API here: http://docs.opencv.org/doc/tutorials/imgproc/histograms/template_matching/template_matching.html

It should be easy to convert to Java.

Besides, there's some more explanation in chapter 7 of "Learning OpenCV Computer Vision with the OpenCV Library".

Best regards, Daniel

edit flag offensive delete link more

Comments

Question Tools

Stats

Asked: 2014-02-11 18:15:41 -0600

Seen: 6,431 times

Last updated: Feb 11 '14