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§
- Face
Detection Result - Single face detection + recognition result (flat, safe for CGO memcpy).
- Face
Detection Results - Face detection results batch. Caller must free via
face_pipeline_results_free. - Face
Pipeline Handle - Opaque face pipeline handle. Created by
face_pipeline_create*. - 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§
- face_
pipeline_ ⚠aligned_ size - Returns the expected aligned face size (square side, read from the ONNX model).
- face_
pipeline_ ⚠create - Create a face pipeline (YuNet detector + ArcFace recognizer, ORT CPU).
- face_
pipeline_ ⚠destroy - Free a face pipeline handle.
- face_
pipeline_ ⚠embed - Extract embedding from a pre-aligned face image.
- face_
pipeline_ ⚠process - Run face detection + recognition on an RGB image.
- face_
pipeline_ ⚠results_ free - Free face detection results.
- 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.