函数名
yolov5Detect(path,quality,sim)
函数介绍
方法名称:yolov5识别结果参数说明:path:字符串,要识别的图片路径,也可以直接输出识别的范围x,y,宽,高quality:整数型,图片质量,推荐使用训练时的值sim:整数型,过滤掉低于该精确度的结果
返回值:ret:true代表成功,flase代表失败
res:返回识别的结果,json格式
函数例子
--yolo识别指定路径的图片
ret,res = yolov5Detect("/sdcard/Pictures/20240803143250.jpg", 640, 20)
print(ret,res)
--yolo识别指定范围
ret,res = yolov5Detect(100,100,500,600, 640, 20)