public QrCodeProcessing() { super(GrayU8.class); ConfigQrCode config; switch( detectorType ) { case FAST:{ config = ConfigQrCode.fast(); }break; default: { config = new ConfigQrCode(); } } detector = FactoryFiducial.qrcode(config,GrayU8.class); colorDetected.setARGB(0xA0,0,0xFF,0); colorDetected.setStyle(Paint.Style.FILL); colorFailed.setARGB(0xA0,0xFF,0x11,0x11); colorFailed.setStyle(Paint.Style.FILL); }
@Override protected void createDetector(boolean initializing) { if( !initializing) BoofSwingUtil.checkGuiThread(); DetectQrCodeControlPanel controls = (DetectQrCodeControlPanel)DetectQrCodeApp.this.controls; synchronized (this) { ConfigQrCode config = controls.getConfigQr(); config.threshold = controls.getThreshold().createConfig(); detector = FactoryFiducial.qrcode(config,imageClass); detector.setProfilerState(true); } }