Yolo_v8n_seg_soc ================ .. py:module:: Yolo_v8n_seg_soc Attributes ---------- .. autoapisummary:: Yolo_v8n_seg_soc.plugin_name Yolo_v8n_seg_soc.out_size Classes ------- .. autoapisummary:: Yolo_v8n_seg_soc.MaskRenderer Module Contents --------------- .. py:data:: plugin_name :value: 'mask_renderer' .. py:data:: out_size :value: 0 .. py:class:: 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 .. py:attribute:: FRAME_WIDTH :value: 1280 .. py:attribute:: FRAME_HEIGHT :value: 720 .. py:attribute:: MASK_WIDTH :value: 160 .. py:attribute:: MASK_HEIGHT :value: 160 .. py:attribute:: MASK_DATA_OFFSET :value: 121 .. py:attribute:: out_size :value: 0 .. py:attribute:: frame_id :value: 0 .. py:attribute:: bgr_to_nv12 .. py:attribute:: nv12_to_bgr .. py:method:: parse_mask_data(data) .. py:method:: create_combined_mask(masks, num_masks) .. py:method:: blend_with_addWeighted(bgr_image, combined_mask) .. py:method:: 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.