I installed OpenCV (opencv-3.0.0-alpha) and it works proberly but I can't use that import
import org.opencv.core.*;
import org.opencv.highgui.Highgui;
public class Main {
public static void main(String[] args) {
// System.loadLibrary("opencv_java244");
// Mat m = Highgui.imread("C:/Users/raj/Desktop/sa1.png",
// Highgui.CV_LOAD_IMAGE_COLOR);
// new LoadImage("C:/Users/raj/Desktop/dst1.jpg", m);
}
}
I get this error
The import org.opencv.highgui cannot be resolved
How can I solve this?
the functionality was split up into new videoio and imgcodecs (that's where you will find imread) modules.
since there is no gui available from java, - no need to have a highgui module anymore.
import org.opencv.core.*;
import org.opencv.imgcodecs; // imread, imwrite, etc
import org.opencv.videoio; // VideoCapture
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With