我从一个教程中获取了这段代码,并对其进行了一些修改,这给了我以下错误:
D / JavaCameraView:收到预览框。镜框尺寸:460800
E / cv :: error():OpenCV错误:断言失败(s> = 0),无效 cv :: setSize(cv :: Mat&,int,const int *,const size_t *,bool),文件 /build/master_pack-android/opencv/modules/core/src/matrix.cpp,行 310
E / org.opencv.core.Mat:Mat :: n_1create__JIII()被抓到 cv :: Exception: /build/master_pack-android/opencv/modules/core/src/matrix.cpp:310: 错误:(-215)s> = 0在函数void cv :: setSize(cv :: Mat&,int,const int *,const size_t *,bool)
W / dalvikvm:线程ID = 11:线程退出 具有未捕获的异常(组= 0x41ca8930)
E / AndroidRuntime:致命异常:线程1781
CvException [org.opencv.core.CvException:cv :: Exception: /build/master_pack-android/opencv/modules/core/src/matrix.cpp:310: 错误:(-215)s> = 0在函数void cv :: setSize(cv :: Mat&,int,const int *,const size_t *,bool)
] at org.opencv.core.Mat.n_create(Native Method) at org.opencv.core.Mat.create(Mat.java:355) at midlaboratories.reconocimientoconcamara.MainActivity.onCameraFrame(MainActivity.java:192) at org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:392) at org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:373) at java.lang.Thread.run(Thread.java:856)
D / JavaCameraView:收到预览框。镜框尺寸:460800
D / JavaCameraView:收到预览框。镜框尺寸:460800 > D / CameraBridge:呼叫checkCurrentState 调用processExitState:1 D / JavaCameraView:与
断开连接通知线程
等待线程I /进程:正在发送信号。
PID:23475 SIG:9应用程序终止。
我认为配置相机的尺寸可能是一个错误,我使用的是10英寸的平板电脑
有人可以帮我吗?