Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

raea-perceive: portable OCR fetches ocrs's .onnx models (the .rten copies answer 403), and the tool's vision-portable feature turns on its own ocr-portable and face-portable, so a vision-portable build has read-lines and the face commands (closes #69)

shinyobjectzb800a1c5e123
diff --git a/systems/perceive/src/ocr_portable.rs b/systems/perceive/src/ocr_portable.rs
index 29cb6db8..40acd06b 100644
--- a/systems/perceive/src/ocr_portable.rs
+++ b/systems/perceive/src/ocr_portable.rs
@@ -4,9 +4,10 @@
use std::path::PathBuf;
+// the ONNX files ocrs-cli fetches (RTen loads them); the bucket's .rten copies answer 403 since 2026-11
const MODELS: [(&str, &str); 2] = [
- ("text-detection.rten", "https://ocrs-models.s3-accelerate.amazonaws.com/text-detection.rten"),
- ("text-recognition.rten", "https://ocrs-models.s3-accelerate.amazonaws.com/text-recognition.rten"),
+ ("text-detection.onnx", "https://ocrs-models.s3-accelerate.amazonaws.com/text-detection.onnx"),
+ ("text-recognition.onnx", "https://ocrs-models.s3-accelerate.amazonaws.com/text-recognition.onnx"),
];
fn model(name: &str, url: &str) -> Result<PathBuf, String> {
diff --git a/tools/perceive/Cargo.toml b/tools/perceive/Cargo.toml
index 880cfdcc..950f3f1f 100644
--- a/tools/perceive/Cargo.toml
+++ b/tools/perceive/Cargo.toml
@@ -10,7 +10,7 @@ description = "raea-perceive: perception from a shell (footage, frames, sound, t
denoise = ["raea-sys-footage/denoise", "raea-sys-song/denoise"]
ocr-portable = ["raea-sys-perceive/ocr-portable"]
face-portable = ["raea-sys-perceive/face-portable"]
-vision-portable = ["raea-sys-perceive/vision-portable"]
+vision-portable = ["ocr-portable", "face-portable", "raea-sys-perceive/vision-portable"]
[dependencies]
# frames come from the media plane (VideoToolbox on Apple, ffmpeg or the software decoders elsewhere)