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

fix: null json

Louis Beaumont8829a9d5e7a9
diff --git a/screenpipe-vision/src/microsoft.rs b/screenpipe-vision/src/microsoft.rs
index c6c12e780..3ea47b64e 100644
--- a/screenpipe-vision/src/microsoft.rs
+++ b/screenpipe-vision/src/microsoft.rs
@@ -34,9 +34,9 @@ pub async fn perform_ocr_windows(image: &DynamicImage) -> (String, String, Optio
let json_output = serde_json::json!([{
"text": text,
- "confidence": null // Windows OCR doesn't provide confidence scores
+ "confidence": 1.0 // Windows OCR doesn't provide confidence scores
}])
.to_string();
- (text, json_output, None)
+ (text, json_output, Some(1.0))
}
\ No newline at end of file