Skip to content
Snippets Groups Projects
Verified Commit 5c369a9d authored by Burak Hançerli's avatar Burak Hançerli :headphones:
Browse files

fix: update to the latest zxing commit on master

parent fba3abf8
No related branches found
No related tags found
1 merge request!82fix: update to the latest zxing commit on master
Pipeline #82197 failed
Subproject commit c97fc94e0e129feb0c3596371f86d725540322d7 Subproject commit c98555164e3823a5d3a56cad5a04dc386d9f7e7b
...@@ -83,22 +83,22 @@ void QrScanner::openCamera() ...@@ -83,22 +83,22 @@ void QrScanner::openCamera()
QtConcurrent::run([=] { QtConcurrent::run([=] {
if (!m_captureSession) if (!m_captureSession)
return QList<Result>(); return QList<Barcode>();
QElapsedTimer timer; QElapsedTimer timer;
timer.start(); timer.start();
QList<Result> results = ReadBarcodes(frame.toImage(), readerOptions); auto results = ReadBarcodes(frame.toImage(), readerOptions);
qDebug() << "Barcode detection took" << timer.elapsed() << "ms"; qDebug() << "Barcode detection took" << timer.elapsed() << "ms";
if (!results.size()) if (!results.size())
m_processing = 0; m_processing = 0;
return results; return results;
}).then([=](const QList<Result> &results) { }).then([=](const QList<Barcode> &results) {
if (results.isEmpty() || !m_captureSession) if (results.isEmpty() || !m_captureSession)
return; return;
Result result = results.first(); auto result = results.first();
qDebug() << "Text: " << result.text(); qDebug() << "Text: " << result.text();
qDebug() << "Format: " << result.format(); qDebug() << "Format: " << result.format();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment