Search in sources :

Example 1 with MicroQrCodeGenerator

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);
}
Also used : MicroQrCodeGenerator(boofcv.alg.fiducial.microqr.MicroQrCodeGenerator)

Example 2 with MicroQrCodeGenerator

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();
}
Also used : FiducialImageEngine(boofcv.alg.drawing.FiducialImageEngine) MicroQrCode(boofcv.alg.fiducial.microqr.MicroQrCode) MicroQrCodeGenerator(boofcv.alg.fiducial.microqr.MicroQrCodeGenerator) MicroQrCodeEncoder(boofcv.alg.fiducial.microqr.MicroQrCodeEncoder)

Aggregations

MicroQrCodeGenerator (boofcv.alg.fiducial.microqr.MicroQrCodeGenerator)2 FiducialImageEngine (boofcv.alg.drawing.FiducialImageEngine)1 MicroQrCode (boofcv.alg.fiducial.microqr.MicroQrCode)1 MicroQrCodeEncoder (boofcv.alg.fiducial.microqr.MicroQrCodeEncoder)1