Ask Your Question

How to separate objects wich have the same color

asked 2017-04-12 14:05:54 -0500

hellomati gravatar image

Hi , for an internship I need to detect some pigs. I can separate them to the background but not separate one to another when they are too close. I'm starting to learn image processing so maybe I'm doing bad. Do you have any advices for me ?

The first picture.http:// (image description) Without background http:// (image description) Outline with canny detector http:// (image description)

edit retag flag offensive close merge delete


For segmentation, this will always be an issue. That is why people invented object detection algorithms. Have a look at those.

StevenPuttemans gravatar imageStevenPuttemans ( 2017-04-14 07:28:36 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2017-04-12 14:24:33 -0500

ManuVISION gravatar image

Once you have detected both, check for aspect ratio. If its more then divide the detected image into half.

edit flag offensive delete link more


Thanks for your answer but as you can see here "" they can have différents shapes so i can't use the width to separate them.

hellomati gravatar imagehellomati ( 2017-04-12 14:32:17 -0500 )edit
Login/Signup to Answer

Question Tools



Asked: 2017-04-12 14:05:54 -0500

Seen: 233 times

Last updated: Apr 12 '17