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.
Page Index Toggle Pages: 1
jmyron capture size (Read 833 times)
jmyron capture size
Nov 18th, 2007, 4:41pm
 
how can i capture jmyron at more than 320x240

when i try to set another size of capture the image gets distorted and delayed
Re: jmyron capture size
Reply #1 - Nov 19th, 2007, 12:42am
 
a lot of people has had the same problem so i am trying another thing to avoid this.

my intention is: visualize the webcam -- click the mouse -- present an image full screen (a frame) and back to webcam visualization.

I am trying to resize the window for the image display but the program can not go back to the normal webcam visualization:

import JMyron.*;
JMyron m;//a camera object

void setup(){
size(320,240);
frame.setResizable(true);
 m = new JMyron();//make a new instance of the object
 m.start(320,240);//start a capture at 320x240
 
// m.findGlobs(0);//disable the intelligence to speed up frame rate
// println("Myron " + m.version());
// println("Forced Dimensions: " + m.getForcedWidth() + " " + m.getForcedHeight());

 loadPixels();
}

void draw(){
m.update();//update the camera view
m.imageCopy(pixels);//draw image to stage
updatePixels();
}
void mousePressed(){
int p=121;// here it will be developed a progressive variable p=p+1
String r=p+".jpg";
saveFrame(r);
//noLoop();
//frame.setSize(800,600);
PImage a;  // Declare variable "a" of type PImage
a = loadImage(r); // Load the images into the program
image(a, 0, 0, width, height);
delay(6000);

}
public void stop(){
//loop();
m.stop();//stop the object
super.stop();
}
Re: jmyron capture size
Reply #2 - Dec 22nd, 2007, 8:39pm
 
some of webcam is supporting 640*480.

some model of creative.
olivetti320S-C
Page Index Toggle Pages: 1