# USB camera in list but doesn't grab image

**URL:** <https://discourse.processing.org/t/usb-camera-in-list-but-doesnt-grab-image/11003>\
**Category:** Libraries\
**Created:** [May 7, 2019, 3:45pm UTC](https://discourse.processing.org/t/usb-camera-in-list-but-doesnt-grab-image/11003 "2019-05-07T15:45:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffmarc](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Post date:** [May 7, 2019, 3:45pm UTC](https://discourse.processing.org/t/usb-camera-in-list-but-doesnt-grab-image/11003/1 "2019-05-07T15:45:15Z")

</div>

No error given in console.  
Webcam works as camera [0]  
USB camera shows up under Sound and game controllers in Device manager

USB camera works with several other software apps OK.

POsted about this in 2017/2018

Has anything more been done to get the camera function working better with different camera devices as they appear in Device Manager?

Thanks

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [May 11, 2019, 2:40am UTC](https://discourse.processing.org/t/usb-camera-in-list-but-doesnt-grab-image/11003/2 "2019-05-11T02:40:47Z")

</div>

What webcam make / model is it?

When you say “Webcam works as camera [0]” what do you mean, specifically?

---

<div class="post-metadata">

**Author:** ![jeffmarc](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Post date:** [May 11, 2019, 3:50pm UTC](https://discourse.processing.org/t/usb-camera-in-list-but-doesnt-grab-image/11003/3 "2019-05-11T15:50:31Z")

</div>

The built in webcam on my lenova PC.

I plug in a USB capture device that allows analog rs-170 video to be captured via a video device.  
Processing finds this camera in list but when used it fails to see a video input from it.

No errors, just blank screen

This same device works with several other 3rd party software fine, including Debut.

The only difference i can seeis that the device shows up in DEvice manager as a video device  
and the webcam shows up as a webcam in DM.

I have another usb camera that shows up as a Imaging device in DM , and processing works with that ok .

---

<div class="post-metadata">

**Author:** ![nagib.vallejos](https://avatars.discourse-cdn.com/v4/letter/n/f04885/32.png) [@nagib.vallejos](https://discourse.processing.org/u/nagib.vallejos)\
**Post date:** [December 29, 2019, 3:50am UTC](https://discourse.processing.org/t/usb-camera-in-list-but-doesnt-grab-image/11003/4 "2019-12-29T03:50:29Z")

</div>

Hello friends!  
I commented that I had the same problem with the external webcam, I bought a Genius Full HF 1080p webcam and after 2 hours of seeing forums I managed to connect it, what I did was first see the list of connected cameras and then connect based on the resolution , I leave the code, I hope it serves.

```auto
import gab.opencv.*;
import processing.video.*;
import java.awt.*;
 Capture video;
 OpenCV opencv;

void setup(){
  size(1280,720);
  video=new Capture(this, 640, 480, "Genius Webcam");
  opencv=new OpenCV(this, 640, 480);
  opencv.loadCascade(OpenCV.CASCADE_FRONTALFACE);
  video.start();
}

void draw(){
  if(video.available()){
    video.read();
  }
  scale(2);
  opencv.loadImage(video);
  image(video,0,0);
  
  Rectangle[]faces=opencv.detect();
  noFill(); stroke(0,255,0); strokeWeight(3);
  for(int i=0;i<faces.length;i++){
    rect(faces[i].x,faces[i].y,faces[i].width,faces[i].height); 
  }
}

```
