我试图在 java netbeans 中编译 OpenCV 3.0 但出现错误: 包 org.opencv.highgui 不存在 经过一番研究,我知道 OpenCV 3.0 的 jar 文件不包含 highgui。如果我想包含 highgui 和 VideoCapture 库,谁能帮我怎么办?
问问题
1420 次
3 回答
0
您可以使用 OpenCV 2.7。它具有完整的 highgui 和视频捕获库。
于 2016-02-27T11:54:15.800 回答
0
I started using OpenCV 4.1
and found some code from an earlier version where Highgui
and videoCapture
weren't working. I found out it was because the import name changed.
The new ones are org.opencv.highgui.HighGui
and org.opencv.videoio.VideoCapture
This could have been a similar problem.
于 2019-07-09T17:45:00.163 回答
0
OpenCV 3 有一个包含每个模块的新包。在 CPP 中它被调用opencv_world300.dll
,而在 java 中它很简单opencv-300.jar
你只需要包含这个包,你就可以使用 opencv 的所有功能。
于 2015-10-02T19:32:55.380 回答