LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find an object while rotating ?

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

0 Kudos
Message 1 of 10
(3,133 Views)

Hi Dibya,

i think there is no difference to a single image. You should work on a time sheet.

 

Mike

0 Kudos
Message 2 of 10
(3,129 Views)

Hi dear,

            I didn't get u correctly,u got my application or not,

            How to find that image in a rotated motion 

 

             

 

0 Kudos
Message 3 of 10
(3,124 Views)
If you have the control over the bar code and the cap, I will suggest u mark for example a "L" and use a co-ordinate system to rotate the image.
0 Kudos
Message 4 of 10
(3,123 Views)

 


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?

0 Kudos
Message 5 of 10
(3,120 Views)

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.

Message Edited by SUNDAR.N on 09-12-2009 04:12 PM
0 Kudos
Message 6 of 10
(3,104 Views)
How to read a Barcode without using in built module from NI?
0 Kudos
Message 7 of 10
(3,080 Views)

 


How to read a Barcode without using in built module from NI?

 

 

Use another software.

0 Kudos
Message 8 of 10
(3,078 Views)
No by creating own VI.
0 Kudos
Message 9 of 10
(3,074 Views)

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.

Message Edited by CoastalMaineBird on 07-10-2009 06:54 AM
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 10 of 10
(3,065 Views)