77base
77base

Reputation: 59

Check If Part of an Image Exists Inside Another Image iOS (Image Processing)

I am trying to determine whether part of an image exists in another image. See the images below:

Full Image

second part of image that i want to check if he existing in the full image:

if the second part exists inside the full image then the function should return true

If it exists then it should draw a layer on the containing UIImageView outlining where it is found. I am done with finding a rect and place layer object on the same but stuck in scan for image existence of another image.

(i want to check if Part Of Image Existing In Another Image). Can anyone provide me with some help

Upvotes: 3

Views: 1723

Answers (1)

foundry
foundry

Reputation: 31745

Sounds as if you need to implement template matching.

OpenCV is a good tool for the job. Here is a tutorial:

http://docs.opencv.org/doc/tutorials/imgproc/histograms/template_matching/template_matching.html

Strongly recommended - install openCV via cocoaPods to save yourself a headache.

Upvotes: 2

Related Questions