We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp>
int main() { cv::VideoCapture cap; cap.open(0); cv::Mat bgr; cap >> bgr; cv::imwrite("test_get_camera.jpg", bgr); return 0; }
devpath = /dev/video0 driver = uvcvideo card = UVC Camera (046d:081d) bus_info = usb-xhci-hcd.7.auto-1 version = 60119 capabilities = 84a00001 device_caps = 4200001 fmt = YUYV 4:2:2 56595559 fmt = Motion-JPEG 47504a4d size = 640 x 480 100.00 size = 160 x 120 6.25 size = 176 x 144 8.25 size = 320 x 176 18.33 size = 320 x 240 25.00 size = 432 x 240 33.75 size = 352 x 288 33.00 size = 544 x 288 51.00 size = 640 x 360 75.00 size = 752 x 416 84.38 size = 800 x 448 89.80 size = 864 x 480 94.81 size = 960 x 544 91.76 size = 1024 x 576 90.42 size = 800 x 600 92.80 size = 1184 x 656 87.91 size = 960 x 720 88.89 size = 1280 x 720 86.67 size = 1392 x 768 85.75 size = 1504 x 832 84.91 size = 1600 x 896 84.29 size = 1280 x 960 85.00 size = 1280 x 1024 84.69 size = 1600 x 1200 83.20 fps = 1 / 30 0.00 fps = 1 / 24 6.00 fps = 1 / 20 10.00 fps = 1 / 15 15.00 fps = 1 / 10 20.00 fps = 2 / 15 22.50 fps = 1 / 5 25.00 cap_pixelformat = 47504a4d MJPG cap_width = 640 cap_height = 480 bytesperline: 0 cap_numerator = 1 cap_denominator = 30 requestbuffers.count = 3
The text was updated successfully, but these errors were encountered:
when i use python
import cv2 as cv
cap = cv.VideoCapture(0) ret,fream = cap.read() cv.imwrite("aasd.jpg",fream)
it can get normal image
Sorry, something went wrong.
No branches or pull requests
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
int main() {
cv::VideoCapture cap;
cap.open(0);
cv::Mat bgr;
cap >> bgr;
cv::imwrite("test_get_camera.jpg", bgr);
return 0;
}
devpath = /dev/video0
driver = uvcvideo
card = UVC Camera (046d:081d)
bus_info = usb-xhci-hcd.7.auto-1
version = 60119
capabilities = 84a00001
device_caps = 4200001
fmt = YUYV 4:2:2 56595559
fmt = Motion-JPEG 47504a4d
size = 640 x 480 100.00
size = 160 x 120 6.25
size = 176 x 144 8.25
size = 320 x 176 18.33
size = 320 x 240 25.00
size = 432 x 240 33.75
size = 352 x 288 33.00
size = 544 x 288 51.00
size = 640 x 360 75.00
size = 752 x 416 84.38
size = 800 x 448 89.80
size = 864 x 480 94.81
size = 960 x 544 91.76
size = 1024 x 576 90.42
size = 800 x 600 92.80
size = 1184 x 656 87.91
size = 960 x 720 88.89
size = 1280 x 720 86.67
size = 1392 x 768 85.75
size = 1504 x 832 84.91
size = 1600 x 896 84.29
size = 1280 x 960 85.00
size = 1280 x 1024 84.69
size = 1600 x 1200 83.20
fps = 1 / 30 0.00
fps = 1 / 24 6.00
fps = 1 / 20 10.00
fps = 1 / 15 15.00
fps = 1 / 10 20.00
fps = 2 / 15 22.50
fps = 1 / 5 25.00
cap_pixelformat = 47504a4d MJPG
cap_width = 640
cap_height = 480
bytesperline: 0
cap_numerator = 1
cap_denominator = 30
requestbuffers.count = 3
The text was updated successfully, but these errors were encountered: