Tracking 3D + rotation matrix
Hi , Does anyone know how need track an object ( a cube for example)? I need as output the x,y,z postion and the matrix rotation of the object
Hi , Does anyone know how need track an object ( a cube for example)? I need as output the x,y,z postion and the matrix rotation of the object
See the POSIT algorithm here to find the 3D position of a known object. To use POSIT, you need to find 2D points and their association to 3D object. You can use an object with different color in each corner, or anything else... The tracking is the most difficult in my opinion.
Thank you so much , i tried to compile the tutorial code of POSIT it works with only a specific image for a cube : "IplImage img = cvLoadImage( "C:\img.jpg" );". I need image from a capture video not from a known image : "IplImage *img; // capture from video device CvCapture capture = cvCaptureFromCAM(0); // create a window to display the images cvNamedWindow("mainWin", CV_WINDOW_AUTOSIZE);
while(1)
{
// retrieve the captured frame
img=cvQueryFrame(capture);..."
and then how can i track the cube and use the POSIT algorithm
As I've said before, the tracking is the most difficult part... Start using a different color for each corner, and after that, if you are not using a cube, you could try different approach, like SIFT/SURF/ORB/.. and find homography like in this tutorial http://docs.opencv.org/doc/tutorials/features2d/feature_homography/feature_homography.html But take care that the object must not be a plane for POSIT!
Asked: 2013-04-05 07:53:00 -0600
Seen: 1,597 times
Last updated: Apr 06 '13
Cannot Parse Libraries In Linux Using Qt Enviornment
Video On Label OpenCV Qt :: hide cvNamedWindows
Convert Bitmap to Mat for JNI interface
opencv 2.4.3 tutorials in elcipse juno..!!!
when i run Sample2NativeCamera it givesaborting heap memory corruption in dlmalloc
syntax for particle filter in opencv 2.4.3
count the number of black pixel for each column in a binary image