Explorar o código

test usb camera on RK3399. It's OK.

yuchuli %!s(int64=4) %!d(string=hai) anos
pai
achega
b32f2be103

+ 1 - 1
src/driver/driver_camera_ioctl/main.cpp

@@ -6,7 +6,7 @@
 #include <opencv2/core.hpp>
 
 #ifdef USE_OPENCV4
-#include "opencv2/imgcodecs/legacy/constants_c.h"   //OpenCV4 use this line
+//#include "opencv2/imgcodecs/legacy/constants_c.h"   //OpenCV4 use this line
 #include <opencv2/imgproc/types_c.h>   //OpenCV4 use this line
 #endif
 

+ 4 - 0
src/driver/driver_camera_usb/driver_camera_usb.pro

@@ -31,6 +31,10 @@ SOURCES += main.cpp \
     error( "Couldn't find the ivprotobuf.pri file!" )
 }
 
+
+INCLUDEPATH += /home/linaro/opencv3
+
+
 contains(QMAKE_HOST.arch, aarch64){
     DEFINES += USE_OPENCV4
 }

+ 2 - 2
src/driver/driver_camera_usb/main.cpp

@@ -5,8 +5,8 @@
 #include <opencv2/core.hpp>
 
 #ifdef USE_OPENCV4
-#include "opencv2/imgcodecs/legacy/constants_c.h"   //OpenCV4 use this line
-#include <opencv2/imgproc/types_c.h>   //OpenCV4 use this line
+//#include "opencv2/imgcodecs/legacy/constants_c.h"   //OpenCV4 use this line
+//#include <opencv2/imgproc/types_c.h>   //OpenCV4 use this line
 #endif
 
 #include <opencv2/videoio.hpp>

+ 1 - 1
src/tool/picview/mainwindow.cpp

@@ -5,7 +5,7 @@
 
 #include <opencv2/imgproc.hpp>
 
-#include "opencv2/imgcodecs/legacy/constants_c.h"
+//#include "opencv2/imgcodecs/legacy/constants_c.h"
 #include <opencv2/imgproc/types_c.h>
 
 #include "xmlparam.h"