revised readme with helpers

This commit is contained in:
Henry Schimke
2023-01-05 11:36:20 -06:00
parent f452c54f64
commit 2f429a1617
2 changed files with 19 additions and 30 deletions

View File

@@ -1,3 +1,19 @@
/// helper functions for common decode scenarios
/// ## Eample
/// ```
/// use rxing;
///
/// fn main() {
/// let file_name = "test_image.jpg";
///
/// let results = rxing::helpers::detect_multiple_in_file(file_name).expect("decodes");
///
/// for result in results {
/// println!("{} -> {}", result.getBarcodeFormat(), result.getText())
/// }
/// }
/// ```
use std::{
collections::{HashMap, HashSet},
rc::Rc,