identical object detection

asked 2020-09-22 07:58:02 -0600

W.V.S. gravatar image

updated 2020-09-22 08:00:02 -0600

Hey, i'm new to openCV and to learn a bit about it computer vision I'm currently doing an internship at a company that whant's to integrate vision in their machines.

The project: Detect a little bag and determine it's position using vision while it lay's in it's primairy packaging (black crate). I've added a picture of the bags below. In practice, there will be hunderds of these bags in one crate.

image description

I've already tried several functions from openCV like gaussian/bilateral filter (see below). I know the lighting causes a bit of a problem (reflection) but I'm going to fix that with a filter or indirect lighting. image description

The problem is that i'm just not able to get a full contour of each bag. The gaussian and bilateral filters are able to smooth out the bags thus removing the little dots inside it, but is also removes the contours of the bags causing them to blend in with each other.

My question is, are there any solutions for this problem, or is this the wrong approach for this kind of problem, is template matching or a distance camera (bags are 3 tot 5 mm thick) more suitable for this problem? I've tried a little template matching program but without succes because the bags blend in with each other. I'm all ear for different idea's and tips

edit retag flag offensive close merge delete