Skip to content

Commit

Permalink
testing json text
Browse files Browse the repository at this point in the history
  • Loading branch information
m13v committed Jul 17, 2024
1 parent 510eaa7 commit cadabc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions screenpipe-vision/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ fn test_ocr_output() -> Result<(), Box<dyn std::error::Error>> {
println!("Path to testing_OCR.png: {:?}", path);

let image = image::open(&path).expect("Failed to open image");
let (text, tsv_output) = perform_ocr(&image);
let (text, tsv_output, json_output) = perform_ocr(&image);

println!("OCR Text: {}", text);
println!("TSV Output: {}", tsv_output);
// println!("OCR Text: {}", text);
println!("json_output: {}", json_output);

assert!(!text.is_empty(), "OCR text should not be empty");
assert!(!tsv_output.is_empty(), "TSV output should not be empty");
Expand Down

0 comments on commit cadabc7

Please sign in to comment.