質問編集履歴
2
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
1
コードの編集、表示されているエラーの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,7 +56,9 @@
|
|
56
56
|
|
57
57
|
cv2.rectangle(frame, tuple(rect[0:2]),tuple(rect[0:2] + rect[2:4]), color, thickness=2)
|
58
58
|
|
59
|
-
|
59
|
+
center = rect[0:2] + rect[2:4] / 2
|
60
|
+
|
61
|
+
cv2.drawMarker(rect, center, (0, 255, 255), markerType=cv2.MARKER_DIAMOND)
|
60
62
|
|
61
63
|
# 表示
|
62
64
|
|
@@ -79,3 +81,7 @@
|
|
79
81
|
cv2.destroyAllWindows()
|
80
82
|
|
81
83
|
```
|
84
|
+
|
85
|
+
### 表示されているエラー
|
86
|
+
|
87
|
+
SystemError: new style getargs format but argument is not a tuple
|