You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: don't require numpy for bytes OCR (panicked on bare installs)
extract_input probed for an ndarray before checking the object type, and pyo3-numpy panics while fetching the numpy C API capsule when numpy is absent, so ocr(bytes) crashed on a bare install. Probe arrays only when numpy is importable (cached per process), and make return_array=True raise a clean RuntimeError instead of panicking. Regression test runs the no-numpy scenario in a subprocess.
Found by the tag-only ov-download-check job: its bare wheel install has no numpy and the byte-input smoke OCR panicked.