I'm trying to capture images from my laptop webcam. I'm using Processing 1.5, Windows 7. The code for simple image capture used to work perfectly fine on my hp laptop but doesn't run on my dell xps 15 l502x.
On my hp machine, on running the code, "select video source" window used to come up with 2 options:
1. Arcsoft Webcam Sharing Manager
On my hp machine, on running the code, "select video source" window used to come up with 2 options:
1. Arcsoft Webcam Sharing Manager
2. HP Webcam [2MP Fixed]
Selecting the 2nd option used to fire up the webcam(the webcam led turned on) and I could see the captured stream in my processing output window.
Selecting the 2nd option used to fire up the webcam(the webcam led turned on) and I could see the captured stream in my processing output window.
But running it on the dell laptop, I get only one option in the 'select video source' window : Integrated Webcam.
When I select it, I get a null pointer exception, the camera led doesn't turn on. I tried running it with the dell webcam central application running/closed too. Didn't work.
Any solutions?
Here's the code:
When I select it, I get a null pointer exception, the camera led doesn't turn on. I tried running it with the dell webcam central application running/closed too. Didn't work.
Any solutions?
Here's the code:
- import hypermedia.video.*; // Imports the OpenCV library
- OpenCV opencv; // Creates a new OpenCV Object
- void setup()
- {
- size( 640, 480 );
- opencv = new OpenCV( this ); // Initialises the OpenCV object
- opencv.capture( 640, 480 ); // Opens a video capture stream
- }
- void draw()
- {
- opencv.read(); // Grabs a frame from the camera
- image( opencv.image(), 0, 0 ); // Displays the image in the OpenCV buffer to the screen
- }
2