回答編集履歴
1
コード修正
test
CHANGED
@@ -6,7 +6,9 @@
|
|
6
6
|
|
7
7
|
for (x, y, w, h) in face_list:
|
8
8
|
|
9
|
+
pos = (x, y)
|
10
|
+
|
9
|
-
color = [int(v) for v in img[
|
11
|
+
color = [int(v) for v in img[pos]]
|
10
12
|
|
11
13
|
cv2.rectangle(frame, (x, y), (x+w, y+h), color, thickness=-1)
|
12
14
|
|