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

processing.video - Listed camera with Capture.list() but never available

$
0
0

Hi,

I try to display an high res stream of a webcam. When I list all available cameras the result is :

name=Lenovo EasyCamera,size=1280x720,fps=5
name=Lenovo EasyCamera,size=1280x720,fps=30
name=Lenovo EasyCamera,size=160x120,fps=5
name=Lenovo EasyCamera,size=160x120,fps=30
name=Lenovo EasyCamera,size=320x240,fps=5
name=Lenovo EasyCamera,size=320x240,fps=30
name=Lenovo EasyCamera,size=640x480,fps=5
name=Lenovo EasyCamera,size=640x480,fps=30
name=Lenovo EasyCamera,size=800x600,fps=5
name=Lenovo EasyCamera,size=800x600,fps=30
name=Lenovo EasyCamera,size=1280x720,fps=5
name=Lenovo EasyCamera,size=1280x720,fps=10
name=Lenovo EasyCamera,size=160x120,fps=5
name=Lenovo EasyCamera,size=160x120,fps=30
name=Lenovo EasyCamera,size=320x240,fps=5
name=Lenovo EasyCamera,size=320x240,fps=30
name=Lenovo EasyCamera,size=640x480,fps=5
name=Lenovo EasyCamera,size=640x480,fps=30
name=Lenovo EasyCamera,size=800x600,fps=5
name=Lenovo EasyCamera,size=800x600,fps=10

I would like to use name=Lenovo EasyCamera,size=1280x720,fps=30 (max res and max fps), however when I try to do this in draw function:

if(webcam.available()) {
    webcam.read();
}

image(webcam, 0, 0, video_width, video_height);

webcam.available() is never true and I have no error in the console. I tried different modes and the max fps/resolution I can get is only 640x480 30fps and my camera works in Skype and in my browser.

So my question is this one: Is it because of my camera or Processing that I can't access my camera data in high res and high fps mode? Is it even possible to have a stream (offline of course) at this resolution?

If the problem is my camera, I can buy a new one (HD) but I would like to be sure before. If it's processing, I can try something different like openFrameworks to do it.

Thanks a lot for your help!


Viewing all articles
Browse latest Browse all 2896

Trending Articles