tests built

This commit is contained in:
Henry Schimke
2022-12-23 10:28:11 -06:00
parent d7c0c67196
commit f07d546083
8 changed files with 532 additions and 480 deletions

View File

@@ -59,13 +59,13 @@ impl MultipleBarcodeReader for QRCodeMultiReader {
)?;
let mut points = detectorRXingResult.getPoints().clone();
// If the code was mirrored: swap the bottom-left and the top-right points.
let other = decoderRXingResult.getOther();
if let Some( other) = decoderRXingResult.getOther(){
if other.is::<QRCodeDecoderMetaData>() {
(other
.downcast::<QRCodeDecoderMetaData>()
.expect("must downcast to QRCodeDecoderMetaData"))
.applyMirroredCorrection(&mut points);
}
}}
// if (decoderRXingResult.getOther() instanceof QRCodeDecoderMetaData) {
// ((QRCodeDecoderMetaData) decoderRXingResult.getOther()).applyMirroredCorrection(points);
// }