'Processing CV'에 해당되는 글 1건
TEST Computer Spec
Macbook Pro 2.2Ghz, 4G memory, 8600GT 128M
webcam : Logitech QuickCam Pro 9000(UVC driver)
openCV
import hypermedia.video.*;
OpenCV opencv;
void setup() {
size(800, 600);
opencv = new OpenCV( this );
opencv.capture(320,240);
}
void draw () {
opencv.read();
image( opencv.image(OpenCV.RGB), 0, 0 );
println(frameRate);
}
5~7 프레임 사이
import JMyron.*;
JMyron m;//a camera object
void setup(){
size(800, 600);
m = new JMyron();//make a new instance of the object
m.start(320, 240);//start a capture at 320x240
loadPixels();
}
void draw(){
m.update();//update the camera view
m.imageCopy(pixels);//draw image to stage
updatePixels();
println(frameRate);
}
void mousePressed(){
m.settings();//click the window to get the settings (mac users, this will crash you)
}
public void stop(){
m.stop();//stop the object
super.stop();
}
37프레임
import JMyron.*;
JMyron m;//a camera object
int camW = 320;
int camH = 240;
void setup(){
size(800, 600);
m = new JMyron();//make a new instance of the object
m.start(camW, camH);//start a capture at 320x240
}
void draw(){
m.update();//update the camera view
int[] img = m.image(); //get the normal image of the camera
loadPixels();
for(int i=0;i<camW*camH;i++){ //loop through all the pixels
pixels[i] = img[i]; //draw each pixel to the screen
}
updatePixels();
println(frameRate);
}
void mousePressed(){
m.settings();//click the window to get the settings
}
public void stop(){
m.stop();//stop the object
super.stop();
}
40~43 프레임
openCV가 프레임률이 떨어지는 이유는 뭘까요?