Yolo_v8n_seg_soc
Attributes
Classes
A Python based gstreamer plugin template. Enables the user to: |
Module Contents
- Yolo_v8n_seg_soc.plugin_name = 'mask_renderer'
- Yolo_v8n_seg_soc.out_size = 0
- class Yolo_v8n_seg_soc.MaskRenderer
A Python based gstreamer plugin template. Enables the user to: - Accept incoming buffers from dynamic pads - Define any custom plugin runtime logic User has to only override the run() function
- FRAME_WIDTH = 1280
- FRAME_HEIGHT = 720
- MASK_WIDTH = 160
- MASK_HEIGHT = 160
- MASK_DATA_OFFSET = 121
- out_size = 0
- frame_id = 0
- bgr_to_nv12
- nv12_to_bgr
- parse_mask_data(data)
- create_combined_mask(masks, num_masks)
- blend_with_addWeighted(bgr_image, combined_mask)
- run(input_buffers: List[python_plugin_template.SimaaiPythonBuffer], output_buffer: bytes) None
Input: input_buffers: List[Gst.Buffer] List of input buffers, source from each pad. output_buffer: Gst.Buffer Output buffer that needs to be overwritten.
Implement your logic within this function. Process the input buffers, and modify the output buffer.