Class TestUtils

java.lang.Object
org.photonvision.common.util.TestUtils

public class TestUtils extends Object
  • Field Details

  • Constructor Details

    • TestUtils

      public TestUtils()
  • Method Details

    • loadLibraries

      public static boolean loadLibraries()
    • getResourcesFolderPath

      public static Path getResourcesFolderPath(boolean testMode)
    • getTestMode2019ImagePath

      public static Path getTestMode2019ImagePath()
    • getTestMode2020ImagePath

      public static Path getTestMode2020ImagePath()
    • getTestMode2022ImagePath

      public static Path getTestMode2022ImagePath()
    • getTestModeApriltagPath

      public static Path getTestModeApriltagPath()
    • getTestImagesPath

      public static Path getTestImagesPath(boolean testMode)
    • getCalibrationPath

      public static Path getCalibrationPath(boolean testMode)
    • getPowercellPath

      public static Path getPowercellPath(boolean testMode)
    • getWPIImagePath

      public static Path getWPIImagePath(TestUtils.WPI2020Image image, boolean testMode)
    • getWPIImagePath

      public static Path getWPIImagePath(TestUtils.WPI2019Image image, boolean testMode)
    • getPolygonImagePath

      public static Path getPolygonImagePath(TestUtils.PolygonTestImages image, boolean testMode)
    • getApriltagImagePath

      public static Path getApriltagImagePath(TestUtils.ApriltagTestImages image, boolean testMode)
    • getPowercellImagePath

      public static Path getPowercellImagePath(TestUtils.PowercellTestImages image, boolean testMode)
    • getSquaresBoardImagesPath

      public static Path getSquaresBoardImagesPath()
    • getCharucoBoardImagesPath

      public static Path getCharucoBoardImagesPath()
    • getHardwareConfigJson

      public static File getHardwareConfigJson()
    • getCoeffs

      public static CameraCalibrationCoefficients getCoeffs(String filename, boolean testMode)
    • get2019LifeCamCoeffs

      public static CameraCalibrationCoefficients get2019LifeCamCoeffs(boolean testMode)
    • get2020LifeCamCoeffs

      public static CameraCalibrationCoefficients get2020LifeCamCoeffs(boolean testMode)
    • get2023LifeCamCoeffs

      public static CameraCalibrationCoefficients get2023LifeCamCoeffs(boolean testMode)
    • getLaptop

      public static CameraCalibrationCoefficients getLaptop()
    • showImage

      public static void showImage(org.opencv.core.Mat frame, String title, int timeoutMs)
    • showImage

      public static void showImage(org.opencv.core.Mat frame, int timeoutMs)
    • showImage

      public static void showImage(org.opencv.core.Mat frame, String title)
    • showImage

      public static void showImage(org.opencv.core.Mat frame)
    • getTestMode2023ImagePath

      public static Path getTestMode2023ImagePath()
    • getConfigDirectoriesPath

      public static Path getConfigDirectoriesPath(boolean testMode)