Better_Software_Header_MobileBetter_Software_Header_Web

Find what you need - explore our website and developer resources

Efficient barcode scanning with QZXing

Profiling Qt Zebras Crossing

Camera {
    id: camera
}
VideoOutput {
    source: camera
    filters: [ zxingFilter ]
}
QZXingFilter {
    id: zxingFilter
    decoder {
        onTagFound: {
            console.log(tag);
        }
    }
}
QZXingFilter {
    decoder {
        enabledDecoders: QZXing.DecoderFormat_EAN_13 | QZXing.DecoderFormat_CODE_39 | QZXing.DecoderFormat_QR_CODE
    }
}
QZXingFilter {
    captureRect: {
        // setup bindings
        videoOutput.contentRect;
        videoOutput.sourceRect;
        // only scan the central quarter of the area for a barcode
        return videoOutput.mapRectToSource(videoOutput.mapNormalizedRectToItem(Qt.rect(
        0.25, 0.25, 0.5, 0.5
    )));
}
Camera {
    focus {
        focusMode: CameraFocus.FocusContinuous
        focusPointMode: CameraFocus.FocusPointAuto
    }
}

14 Comments

25 - Apr - 2017

Nikolaos Ftylitakis

25 - Apr - 2017

Milian Wolff

7 - Oct - 2017

Elsiete

24 - Nov - 2017

Zaki

25 - Nov - 2017

Milian Wolff

12 - Feb - 2018

Nikolaos Ftylitakis

12 - Feb - 2018

Nikolaos Ftylitakis

23 - Sept - 2019

NickVr88

23 - Sept - 2019

Milian Wolff

23 - Sept - 2019

NickVr88

23 - Sept - 2019

Milian Wolff

26 - Feb - 2020

Song

2 - Mar - 2020

Milian Wolff

9 - May - 2022

Abiyot Dilbeto Miesso

MilianWolff

Milian Wolff

Senior Software Engineer

Learn Modern C++

Learn more