3

I wonder that extracting similar area of images is possible. if it is possible,i am going to find insigne of copmany which created it.

There are two images below. The red rectangles in the images are that i try to find area. The program is going to find similar area comparing images. I tried to find it using opencv,but i couldn't do it.

enter image description here

enter image description here

RockOnGom
  • 3,893
  • 6
  • 35
  • 53

1 Answers1

3

First thing in mind:

  1. Convert images to grayscale
  2. Divide image into small areas (patches)
  3. Each patch should be labelled as 1 if entropy of image is high and 0 if low (to discard patches without letters)
  4. For two images, compare all patches across images based on:
    • Histogram on sobel image (Bhattacharya distance is normalized)
    • Correlation (Minmax normalization)
    • Advanced descriptors (like SIFT) (L2 normalization)
  5. Min distance wins.

You can narrow down the '1' patches with a text detector (Algorithm to detect presence of text on image).

Community
  • 1
  • 1
LovaBill
  • 5,107
  • 1
  • 24
  • 32
  • I don't agree with (3), as the entropy might be still high if it's a natural image. I'd start with text detection first, which gives you the bounding boxes of the text parts, and therefore the image patches, really fast and without fixing the size of the patch beforehand. Moreover, SIFT or SURF won't work well with such small patches, I'd go for MPEG-7 Edge Histograms, PHOG or other advanced texture descriptors. – Mathias May 06 '14 at 14:37