简体   繁体   中英

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. Can anyone help me what should I do if I want to include highgui and VideoCapture libraries?

OpenCV 3 has a new package that includes every single module. In CPP It is called opencv_world300.dll and in java it is simply opencv-300.jar

You only have to include this package and you will be able to use all of opencv's functionality.

You can use OpenCV 2.7. It has both highgui and video capturing librarire intact.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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