- [ 8621.495155] rockchip-mipi-csi2 fdd30000.mipi2-csi2: stream ON
- [ 8621.563468] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000001, lastline:0x1, cnt 1
- [ 8621.563468] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000001, lastline:0x1, cnt 1
- [ 8621.596562] mipi2-csi2 ERR1:0x10 (fs/fe mis,vc: 0)
- [ 8621.596686] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000[ 8621.596562] mipi2-csi2 ERR1:0x10 (fs/fe mis,vc: 0)
- [ 8621.596686] rkcif-mipi-lvds2: ERROR: csi size 0err, intstat:0x1000001, lastline:0x2, cnt 2
- 1, lastline:0x2, cnt 2
- [ 8621.629946] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000000, lastline:0x1, cnt 3
- [ 8621.629946] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000000, lastline:0x1, cnt 3
- [ 8621.663327] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000000, lastline:0x1, cnt 4
- [ 8621.663327] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000000, lastline:0x1, cnt 4
- [ 8621.696792] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000001, lastline:0x4, cnt 5
- [ 8621.696792] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000001, lastline:0x4, cnt 5
- [ 8621.730033] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000001, lastline:0x3, cnt 6
- [ 8621.730033] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000001, lastline:0x3, cnt 6
- [ 8621.763241] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000000, lastline:0x1, cnt 7
- [ 8621.763241] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000000, lastline:0x1, cnt 7
- [ 8621.796796] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000001, lastline:0x4, cnt 8
- [ 8621.796796] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000001, lastline:0x4, cnt 8
- [ 8621.830014] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000001, lastline:0x3, cnt 9
- [ 8621.830014] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000001, lastline:0x3, cnt 9
- [ 8621.863388] rkcif-mipi-lvds2: ERROR: csi size err, intstat:0x1000001, lastline:0x4, cnt 10
复制代码
- int main() {
- cv::VideoCapture cap(0);
- if (!cap.isOpened()) {
- std::cerr << "无法打开摄像头!" << std::endl;
- return -1;
- }
- cap.set(cv::CAP_PROP_FRAME_WIDTH, 1920);
- cap.set(cv::CAP_PROP_FRAME_HEIGHT, 1080);
- cap.set(cv::CAP_PROP_FPS, 30);
- cv::namedWindow("Camera Preview", cv::WINDOW_NORMAL);
- while (true) {
- cv::Mat frame;
- cap.read(frame);
- if (frame.empty()) {
- std::cerr << "无法从摄像头读取图像!" << std::endl;
- break;
- }
- cv::imshow("Camera Preview", frame);
- if (cv::waitKey(1) == 27) {
- break;
- }
- }
- cap.release();
- cv::destroyAllWindows();
- return 0;
- }
复制代码
jefferyzhang 发表于 2023-8-22 15:45
您应该问的是: opencv 是否支持打开MIPI摄像头
据我所知,不修改他们源码情况下是不支持的。他们只支持虚 ...
- :~/opencv_cam$ ./opencv_cam
- [ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (935) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
- [ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1186) setProperty OpenCV | GStreamer warning: GStreamer: unhandled property
- ^C
复制代码
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |