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

hi there. i have faced the same issue. i have an object with different shapes and i want to separate them. have you found a solution? any idea ?

kilwa gravatar imagekilwa ( 2020-09-24 17:10:40 -0500 )edit

3 answers

Sort by » oldest newest most voted

answered 2020-09-25 05:36:01 -0500

Shassk gravatar image

We've had similar problem with cars detection on my job.

What we came to is neural networks (YOLOv3 to be precise) because only they were able to give quality of detection + separation that is good enough for our needs.

Maybe that's not exactly what you're looking for but that's what solved problem in our case.

edit flag offensive delete link more

answered 2020-10-16 23:37:00 -0500

lybui gravatar image

Hi! Thank you for your question!

I think BeatColor's article about Clipping Path and Masking is useful for you. It introduces the photoshop techniques used to cut out the subject from the background!

edit flag offensive delete link more

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: 400 times

Last updated: Sep 25