'프로세싱 CV'에 해당되는 글 1건

  1. 2009.08.19 [CV] openCV 와 JMyron frameRate 비교 - (Processing)

[CV] openCV 와 JMyron frameRate 비교 - (Processing)

|
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 프레임 사이

JMyron
 
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프레임

JMyron

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가 프레임률이 떨어지는 이유는 뭘까요?
저작자 표시
신고
크리에이티브 커먼즈 라이선스
Creative Commons License
Trackback 0 And Comment 0
prev | 1 | next

티스토리 툴바