bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.51k stars 1.58k forks source link

ArucoDetector Missing from JavaCV #1946

Closed mdurrani808 closed 1 year ago

mdurrani808 commented 1 year ago

https://docs.opencv.org/4.x/javadoc/org/opencv/aruco/ArucoDetector.html#detectMarkers(org.opencv.core.Mat,java.util.List,org.opencv.core.Mat)

Aruco Detector exists here in OpenCV 4.6.0. In previous versions this was just called Aruco, I am able to use both.

https://javadoc.io/doc/org.bytedeco/opencv/latest/index.html ArucoDecector doesn't exist here. Aruco doesn't exist here either.

Any tips on how to proceed or any example code to look at? Living in a sea of unsatisfied link errors and its difficult to follow all the issues.

saudet commented 1 year ago

I can see Aruco here, what's missing from that one? https://javadoc.io/static/org.bytedeco/opencv/4.6.0-1.5.8/org/opencv/aruco/Aruco.html

mdurrani808 commented 1 year ago

using import org.opencv.aruco.Aruco; gives me an UnsatisfiedLinkError, this stack overflow post made it seem like I need to use import org.bytedeco.opencv.opencv_aruco. This package doesn't have Aruco

saudet commented 1 year ago

Please follow the instructions in the README.md file: https://github.com/bytedeco/javacpp-presets/tree/master/opencv#documentation

saudet commented 1 year ago

Specifically this line:

∗ Call Loader.load(opencv_java.class) before using the API in the org.opencv namespace.