Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

deviceName is not guaranteed to be unique #58

Open
FrankOcean11 opened this issue Apr 24, 2019 · 2 comments
Open

deviceName is not guaranteed to be unique #58

FrankOcean11 opened this issue Apr 24, 2019 · 2 comments

Comments

@FrankOcean11
Copy link

import gohai.glvideo.*;
GLCapture video,video2;

void setup() {
size(320, 240, P2D);

video = new GLCapture(this, devices[0]);// NOTE THIS CAM IS THE SAME AS devices[1] "USB2.0 PC Camera"
video2 = new GLCapture(this, devices[1]);// NOTE THIS CAM IS THE SAME AS devices[0] "USB2.0 PC Camera"

video.start();
video2.start();
}

void draw() {
background(0);
if (video.available()) {
video.read();
}
if (video2.available()) {
video2.read();
}
image(video, 0, 0, width, height);
image(video2, 0, 0, width/2, height/2);
}

Why wont processing or it's libraries do what i wrote above?

@gohai gohai changed the title gohai does not let me start 2 cameras why? deviceName is not guaranteed to be unique Apr 24, 2019
@gohai
Copy link
Owner

gohai commented Apr 24, 2019

Hi @FrankOcean11 - the issue here is that the device name is the same for both cameras. I am no longer working on this library, so I won't be able to do anything about it currently.

@FrankOcean11
Copy link
Author

right i know this but what i dont understand is why does this matter when they are both on 2 diff USB ports hence having 2 diff port address, well thanks thought i ask.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants