相关疑难解决方法(0)

(-5:错误参数)在函数“矩形”中 - 无法解析“pt1”。索引为 0 的序列项类型错误

当我检测到我的 tflite 文件时,问题发生了。

我写的命令。

python detect.py --weights ./checkpoints/yolov4-tiny-tf.tflite --size 416 --model yolov4 --image D:\yolov4\training\tensorflow-yolov4-tflite-master\data\rice.jpg --framework tflite --tiny true
Run Code Online (Sandbox Code Playgroud)

以及错误的信息:

cv2.rectangle(image, c1, c2, bbox_color, bbox_thick)
cv2.error: OpenCV(4.5.2) :-1: error: (-5:Bad argument) in function 'rectangle'
> Overload resolution failed:
>  - Can't parse 'pt1'. Sequence item with index 0 has a wrong type
>  - Can't parse 'pt1'. Sequence item with index 0 has a wrong type
>  - Can't parse 'rec'. Expected sequence length 4, got 2
>  - Can't parse …
Run Code Online (Sandbox Code Playgroud)

python opencv tensorflow-lite yolov4

20
推荐指数
1
解决办法
10万
查看次数

标签 统计

opencv ×1

python ×1

tensorflow-lite ×1

yolov4 ×1