mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 04:42:35 +00:00
move to OnceCell binarizer cache
This commit is contained in:
@@ -238,9 +238,9 @@ impl<T: Reader> AbstractBlackBoxTestCase<T> {
|
||||
let rotation = self.test_rxing_results.get(x).unwrap().get_rotation();
|
||||
let rotated_image = Self::rotate_image(&image, rotation);
|
||||
let source = BufferedImageLuminanceSource::new(rotated_image);
|
||||
let mut bitmap = BinaryBitmap::new(Rc::new(RefCell::new(HybridBinarizer::new(
|
||||
let mut bitmap = BinaryBitmap::new(Rc::new(HybridBinarizer::new(
|
||||
Box::new(source),
|
||||
))));
|
||||
)));
|
||||
|
||||
// if file_base_name == "15" {
|
||||
// let mut f = File::create("test_file_output.txt").unwrap();
|
||||
|
||||
Reference in New Issue
Block a user