Sergey Grishchev
Sergey Grishchev

Reputation: 12051

Compare an image shot using camera with one in my app

I want to find out if there's a way to implement the certain algorithm for my iPhone and iPad app:

How do you do that? Any ideas? Thanks in advance!

Upvotes: 1

Views: 484

Answers (3)

Bruno von Paris
Bruno von Paris

Reputation: 902

Have a look to this similar question: Algorithm for finding similar images

The most reliable and general approach is to use wavelet transforms (multi-scale analysis).

Upvotes: 1

iMeMyself
iMeMyself

Reputation: 1649

Take a look at AVFoundation and AVCam in Apple library .AVCam sample code demonstrates how to use the AV Foundation capture APIs for recording movies and taking still images.

and this tutorial tells how to use Open CV to compare images and here is a key method you should get start with

- (int)difference((int)topPixel,(int)bottomPixel)
{
    return abs(topPixel-bottomPixel);
}

and the last part about displaying the result, i hope it must be quite easy for you..

Upvotes: 3

Toubey
Toubey

Reputation: 199

I haven't implemented anything yet, but from what i know edge detection will be neccessary in some step of your solution. There is an open source library providing edge detection:

Without having taken a closer look at it, I think this library might come handy for other tasks in your desired algorithm as well.

Upvotes: 3

Related Questions