Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

is OpenCV on P3?

$
0
0

is OpenCV & the Capture library on P3? im getting this errors on P3 when i try to run this sketch which i downloaded from the library manager by adding the library to my new p3

No library found for processing.video
Libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder.

this is the sketch i was trying to run

// Learning Processing
// Daniel Shiffman
// http://www.learningprocessing.com

// Example 16-1: Display video

// Step 1. Import the video library
import processing.video.*;

// Step 2. Declare a Capture object
Capture video;//this is highlighted as if i dont have the library yet i do cuz is under examples in p3

void setup() {
  size(320, 240);
  println(Capture.list());

  // Step 3. Initialize Capture object via Constructor
  // Use the default camera at 320x240 resolution
  video = new Capture(this, 320, 240);
  video.start();
}

// An event for when a new frame is available
void captureEvent(Capture video) {
  // Step 4. Read the image from the camera.
  video.read();
}

void draw() {
  // Step 5. Display the video image.
  image(video, 0, 0);
}

Screenshot (67)


Viewing all articles
Browse latest Browse all 2896

Trending Articles