HighGUI is missing from OpenCV 3.0.0 JAR

前端 未结 3 2058
夕颜
夕颜 2020-12-03 02:41

I was compiling OpenCV 3.0.0 with Java support. My script was:

mkdir /opt/opencv /opt/opencv/opencv-build
cd /opt/opencv
git clone https://github.com/Itseez/         


        
相关标签:
3条回答
  • 2020-12-03 03:04

    Yesterday I found at the end of introduction http://docs.opencv.org/2.4/doc/tutorials/introduction/clojure_dev_intro/clojure_dev_intro.html answer for my question:

    The OpenCV Java API does not wrap the highgui module functionalities depending on Qt (e.g. namedWindow and imshow. If you want to create windows and show images into them while interacting with OpenCV from the REPL, at the moment you’re left at your own. You could use Java Swing to fill the gap.

    0 讨论(0)
  • 2020-12-03 03:10

    Short Answer : There is no more HighGUI module in Java for 3.0 anymore.

    Long One : The functionality in HighGUI has been split into two additional modules:

    1. videoio (VideoCapture, VideoWriter).
    2. imgcodecs (imread/imwrite and friends).

    Since there's no GUI functionality exposed to Java, there is no need to have a HighGUI module in Java anymore.

    0 讨论(0)
  • 2020-12-03 03:19

    Migrating from OpenCV 2.x to 3.0.0 (Java)

    Highgui.imread(fileName, Highgui.CV_LOAD_IMAGE_GRAYSCALE)
    Highgui.imread(fileName)
    

    become resp:

    Imgcodecs.imread(fileName, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE)
    Imgcodecs.imread(fileName)
    

    Also, drawing functions such as:

    Core.circle(..), Core.line(..), etc..
    

    Have been moved to:

    Imgproc.circle(..), Imgproc.line(..)
    

    Note Moments, HuMoments missing in 3.0.0. Will be fixed in 3.1 See bug

    0 讨论(0)
提交回复
热议问题