Skip to content

Commit

Permalink
add linux
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Aug 6, 2024
1 parent aba4e31 commit a40e9a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion screenpipe-vision/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ pub async fn save_text_files(

#[cfg(target_os = "windows")]
pub async fn perform_ocr_windows(image: &DynamicImage) -> (String, DataOutput, String) {
use std::io::Cursor;
use windows::{
Graphics::Imaging::BitmapDecoder,
Media::Ocr::OcrEngine as WindowsOcrEngine,
Expand Down Expand Up @@ -289,4 +290,4 @@ pub async fn perform_ocr_windows(image: &DynamicImage) -> (String, DataOutput, S
.to_string();

(text, data_output, json_output)
}
}

0 comments on commit a40e9a7

Please sign in to comment.