I've got a Logitech Broadcaster Wifi Webcam (
http://www.logitech.com/en-us/webcam-communications/webcams/broadcaster-wifi-webcam) running on a Mac and trying to capture the video in Processing 1.5.1. I'm using the simple GettingStartedCapture sketch, the webcam shows up as device[0], and I am getting signal, but the video is distorted and stretched vertically (see attached image).
I've tested the webcam in Flash and using the Logitech software and the image is appearing as expected.
I've used other webcams and the iWebCam app for the iPhone with Processing 1.5.1 with no problems.
I'm working on an iMac and trying to capture video from a webcam other than the iSight. I've got iPhone software webcams installed (iWebCamera) that were being recognized in Processing 1.5.1 but are not recognized in Processing 2.0b6.
When I println with the code below it just shows iSight webcam listings. If I disable the iSight, it finds no capture devices.
I've tried reinstalling the drivers but that did not help.
Any ideas/suggestions would be greatly appreciated. Code below.
Thanks,
Brent
import processing.video.*;
Capture cam;
void initVideo() {
//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, 30);
cam.start();
// Opens the settings page for this capture device.
//camera.settings();
}
void drawVideo() {
if (cam.available() == true) {
cam.read();
image(cam, 0, 0);
// The following does the same, and is faster when just drawing the image
// without any additional resizing, transformations, or tint.
I'm working on a project that uses the gifAnimation library to load numerous local animated GIFs. It's working great, but I'm getting an OutOfMemoryError after loading a large number of GIFs (over 100).
I'm removing the GIF objects from draw() when I wish to remove them from the screen, but I can't figure out how to remove them from memory.
I'm storing a reference to the each GIF in "ArrayList<Gif> gifObjectList" and calling the function below in an attempt to remove them from memory, but it doesn't seem to be working:
void deleteAllAnimatedGif() {
for (int i = 0; i< gifObjectList.size(); i++) {
Gif currGifToNuke = gifObjectList.get(i);
println("currGifToNuke = "+currGifToNuke); //comes back with reference like gifAnimation.Gif@115c974
currGifToNuke = null;
println("currGifToNuke = "+currGifToNuke); //comes back with null
gifObjectList.set(i,null);
}
gifObjectList.clear();
}
I tried setting the value of the object to "null", which was what I found searching the forums, but I continue to get OutOfMemoryError using this method.