slight performance improvement, detector

This commit is contained in:
Henry Schimke
2022-12-31 17:01:10 -06:00
parent a111776032
commit a6727220fa
11 changed files with 31 additions and 30 deletions

View File

@@ -67,7 +67,7 @@ impl Reader for QRCodeReader {
points = Vec::new();
} else {
let detectorRXingResult =
Detector::new(image.getBlackMatrix().clone()).detect_with_hints(&hints)?;
Detector::new(image.getBlackMatrix()).detect_with_hints(&hints)?;
decoderRXingResult =
decoder::decode_bitmatrix_with_hints(detectorRXingResult.getBits(), &hints)?;
points = detectorRXingResult.getPoints().clone();