YOLO V3の環境構築をしているのですが,
こちらのサイトを参考にしていたところ,
python
1python detect.py --images imgs --det det
こちらを実行したところ,こちらのサイトのエラーが発生したため,サイト通り,util.pyのコードを書き換えて実行したところ,
python
1Traceback (most recent call last): 2 File "detect.py", line 300, in <module> 3 list(map(lambda x: write(x, im_batches, orig_ims), output)) 4 File "detect.py", line 300, in <lambda> 5 list(map(lambda x: write(x, im_batches, orig_ims), output)) 6 File "detect.py", line 292, in write 7 cv2.rectangle(img, c1, c2,color, 1) 8cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function 'rectangle' 9> Overload resolution failed: 10> - Can't parse 'pt1'. Sequence item with index 0 has a wrong type 11> - Can't parse 'pt1'. Sequence item with index 0 has a wrong type 12> - Can't parse 'rec'. Expected sequence length 4, got 2 13> - Can't parse 'rec'. Expected sequence length 4, got 2
このような結果がでました.
エラー結果について理解ができず,解決方法についてご教授頂きたいです.
よろしくお願い致します.

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。