Search in sources :

Example 11 with AztecCode

use of boofcv.alg.fiducial.aztec.AztecCode in project BoofCV by lessthanoptimal.

the class GenericAztecCodeDetectorChecks method renderAndCheck.

private void renderAndCheck(AztecCodeDetector<GrayF32> detector, SimulatePlanarWorld simulator) {
    simulator.render();
    detector.process(simulator.getOutput());
    if (display) {
        UtilImageIO.saveImage(simulator.getOutput(), "aztec_failed.png");
        ShowImages.showBlocking(simulator.getOutput(), "Failure", 10_000, true);
    }
    List<AztecCode> detections = detector.getDetections();
    assertEquals(1, detections.size());
    AztecCode marker = detections.get(0);
    assertEquals(message, marker.message);
}
Also used : AztecCode(boofcv.alg.fiducial.aztec.AztecCode)

Aggregations

AztecCode (boofcv.alg.fiducial.aztec.AztecCode)11 ConvertBufferedImage (boofcv.io.image.ConvertBufferedImage)5 BufferedImage (java.awt.image.BufferedImage)5 GrayF32 (boofcv.struct.image.GrayF32)4 Test (org.junit.jupiter.api.Test)4 GrayU8 (boofcv.struct.image.GrayU8)3 AztecEncoder (boofcv.alg.fiducial.aztec.AztecEncoder)2 FDistort (boofcv.abst.distort.FDistort)1 AztecPyramid (boofcv.alg.fiducial.aztec.AztecPyramid)1 ConfigAztecCode (boofcv.factory.fiducial.ConfigAztecCode)1 SimulatePlanarWorld (boofcv.simulation.SimulatePlanarWorld)1 CameraPinholeBrown (boofcv.struct.calib.CameraPinholeBrown)1 Se3_F64 (georegression.struct.se.Se3_F64)1 Random (java.util.Random)1 VerbosePrint (org.ddogleg.struct.VerbosePrint)1