disable image dumping

This commit is contained in:
Henry Schimke
2022-10-11 08:15:00 -05:00
parent b43ef07382
commit cd55c02e04

View File

@@ -235,14 +235,14 @@ impl AbstractBlackBoxTestCase {
let source = BufferedImageLuminanceSource::new(rotated_image); let source = BufferedImageLuminanceSource::new(rotated_image);
let bitmap = BinaryBitmap::new(Box::new(HybridBinarizer::new(Box::new(source)))); let bitmap = BinaryBitmap::new(Box::new(HybridBinarizer::new(Box::new(source))));
#[cfg(test)] // #[cfg(test)]
if file_base_name == "14" { // if file_base_name == "14" {
let mut f = File::create("test_file_output.txt").unwrap(); // let mut f = File::create("test_file_output.txt").unwrap();
dbg!("dumb"); // dbg!("dumb");
write!(f,"{}", bitmap.getBlackMatrix().unwrap()); // write!(f,"{}", bitmap.getBlackMatrix().unwrap());
drop(f); // drop(f);
Self::rotate_image(&image, rotation).save("test_image.png").unwrap(); // Self::rotate_image(&image, rotation).save("test_image.png").unwrap();
} // }
if let Ok(decoded) = if let Ok(decoded) =
self.decode(&bitmap, rotation, &expected_text, &expected_metadata, false) self.decode(&bitmap, rotation, &expected_text, &expected_metadata, false)