mirror of
https://github.com/starovoid/rxing.git
synced 2026-09-26 01:45:11 +00:00
port: rMQR: improve pure detection of large symbols
https://github.com/zxing-cpp/zxing-cpp/commit/c581d8b0bbbe5862f72eda07ecb50fed5cc6bb83
This commit is contained in:
@@ -464,8 +464,10 @@ impl<T: Reader> AbstractBlackBoxTestCase<T> {
|
||||
);
|
||||
|
||||
result = if let Ok(res) = self.barcode_reader.decode_with_hints(source, &pure_hints) {
|
||||
log::fine(format!("{suffix} - read pure barcode"));
|
||||
Some(res)
|
||||
} else {
|
||||
// log::fine(format!("{suffix} - could not read pure barcode"));
|
||||
None
|
||||
};
|
||||
}
|
||||
|
||||
@@ -333,10 +333,12 @@ fn cpp_rmqr_blackbox_test_case() {
|
||||
QrReader,
|
||||
BarcodeFormat::RECTANGULAR_MICRO_QR_CODE,
|
||||
);
|
||||
tester.add_test(1, 1, 0.0);
|
||||
tester.add_test(2, 2, 0.0);
|
||||
tester.add_test(1, 1, 90.0);
|
||||
tester.add_test(1, 1, 180.0);
|
||||
tester.add_test(1, 1, 270.0);
|
||||
|
||||
tester.test_black_box();
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user