mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
slight performance improvement, detector
This commit is contained in:
@@ -29,10 +29,10 @@ use super::MultiFinderPatternFinder;
|
||||
* @author Sean Owen
|
||||
* @author Hannes Erven
|
||||
*/
|
||||
pub struct MultiDetector(Detector);
|
||||
impl MultiDetector {
|
||||
pub fn new(image: BitMatrix) -> Self {
|
||||
Self(Detector::new(image))
|
||||
pub struct MultiDetector<'a>(Detector<'a>);
|
||||
impl<'a> MultiDetector<'_> {
|
||||
pub fn new(image: &'a BitMatrix) -> MultiDetector<'a> {
|
||||
MultiDetector(Detector::new(image))
|
||||
}
|
||||
|
||||
// private static final DetectorRXingResult[] EMPTY_DETECTOR_RESULTS = new DetectorRXingResult[0];
|
||||
|
||||
Reference in New Issue
Block a user