First time here? Check out the FAQ!

Ask Your Question
0

OpenCV Java API to compare images

asked Feb 12 '14

jkandula gravatar image

updated Feb 12 '14

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

Preview: (hide)

Comments

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

Rui Marques gravatar imageRui Marques (Feb 25 '14)edit

1 answer

Sort by » oldest newest most voted
0

answered Feb 12 '14

updated Feb 12 '14

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

Preview: (hide)

Comments

Question Tools

Stats

Asked: Feb 12 '14

Seen: 6,550 times

Last updated: Feb 11 '14