use of boofcv.alg.fiducial.microqr.MicroQrCodeGenerator in project BoofCV by lessthanoptimal.
the class CreateMicroQrDocumentPDF method configureRenderer.
@Override
protected void configureRenderer(PdfFiducialEngine r) {
g = new MicroQrCodeGenerator();
g.markerWidth = markerWidth * UNIT_TO_POINTS;
g.setRender(r);
}
use of boofcv.alg.fiducial.microqr.MicroQrCodeGenerator in project BoofCV by lessthanoptimal.
the class TestMicroQrCodeDetectorPnP method renderFiducial.
@Override
public GrayF32 renderFiducial() {
MicroQrCode qr = new MicroQrCodeEncoder().addAutomatic("THE MESSAGE").fixate();
int width = MicroQrCode.totalModules(qr.version) * 6;
var engine = new FiducialImageEngine();
// interpolation gets messed up if it touches the border. plus scale is relative
engine.configure(1, width);
var generator = new MicroQrCodeGenerator();
generator.markerWidth = width;
generator.setRender(engine);
generator.render(qr);
return engine.getGrayF32();
}
Aggregations