View Single Post
  #20   Spotlight this post!  
Unread 06-07-2009, 14:14
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Recording with the Camera

Quote:
Originally Posted by biojae View Post
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);
we tried that, and it does not work.
http://decibel.ni.com/content/thread/2473?tstart=30
Quote:
This may be due to these functions not be expected to be used by FIRST teams (all of the standard FIRST Vision functions use JPEGs), and therefore are not found in the headerfile. This being said I will double check with R&D to see if this is the case.



Cheers,

Mark

NI FIRST Support
Also, I'm not sure how it works, but it maybe choppy, even if it did work, say you get 3 images in 10ms, then it slows down and the next 3 images are taken over 30ms. we compensated this by saving the images as picnumb auto/telop enable/disable timestamp cameraCapt.jpg (ex. 05 ae 128963 cameraCapt.jpg) and used the timestamp's to set the delay for the next photo. before we did this, we had it play at the average speed, fixed at 16ms, and you can see it slow down, and then speed back up.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib

Last edited by byteit101 : 06-07-2009 at 14:21.
Reply With Quote