1

I have no experience with images. I have to detect simple object in static image. For example I have image like:

Source

I want to detect edges and remove background. Just to compare them. Something like this.

Detected Object

Do u have any solutions of this problem? Images have often white backgrounds.

I've just thought about detect edges, and take everything what they contains.

3
  • 1
    Simple object is white circle or square on black background. But not this. You can try extract edges, but you'll also get shadows, and horizontal line on background. And these edges are stronger than your object edges. Commented Sep 19, 2017 at 12:13
  • I've thought about convert image to HSV and change H, S and V values to get contour of object. This comparer mustn't have be so much accurate. I will get scores and set ranges. Commented Sep 19, 2017 at 12:59
  • Simply do adaptive threshold, sobelx and dilation in the order on the image. You'll segment out the shoe. Then fixing a box around shouldn't be an issue. Commented Sep 20, 2017 at 5:51

1 Answer 1

1

To segment out the shoe-

  • Anadptive Threshold to remove the smooth changing background.
  • Sobelx, which removes the apparent background line, which i assume is common for images of this setup.
  • dilate, closing operation to separate out the shoe.
  • Find contours, bounding box etc as per your choice.

enter image description here

Do an additional threshold if you want to remove the shadow at the bottom.

Sign up to request clarification or add additional context in comments.

1 Comment

This is what I wanted. When I'll have contour, I will subtract from original image, my product to create histogram to compare ;) Big thanks! :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.