Class PhotonArucoDetector

java.lang.Object
org.photonvision.vision.aruco.PhotonArucoDetector
All Implemented Interfaces:
Releasable

public class PhotonArucoDetector extends Object implements Releasable
This class wraps an ArucoDetector for convenience.
  • 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

      public ArucoDetectionResult[] detect(org.opencv.core.Mat grayscaleImg)
      Detect fiducial tags in the grayscaled image using the ArucoDetector in this class. Parameters for detection can be modified with setParams(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 interface Releasable