기본 캠 뷰어

작게   크게
/**
* Getting Started with Capture.
*
* Reading and displaying an image from an attached Capture device.
*/
import processing.video.*;

Capture cam;


void setup() {
  size(640, 480);

  // If no device is specified, will just use the default.
  cam = new Capture(this, 320, 240);

  // To use another device (i.e. if the default device causes an error),  
  // list all available capture devices to the console to find your camera.
  //String[] devices = Capture.list();
  //println(devices);
  // Change devices[0] to the proper index for your camera.
  //cam = new Capture(this, width, height, devices[0]);

  // Opens the settings page for this capture device.
  //camera.settings();
}


void draw() {
  if (cam.available() == true) {
    cam.read();
    image(cam, 160, 100);
    // The following does the same, and is faster when just drawing the image
    // without any additional resizing, transformations, or tint.
    //set(160, 100, cam);
  }
}




http://juroweb.com/xe/4008



» 기본 캠 뷰어 juro 2007.11.19 515
25 20071118_movie 복습 juro 2007.11.18 588
24 20071112_lecture [1] juro 2007.11.12 821
23 dh_motive_2 juro 2007.11.10 522
22 20071105_수업내용 juro 2007.11.05 537
21 20071105_과제_바다 juro 2007.11.05 1102
20 [re] 20071105_과제_바다_완료 juro 2007.11.05 793
19 [re] 20071105_과제_바다_승기 juro 2007.11.05 496
18 20071029 [2] juro 2007.10.29 798
17 중간과제_비오는 날 버스정류장 juro 2007.10.20 571
16 [re] 중간과제_비 그리고 무지개 juro 2007.10.22 2408
15 현덕형_세포모양 juro 2007.10.20 367
14 20071015 수업내용 juro 2007.10.15 386
13 10/1 수업내용 _ 키값받기 juro 2007.10.01 389
12 과제 juro 2007.09.27 444
11 [re] 그림판 juro 2007.10.20 1682
10 Draw 함수 juro 2007.09.17 526
9 smile 그리기 juro 2007.09.17 331
8 Data_total juro 2007.09.17 336
7 ?그리기 juro 2007.09.17 373

© juroweb 2003-2014. All rights reserved
log in