Skip to content

Commit

Permalink
feat: windows native ocr
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Aug 3, 2024
1 parent 031758d commit 63f1d7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion screenpipe-vision/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ pub async fn process_ocr_task(
#[cfg(target_os = "windows")]
OcrEngine::WindowsNative => {
debug!("Windows Native OCR");
perform_ocr_windows(&image_arc)
perform_ocr_windows(&image_arc).await
}
_ => {
error!("Unsupported OCR engine");
Expand Down
2 changes: 1 addition & 1 deletion screenpipe-vision/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ pub async fn perform_ocr_windows(image: &DynamicImage) -> (String, DataOutput, S

let windows_buffer = Buffer::Create(buffer.len() as u32).unwrap();
windows_buffer
.AsBuffer()
.as_buffer() // Change AsBuffer() to as_buffer()
.unwrap()
.WriteBytes(&buffer)
.unwrap();
Expand Down

0 comments on commit 63f1d7a

Please sign in to comment.