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§
- Model
Handle - 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.