DSPRelated.com
Forums

count cylinders in a image

Started by swee...@gmail.com September 16, 2009
hi

i am looking for a code to count number of cylinders in a truck,the cylinders are packed by 35 cylinders in a pallet,and 7 such pallets in a truck,i want to scan the truck by a camera and grab the video or snaps by camera for image processing and counting the number of cylinders when the truck pass by the camera. how to do this by a camera. should camera take a still snap of entire truck or a motion video of the truck. how to interface this video with matlab and count the cylinders.

please reply me

sweekrata
Method\type of image capture depends on the speed of the vehicle and the
capture rate (of the camera).

You will need to remove (or not capture) motion blur. You may find it
easier to place requirements on the driver of the vehicle than to solve
it with image processing.

One solution to the problem is to use an edge detection algorithm
followed by the Hough Transform to pick out the circles.

There are inbuilt functions in MATLAB to do this (see the demonstrations
and help that come with the Image Processing Toolbox).

The Hough Transform will need to be extended from the builtin function
to search for circles rather than lines.

HTH

Gwynfor Jones

________________________________

From: m... [mailto:m...] On Behalf
Of s...@gmail.com
Sent: 15 September 2009 10:24
To: m...
Subject: [matlab] count cylinders in a image

hi

i am looking for a code to count number of cylinders in a truck,the
cylinders are packed by 35 cylinders in a pallet,and 7 such pallets in a
truck,i want to scan the truck by a camera and grab the video or snaps
by camera for image processing and counting the number of cylinders when
the truck pass by the camera. how to do this by a camera. should camera
take a still snap of entire truck or a motion video of the truck. how to
interface this video with matlab and count the cylinders.

please reply me

sweekrata