Skip to content

Commit

Permalink
some debug logs commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
m13v committed Jul 16, 2024
1 parent 05055a9 commit 96d6d1b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions screenpipe-vision/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub async fn continuous_capture(
let cache = Arc::clone(&cache);
let should_stop = Arc::clone(&should_stop);
task::spawn(async move {
info!("OCR task {} started", id);
// info!("OCR task {} started", id);
while !*should_stop.lock().await {
match ocr_rx.recv().await {
Ok((image_arc, image_hash, frame_number, timestamp, result_tx)) => {
Expand Down Expand Up @@ -89,10 +89,10 @@ pub async fn continuous_capture(
error!("Failed to send OCR result: {}", e);
}
let duration = start_time.elapsed();
debug!(
"OCR task {} processed frame {} in {:?}",
id, frame_number, duration
);
// debug!(
// "OCR task {} processed frame {} in {:?}",
// id, frame_number, duration
// );
}
}
Err(e) => match e {
Expand All @@ -106,7 +106,7 @@ pub async fn continuous_capture(
},
}
}
info!("OCR task {} stopped", id);
// info!("OCR task {} stopped", id);
})
})
.collect();
Expand Down Expand Up @@ -209,7 +209,7 @@ fn calculate_hash(image: &DynamicImage) -> u64 {

pub fn perform_ocr(image: &DynamicImage) -> (String, String) {
let args = Args {
lang: "eng".to_string(),
lang: "etsvng".to_string(),
config_variables: HashMap::from([
("tessedit_create_tsv".into(), "1".into()),
("tessedit_create_txt".into(), "1".into()),
Expand Down

0 comments on commit 96d6d1b

Please sign in to comment.