简体   繁体   English

在OpenCV 3.0中缺少highgui和videocapture库

[英]highgui and videocapture libraries missing in OpenCV 3.0

I was trying to compile OpenCV 3.0 in java netbeans but there was an error: package org.opencv.highgui does not exist After a bit of research I came to know the jar file of OpenCV 3.0 doesn't include highgui. 我试图在Java netbeans中编译OpenCV 3.0,但出现错误: 包org.opencv.highgui不存在经过一番研究,我知道OpenCV 3.0的jar文件不包含highgui。 Can anyone help me what should I do if I want to include highgui and VideoCapture libraries? 如果我想包括highgui和VideoCapture库,谁能帮助我该怎么办?

OpenCV 3 has a new package that includes every single module. OpenCV 3有一个包含每个模块的新软件包。 In CPP It is called opencv_world300.dll and in java it is simply opencv-300.jar 在CPP中,它称为opencv_world300.dll ,在Java中,它称为opencv-300.jar

You only have to include this package and you will be able to use all of opencv's functionality. 您只需要包括此软件包,就可以使用opencv的所有功能。

You can use OpenCV 2.7. 您可以使用OpenCV 2.7。 It has both highgui and video capturing librarire intact. 它同时保留了highgui和视频捕获库。

I started using OpenCV 4.1 and found some code from an earlier version where Highgui and videoCapture weren't working. 我开始使用OpenCV 4.1并从HighguivideoCapture无法使用的早期版本中找到了一些代码。 I found out it was because the import name changed. 我发现这是因为导入名称已更改。

The new ones are org.opencv.highgui.HighGui and org.opencv.videoio.VideoCapture 新的是org.opencv.highgui.HighGuiorg.opencv.videoio.VideoCapture

This could have been a similar problem. 这可能是一个类似的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM