Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

length using ocr text by windows

matthew-heartfuldcc7304dbf01
diff --git a/screenpipe-vision/src/bin/screenpipe-vision.rs b/screenpipe-vision/src/bin/screenpipe-vision.rs
index 096276c9a..89ec04ac8 100644
--- a/screenpipe-vision/src/bin/screenpipe-vision.rs
+++ b/screenpipe-vision/src/bin/screenpipe-vision.rs
@@ -41,7 +41,7 @@ async fn main() {
let start_time = std::time::Instant::now();
loop {
if let Some(result) = result_rx.recv().await {
- println!("OCR Text length: {}", result.text.len());
+ println!("OCR Text length across visible windows: {}", result.window_ocr_results.iter().map(|w| w.text.len()).sum::<usize>());
}
let elapsed = start_time.elapsed();
@@ -53,4 +53,4 @@ async fn main() {
}
capture_thread.await.unwrap();
-}
+}
\ No newline at end of file