yolov8_postprocο
Attributesο
Classesο
A Python based gstreamer plugin template. Enables the user to: |
Module Contentsο
- yolov8_postproc.plugin_name = 'yolov8_postproc_overlay'ο
- class yolov8_postproc.MyPluginο
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
- out_size = 0ο
- classes = 87ο
- color_paletteο
- confidence_thres = 0.5ο
- iou_thres = 0.3ο
- boxes = []ο
- scores = []ο
- class_ids = []ο
- src_caps_set = Falseο
- MODEL_WIDTH = 640ο
- MODEL_HEIGHT = 480ο
- FRAME_WIDTH = 1280ο
- FRAME_HEIGHT = 720ο
- model_outs = [(60, 80, 4), (30, 40, 4), (15, 20, 4), (60, 80, 87), (30, 40, 87), (15, 20, 87)]ο
- draw_detections(img, box, score, class_id)ο
- get_model_outputs(input_buffer)ο
- compute_iou(box, boxes)ο
- nms(boxes, scores, iou_threshold)ο
- rescale_boxes(boxes, input_width, input_height, target_width, target_height)ο
- xywh2xyxy(x)ο
- extract_boxes(boxes)ο
- run(input_buffers: List[python_plugin_template.SimaaiPythonBuffer], output_buffer: bytes) None ο
Define your plugin logic HERE Inputs: input_buffers List[SimaaiPythonBuffer]: List of input buffers Object of class SimaaiPythonBuffer has three fields: 1. metadata MetaStruct Refer to the structure above 2. data bytes - raw bytes of the incoming buffer 3. size int - size of incoming buffer in bytes