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§

FaceDetectionResult
Single face detection + recognition result (flat, safe for CGO memcpy).
FaceDetectionResults
Face detection results batch. Caller must free via face_pipeline_results_free.
FacePipelineHandle
Opaque face pipeline handle. Created by face_pipeline_create*.
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§

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.