Package org.photonvision.vision.aruco
Class PhotonArucoDetector
java.lang.Object
org.photonvision.vision.aruco.PhotonArucoDetector
- All Implemented Interfaces:
Releasable
This class wraps an
ArucoDetector
for convenience.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondetect
(org.opencv.core.Mat grayscaleImg) Detect fiducial tags in the grayscaled image using theArucoDetector
in this class.org.opencv.objdetect.ArucoDetector
org.opencv.objdetect.DetectorParameters
Get a copy of the current parameters being used.void
release()
void
setParams
(org.opencv.objdetect.DetectorParameters params)
-
Constructor Details
-
PhotonArucoDetector
public PhotonArucoDetector()
-
-
Method Details
-
getDetector
public org.opencv.objdetect.ArucoDetector getDetector() -
getParams
public org.opencv.objdetect.DetectorParameters getParams()Get a copy of the current parameters being used. Must next call setParams to update the underlying detector object! -
setParams
public void setParams(org.opencv.objdetect.DetectorParameters params) -
detect
Detect fiducial tags in the grayscaled image using theArucoDetector
in this class. Parameters for detection can be modified withsetParams(DetectorParameters)
.- Parameters:
grayscaleImg
- A grayscaled image- Returns:
- An array of ArucoDetectionResult, which contain tag corners and id.
-
release
public void release()- Specified by:
release
in interfaceReleasable
-