We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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!
Answers
I think and hope it's your webcam.
Maybe it helps if you create the webcam like this (instead of the index number):
It probably won't help but you never know. If you have OF set up, i would give that a try as well.
O yeah if you buy a new webcam, don't let the resolution fool you, i have a 720p logitech which is really sharp, at school i have a 1080p webcam which has horrible quality. A good lens is really important.
Hi, Thanks for your answer. I tried to set it up that way too but no luck.
I could setup OF but I'm on Windows and it's kind of a pain to work with OF in Visual Studio.
And you're right about the resolution, it's not everything I guess I'll need to borrow a few webcam before buying one that's good.
If you have any recommendation I'm open. My first requirement is one that would work at least at 800x600 30fps in Processing but 1280x720 30fps would be better and if there is a good lens with that I would be an happy guy!
Thanks again!
Hi I'm having the same issues tried 2 different cameras (built in and external).
1280*720 on 10 FPS works but not on 30 Any suggestions?