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

feat: windows native ocr

Louis Beaumont63f1d7a28afd
diff --git a/screenpipe-vision/src/core.rs b/screenpipe-vision/src/core.rs
index 9235af410..2604d5c79 100644
--- a/screenpipe-vision/src/core.rs
+++ b/screenpipe-vision/src/core.rs
@@ -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");
diff --git a/screenpipe-vision/src/utils.rs b/screenpipe-vision/src/utils.rs
index 13543f669..65dd7dcef 100644
--- a/screenpipe-vision/src/utils.rs
+++ b/screenpipe-vision/src/utils.rs
@@ -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();