Image recognition within a larger image

Asked

Viewed 1,040 times

4

I would like to do a part of my application, where the user would upload an image full of drawings inside, he would then select an area of the image and I would search the entire image uppada, initial points in which this selected image repeats within the larger image. Could someone help me? Any JS library? The ones I found do face recognition and not object recognition in general...

1 answer

3

I don’t know any client-side (JS) solution that can perform, with a decent degree of accuracy, this type of functionality.

You can, however, use a server-side solution.

One of the possibilities is Opencv, a cross-platform opensource (BSD) library developed by Intel that has several interesting image processing modules. In its specific case, the module cvMatchTemplate may be a viable solution.

This is an example of via detection OpenCV::cvMatchTemplate:

Original:

inserir a descrição da imagem aqui

Target:

inserir a descrição da imagem aqui

Standard version:

inserir a descrição da imagem aqui

  • Thanks, I’ll take a look because my project is PHP :(

  • @user3326192 I suggest you take a look at this link - it’s a wrapper from the Opencv library for PHP: http://www.xarg.org/project/php-facedetect/

  • 1

    I was able to do it using gd2 methods (lib php) and turning the images into two matrices with integer values (initially I took the image, I transformed it into Grayscale [also with gd2 methods] to make it easier) and with loops I checked... It worked! Thanks for your help

  • @user3326192 Glad you managed to find a solution! Feel free to if you have more questions.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.