07-09-2009 04:40 AM
Hi,
How to detect an image while rotating
Ex- Suppose Barcode is there on the cap of the Bottle,i want to read that Barcode while bottle is coming in rotated motion.
With Regard
Dibya
07-09-2009 04:45 AM
Hi Dibya,
i think there is no difference to a single image. You should work on a time sheet.
Mike
07-09-2009 04:59 AM
Hi dear,
I didn't get u correctly,u got my application or not,
How to find that image in a rotated motion
07-09-2009 04:59 AM
07-09-2009 05:03 AM
Hi dear,
I didn't get u correctly,u got my application or not,
How to find that image in a rotated motion
Give us more details plz.
1. Is the bottle going to come in a conveyor?
2. Can you post a few images?
3. Along with a barcode is there any other pattern that can be taken as a template?
07-09-2009 05:41 AM - edited 07-09-2009 05:42 AM
Snap the barcode from the camera , Identify the orientation & give the appropriate
correction. So now having the corrected barcode orientation , read the data from barcode.
Some other work around is necessary if the captured image has lost a portion
of the barcode. This can be fixed with the help of some appropriate introduction
of mechanical fixture at the capturing stage.
Sundar.
07-10-2009 04:10 AM
07-10-2009 04:14 AM
Use another software.
07-10-2009 04:26 AM
07-10-2009 06:53 AM - edited 07-10-2009 06:54 AM
Ideas:
1... Extract a "stripe" of your image at say, Y = 80%, and another "stripe" at say, Y = 20%.
Compare the two stripes, and judge their correlation.
Rotate the image say, 10 degrees, and repeat until you've gone a total of 180 degrees.
The rotation where the correlation is best between the two stripes would be where the bars are closest to vertical.
2... Use edge detection to focus on a single bar. Measure the X/Y coordinates of the ends of that bar and use geometry to determine the orientation of the pic. Then rotate the image accordingly.
3... Do you really need to orient it correctly to read it? A "stripe" vertically, and a "stripe" horizontally should cover all possible orientations, right? The farther off-axis your rotation is, the longer the codes will be, but that applies to everything equally, so you should still be able to read it.
Blog for (mostly LabVIEW) programmers: Tips And Tricks