新模块功能:蚕茧视频识别
This commit is contained in:
@@ -132,18 +132,6 @@ def process_silkworm_cocoon_image(
|
||||
# YOLO检测
|
||||
img_bytes_out, results_json = YOLOSingleton.detect(img_bytes)
|
||||
|
||||
# results_json = {
|
||||
# "total_objects": "",
|
||||
# "max_confidence": "",
|
||||
# "min_confidence": "",
|
||||
# "avg_confidence": "",
|
||||
# "class_counts": "",
|
||||
# "speed_ms": {
|
||||
# "preprocess": "",
|
||||
# "inference": "",
|
||||
# "postprocess": "",
|
||||
# },
|
||||
# }
|
||||
speed_json = results_json.get("speed_ms")
|
||||
|
||||
file_bytes_out = BytesIO(img_bytes_out)
|
||||
|
||||
Reference in New Issue
Block a user