Skip to main content

Crate od_bridge

Crate od_bridge 

Source
Expand description

od-bridge: C ABI bridge for od_opencv, designed for Go CGO integration.

Provides opaque model handles and flat C structs for detection results. Each model is independent: create one for plate detection, another for OCR.

Structs§

ModelHandle
Opaque model handle. Created by any od_model_create_* function.
OdDetection
Single detection result (flat, no pointers, safe for CGO memcpy).
OdDetections
Detection results batch. Caller must free via od_detections_free.

Enums§

OdError
Error code returned by all functions.

Functions§

od_detections_free
Free detection results.
od_model_create
Create a model from an ONNX file (ORT backend, CPU).
od_model_detect
Run detection on an RGB image.
od_model_free
Free a model handle.