Counting strips

asked 2016-11-27 15:23:27 -0600

Katie gravatar image

updated 2016-11-28 12:32:13 -0600

berak gravatar image

image description

I am trying to count the extruded pieces of polypropylene. I can filter out horizontal and vertical lines using sobel, but am having trouble figuring out how to count the strips. Any ideas?

I uploaded a photo of my test box. I was thinking I could shoot the laser across, filter the horizontal lines, and then count how many times I see laser->no laser->laser->no laser etc. Or maybe get a percentage of how solid the line is and then relate that percentage to number of strips.

edit retag flag offensive close merge delete

Comments

Please insert in your question some images.

LBerger gravatar imageLBerger ( 2016-11-28 01:32:13 -0600 )edit

I uploaded a photo

Katie gravatar imageKatie ( 2016-11-28 12:25:01 -0600 )edit

I don't know image context : relative position camera object fixed or not? If you have orientation you can use section to find strips

LBerger gravatar imageLBerger ( 2016-11-28 14:44:46 -0600 )edit