Commit cf8d5ad
committed
metadata: add exported GstAnalyticsKeypointDescriptor API with GIR bindings
Move keypoint descriptor data (point names, skeleton connections) and
lookup logic from static inline helpers in the header into a proper
exported C source file (gstanalyticskeypointdescriptor.c). The header
now declares a clean public API with GST_ANALYTICS_META_API-annotated
functions matching the style of gstanalyticskeypointmtd.h.
New public API:
- gst_analytics_keypoint_descriptor_lookup()
- gst_analytics_keypoint_descriptor_get_semantic_tag()
- gst_analytics_keypoint_descriptor_get_point_count()
- gst_analytics_keypoint_descriptor_get_point_name()
- gst_analytics_keypoint_descriptor_get_skeleton_connection_count()
- gst_analytics_keypoint_descriptor_get_skeleton_connection()
The functions are picked up by g-ir-scanner, so the DLStreamerMeta-1.0
GIR/typelib now includes KeypointDescriptor with full Python bindings
(DLStreamerMeta.KeypointDescriptor.lookup(), .get_point_name(), etc.).
All C++ consumers (yolo_v8, yolo_v26, keypoints_hrnet, keypoints_openpose,
blob_to_meta_converter, tensor.h) are updated to use the new pointer-based
lookup API instead of the removed static variables.
Also included:
- Unit tests for the Python bindings (test_keypoint_descriptor.py)
- Developer documentation (docs/user-guide/dev_guide/keypoint_descriptor.md)1 parent 767b8b9 commit cf8d5ad
13 files changed
Lines changed: 1187 additions & 314 deletions
File tree
- docs/user-guide/dev_guide
- girs
- include/dlstreamer/gst
- metadata
- videoanalytics
- src
- gst/metadata
- monolithic/gst/inference_elements/common/post_processor
- converters
- to_roi
- to_tensor
- tests/unit_tests/tests_gstgva
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
0 commit comments