Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

tracking centroid via (X,Y) motors

Hi all,

 

I am new in Labview, and i need to manage a small project.

This project is the next:

 

Through a video frame, i will acquire an object.

This object will be detected in a specific ROI and i will obtain the centroid.

Untill here, no problems

 

My main problem is how to comunicate the coordonates of the centroid to motors, to assume a tracking of the object through the webcam in X,Y axis.

 

Thanks for your help and support.

 

Regards,

 

Christophe

0 Kudos
Message 1 of 3
(2,913 Views)

Subtract the desired location from the current location to get the error.  Multiply the error by a constant to get the motor output.  Repeat in a fast loop.

 

Larger constants give you faster motion, but too large will start oscillation and possibly mess up your hardware.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 3
(2,911 Views)

Hello Bruce,

 

Thank you for your point of view.

In fact, i know that because i was working in another software (Scilab).

My problem is how to use Labview...i don't know and because it's an obligation to use it, i need to go straight.

 

Regards and thank you

 

Christophe

0 Kudos
Message 3 of 3
(2,907 Views)