You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running openpose commit 5c5d965 on Linux with Bus 002 Device 012: ID 046d:080a Logitech, Inc. Portable Webcam C905. Setting resolution via parameter --camera_resolution 640x480 (or any other resolution) does not work. It always falls back to the highest (and lowest FPS) supported resolution (1600x1200) while displaying the error message quoted in title.
Setting the resolution works correctly after the following fix:
diff --git a/src/openpose/producer/videoCaptureReader.cpp b/src/openpose/producer/videoCaptureReader.cpp
index cd42f3b..8731d2d 100644
--- a/src/openpose/producer/videoCaptureReader.cpp
+++ b/src/openpose/producer/videoCaptureReader.cpp
@@ -150,6 +150,7 @@ namespace op
{
// Open webcam
upImpl->mVideoCapture = cv::VideoCapture{index};
+ upImpl->mVideoCapture.open(index, cv::CAP_V4L2);
// Make sure video capture was opened
if (throwExceptionIfNoOpened && !isOpened())
error("VideoCapture (webcam) could not be opened.", __LINE__, __FUNCTION__, __FILE__);
The text was updated successfully, but these errors were encountered:
Running openpose commit 5c5d965 on Linux with Bus 002 Device 012: ID 046d:080a Logitech, Inc. Portable Webcam C905. Setting resolution via parameter --camera_resolution 640x480 (or any other resolution) does not work. It always falls back to the highest (and lowest FPS) supported resolution (1600x1200) while displaying the error message quoted in title.
Setting the resolution works correctly after the following fix:
The text was updated successfully, but these errors were encountered: