We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › saveFrame() not working
Page Index Toggle Pages: 1
saveFrame() not working (Read 849 times)
saveFrame() not working
Nov 27th, 2005, 7:07pm
 
Hi

Not my code, something i found on here which i tested on version 0091 and had no problems with, have since updated to 0095 and images from saveFrame() are now saving directly in the application folder and not in the sketchs folder?

Is this doing the same for everyone else?  documentation says it should go in the sketchs folder???

a+
gar


 import processing.video.*;
 Capture v_capture;
 int v_width;
 int v_height;

 // how many seconds between each saveFrame
 int timedelay;

 // total number of saved images
 int imageCounter;

 //setup function
 void setup()
 {
   //set stage size
   //size(screen.width, screen.height);
   size(500, 500, P3D);
   
   //set stage background
   background(0, 0, 0);
   
   //set the framerate
   framerate(20);
   
   //The name of the capture device is dependent those plugged into the computer.
   //To get a list of the choices, uncomment the following line
   //println(Capture.list());
   
   //webcam name
   //String webcam = "Quickcam";
   
   //dv video name
   String webcam = "IIDC FireWire Video";
   
   //width and height stored as a variable
   v_width = 318;
   v_height = 256;

   //capture the camera
   v_capture = new Capture(this, webcam, v_width, v_height);
   v_capture.framerate(30);
   
   // 10 second delay between each saveFrame
   timedelay = 10;
 }



void draw(){
 if (second()%timedelay == 0){
   background(0);
   v_capture.read();
   image(v_capture, 0, 0);
   saveFrame("screenGrabs/frames####.tif");

   println("saving image " + imageCounter + " :: " + (imageCounter * timedelay) + " seconds");
   imageCounter ++;
 }
}
Re: saveFrame() not working
Reply #1 - Nov 28th, 2005, 5:49am
 
try using rev 0096.
Re: saveFrame() not working
Reply #2 - Nov 28th, 2005, 6:43pm
 
fry wrote on Nov 28th, 2005, 5:49am:
try using rev 0096.


yep back in the sketchs folder. thanks.

a+
gar
Page Index Toggle Pages: 1