![]() |
Re: Recording with the Camera
We were able to save video from the camera to the crio's 2GBish drive, and then copy it to a computer and assemble it into a avi on a laptop. in the code we used imaqSaveImage or imaqWriteImage (look in nivision.h) to save to a folder, and just ftp'ed to ftp://10.xx.yy.2/ and copied it off after matches. we used a simple C# program that i wrote to play it back, and vidshot capture to save it to avi. here are some of ours:
http://thecatattack.org/VOB/Practice...ilermaker2009/ http://thecatattack.org/VOB/Practice...ilermaker2009/ http://thecatattack.org/VOB/Match4Boilermaker2009/ |
Re: Recording with the Camera
you can make the videos directly on the cRio
(it probably takes more space to store though) AVISession imaqCreateAVI(const char* fileName, const char* compressionFilter, int quality, unsigned int framesPerSecond, unsigned int maxDataSize); int imaqWriteAVIFrame(Image* image, AVISession session, const void* data, unsigned int dataLength); int imaqCloseAVI(AVISession session); |
Re: Recording with the Camera
Quote:
Greg McKaskle |
Re: Recording with the Camera
1 Attachment(s)
Quote:
just throwing around ideas, as i have enough time to sift through the huge NIvision.h (Really 200 defines, 150 typedefs and 50 functions in 1 file :ahh:) i think NI should refactor that thing :] i did have ours take pictures when a button was pushed on the joystick though (image taken at LA regional during camera calibration time) |
Re: Recording with the Camera
Quote:
http://decibel.ni.com/content/thread/2473?tstart=30 Quote:
|
Re: Recording with the Camera
The AVI stuff will work on a desktop development computer running Windows. It will not work on the PPC cRIO running vxWorks.
The second part about choppy is valid, but the times listed aren't. The camera will not return images faster than one every 33ms, and even that is dependent upon the lighting, size, etc. I'm not that knowledgeable of codecs for video encoding. Ideally, you'd select one that allows for arbitrary timings on the frames. I'm not sure which support that. Greg McKaskle |
| All times are GMT -5. The time now is 16:42. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi