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);
}
Aggregations