Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

line number in the frame

Hi

 

I take two frames one after another from a externally trigged camera. Can someone help me with a hint on how I can find (detect) the line number on the frame where the object appears, ie  where the object starts in the image?

 

Bugi

0 Kudos
Message 1 of 8
(4,025 Views)

Dear Bugi,

 

Are you working with the National Instruments Vision Development Module?

 

-Robert

Robert Eastlund
Graftek Imaging, Inc.
Phone: (512) 416-1099 x101
Email: eastlund@graftek.com
0 Kudos
Message 2 of 8
(4,015 Views)

Yes I do. I do use NI Vision on this application.

 

 

Bugi

0 Kudos
Message 3 of 8
(4,006 Views)

Dear Bugi,

 

Please upload an image of the object.

 

-Robert

Robert Eastlund
Graftek Imaging, Inc.
Phone: (512) 416-1099 x101
Email: eastlund@graftek.com
0 Kudos
Message 4 of 8
(3,999 Views)

Here it is

 

It needs thresholding (Thr=117) but the point is I can't find the line number where the object appears in the image.

 

Bugi

0 Kudos
Message 5 of 8
(3,987 Views)

Dear Bugi,

 

I am going to assume that the object is entering the image from the right side.  If this is the case, you can threshold the image, use the particle filter to remove any unwanted particles, then use the First Pixel X value from the Particle Analysis funtion to determine the starting position of the object.

 

-Robert

Robert Eastlund
Graftek Imaging, Inc.
Phone: (512) 416-1099 x101
Email: eastlund@graftek.com
0 Kudos
Message 6 of 8
(3,982 Views)

 

 

Dear Robert, thanks

Yeah it's seems it functions but I get that info from Bounding left value not from First X. First X actually shows the value that corresponds with the end of the frame ?!. Can you execute the recommended analysis and see yourself the values from particle analysis to undertsand what I mean.

 

Bugi 

0 Kudos
Message 7 of 8
(3,953 Views)

Particle analysis gives you the four boundaries of the object.  What do you need that these don't give you?

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 8 of 8
(3,941 Views)