and in this i want to include my custom element that takes input from HailoTracker (Tracking Id )and then i’ll do further processing with it .
or
It would be great if i get that Tracking id in Hailofilter( centrePose)
You can modify your pipeline to retrieve tracking IDs directly in the HailoFilter element, allowing for further processing without introducing a new custom element. Here’s how this can be achieved:
Modify HailoFilter to Access Metadata from HailoTracker
Update the shared library used in the HailoFilter (e.g., libcenterpose_post.so) to retrieve metadata from the buffer passed through the pipeline.
Use GStreamer’s GstMeta API to access the HailoTracker metadata:
GstBuffer *buffer;
// Access the tracking metadata
HailoTrackerMeta *meta = gst_buffer_get_hailotracker_meta(buffer);
if (meta) {
g_print("Tracking ID: %d\n", meta->tracking_id);
// Add your custom processing logic here
}
Update Pipeline Configuration
Modify the pipeline to ensure that metadata is passed along the pipeline without being stripped by intermediate elements:
Rebuild the shared library (libcenterpose_post.so) with the modified logic to extract tracking IDs.
Test the updated pipeline to ensure tracking IDs are correctly retrieved and processed by the HailoFilter.
Update Notice:
This enhancement is planned for inclusion in upcoming releases of the Hailo Raspberry Pi examples, providing out-of-the-box support for accessing HailoTracker metadata in HailoFilter. This update will allow developers to easily integrate tracking logic directly into their post-processing workflows on Raspberry Pi devices.
Let me know if you need help modifying the libcenterpose_post.so library or testing the changes on your Raspberry Pi!