I am using JavaCV (opencv version 2.3.1) to capture video frames from a Logitech c920 web cam.
The Logitech Windows c920 application software records video at a resolution of 1280 x 720 pixels per frame and records snapshots at a resolution of 5168x 2907 pixels per image.
I wrote the attached program by modifying various examples from discussions around the web. The program is working but the frames I capture are only 640x480 pixels. How can I capture higher resolution frames?
(I have found the class "org.opencv.highgui.VideoCapture" , which I note has a method "set" including property identifiers CV_CAP_PROP_FRAME_WIDTH and CV_CAP_PROP_FRAME_HEIGHT but I don't understand how I would use this class in my application.)
Here is the output from System.out when I run the program:
***** VIDEOINPUT LIBRARY - 0.2000 - TFW2013 *****
SETUP: Setting up device 0
SETUP: Logitech HD Pro Webcam C920
SETUP: Couldn't find preview pin using SmartTee
SETUP: Default Format is set to 640 by 480
SETUP: trying requested format RGB24 @ 640 by 480
SETUP: Capture callback set
SETUP: Device is setup and ready to capture.
Thanks in advance for any suggestions.
Joe
The Logitech Windows c920 application software records video at a resolution of 1280 x 720 pixels per frame and records snapshots at a resolution of 5168x 2907 pixels per image.
I wrote the attached program by modifying various examples from discussions around the web. The program is working but the frames I capture are only 640x480 pixels. How can I capture higher resolution frames?
(I have found the class "org.opencv.highgui.VideoCapture" , which I note has a method "set" including property identifiers CV_CAP_PROP_FRAME_WIDTH and CV_CAP_PROP_FRAME_HEIGHT but I don't understand how I would use this class in my application.)
Here is the output from System.out when I run the program:
***** VIDEOINPUT LIBRARY - 0.2000 - TFW2013 *****
SETUP: Setting up device 0
SETUP: Logitech HD Pro Webcam C920
SETUP: Couldn't find preview pin using SmartTee
SETUP: Default Format is set to 640 by 480
SETUP: trying requested format RGB24 @ 640 by 480
SETUP: Capture callback set
SETUP: Device is setup and ready to capture.
Thanks in advance for any suggestions.
Joe