mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
slight performance improvement, detector
This commit is contained in:
@@ -77,7 +77,7 @@ impl Reader for DataMatrixReader {
|
||||
decoderRXingResult = DECODER.decode(&bits)?;
|
||||
points.clear();
|
||||
} else {
|
||||
let detectorRXingResult = Detector::new(image.getBlackMatrix().clone())?.detect()?;
|
||||
let detectorRXingResult = Detector::new(image.getBlackMatrix())?.detect()?;
|
||||
decoderRXingResult = DECODER.decode(detectorRXingResult.getBits())?;
|
||||
points = detectorRXingResult.getPoints().clone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user