所以我做了一个简单的视频捕获程序,它编译得很好,但是当我运行它时,我收到此错误消息:
DB::table('tbl_sondage')->select(DB::raw('tbl_sondage.*,(sondage_v1+sondage_v2+sondage_v3+sondage_v4+sondage_v5+sondage_v6+sondage_v7+sondage_v8+sondage_v9+sondage_v10) AS sumofsondage'))->where('sondage_home', 1)->orWhere('sumofsondage', '>=', 40)->orderByRaw("RAND()")->get();
它所指的代码:
Exception in thread "main" java.lang.Exception: unknown exception
at org.opencv.videoio.VideoCapture.VideoCapture_2(Native Method)
at org.opencv.videoio.VideoCapture.<init>(VideoCapture.java:54)
at jonta.Cam.main(Cam.java:35)
我试图访问笔记本电脑中的内置摄像头而且我正在运行win10,这有什么不对?
答案 0 :(得分:0)
试试这个,希望这能解决OpenCV 3.0.0中的问题
VideoCapture camera = new VideoCapture();
camera.open(0);