ARToolKit | Mailing List Archive |
![]() |
From: | Darran Edmundson <darran@e ............> | Received: | Sep 11, 2006 |
To | Andriamasinoro Rahajaniaina <ra_haja501@y ........> | ||
Subject: | Re: grabbing video with ARToolkitPlus ?? | ||
Andriamasinoro Rahajaniaina wrote: > I already use ARToolkit in my application and I'd like > to change to ARToolkitPlus. Could Someone give me an > idea for building a function for grabbing video with > ARToolkitPlus ? A simple approach is to use the OpenCV computer vision toolkit. It includes a very high-level cross-platform means of capturing video: http://opencvlibrary.sourceforge.net/HighGui Once you've used cvCaptureFromCAM, pulling video is as simple as: IplImage* img = cvQueryFrame(cvCapture* capture); markerId = mTracker->calc((unsigned char*)(img->imageData)); Notes: 1) Highgui's camera capture on Windows uses ancient VFW. We found it to be slow and have since switched to DirectShow. (Search the opencv yahoo group for "DirectShow".) Still, the above will get you going. 2) You'll likely want to place the cvQueryFrame() call in a thread. It blocks until a new frame is ready, time that is usually needed for your program's logic and/or graphics updates. Cheers, Darran. -- Darran Edmundson [darran@e ............] Interactive visualization for museums and industry http://www.edmstudio.com |
From: | Andriamasinoro Rahajaniaina <ra_haja501@y ........> | Received: | Sep 11, 2006 |
To | artoolkit@h .................. | ||
Subject: | grabbing video with ARToolkitPlus ?? | ||
Hi everyone, I already use ARToolkit in my application and I'd like to change to ARToolkitPlus. Could Someone give me an idea for building a function for grabbing video with ARToolkitPlus ? What does mean the parameter "nFileName" of ARFileGrabber in CameraCalib directory ? Thanks ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com |
From: | Daniel Wagner <daniel@i ...............> | Received: | Sep 11, 2006 |
To | artoolkit@h .................. | ||
Subject: | Re: grabbing video with ARToolkitPlus ?? | ||
hi Andriamasinoro, the ARFileGrabber class is just a simple replacement to let the calibration tool run with files instead of a real camera feed. this comes handy if you want to calibrate cameras from devices on which you can't run the calibration tool natively (e.g. embedded devices or phones/PDAs). i believe that ARFileGrabber is not what you are looking for. actually we recommend calibrating cameras for ARToolKitPlus with the MatLAB camera calibration toolkit today since it delivers more accurate results and is a lot faster to do. ARToolKitPlus does not come with a built-in camera library, since we believe that basically all advanced AR users already have a working solution for that or have no problems applying one. (also: HitLabNZ does an excellent job in maintaining ARToolKit's camera library and we do not want to duplicate their work.) actually you are also in the situation i just described: you already have a camera library running in your application (the one from ARToolKit) and it should therefore not be easy to use that as a basis for switching to ARToolKitPlus. bye, Daniel |
From: | Blair MacIntyre <blair@c ............> | Received: | Sep 11, 2006 |
To | Darran Edmundson <darran@e ............> | ||
Subject: | Re: grabbing video with ARToolkitPlus ?? | ||
Take a look at our video capture package on sourceforge (videowrapper). It supports directshow, as well as native camera api's from pointgrey, canon, and videre design. It also supports macosx. On Sep 11, 2006, at 8:56 PM, Darran Edmundson wrote: > Andriamasinoro Rahajaniaina wrote: >> I already use ARToolkit in my application and I'd like >> to change to ARToolkitPlus. Could Someone give me an >> idea for building a function for grabbing video with >> ARToolkitPlus ? > > A simple approach is to use the OpenCV computer vision toolkit. It > includes a very high-level cross-platform means of capturing video: > http://opencvlibrary.sourceforge.net/HighGui > > Once you've used cvCaptureFromCAM, pulling video is as simple as: > IplImage* img = cvQueryFrame(cvCapture* capture); > markerId = mTracker->calc((unsigned char*)(img->imageData)); > > Notes: > > 1) Highgui's camera capture on Windows uses ancient VFW. We found > it to be slow and have since switched to DirectShow. (Search the > opencv yahoo group for "DirectShow".) Still, the above will get > you going. > > 2) You'll likely want to place the cvQueryFrame() call in a > thread. It blocks until a new frame is ready, time that is usually > needed for your program's logic and/or graphics updates. > > Cheers, > Darran. > > -- > Darran Edmundson [darran@e ............] > Interactive visualization for museums and industry > http://www.edmstudio.com |