回答編集履歴

1

コード修正

2021/08/25 04:22

投稿

etherbeg
etherbeg

スコア1195

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[x, y]]
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