바뀜

174 바이트 추가됨 ,  2021년 10월 1일 (금) 12:23
23번째 줄: 23번째 줄:  
for name, img_path in img_paths.items():
 
for name, img_path in img_paths.items():
 
     img_bgr = cv2.imread(img_path)
 
     img_bgr = cv2.imread(img_path)
     img_rgb = cv2.cvtColor(img_bgrk, cv2.COLOR_BGR2RGB)
+
     img_rgb = cv2.cvtColor(img_bgrk, cv2.COLOR_BGR2RGB)  # 나중에 이거 빼보자.
 +
   
 +
    _, shape = find_face(img_rgb)
 +
    descs[name] = encode_face(img_rgb, img_shapes)[0]
 +
   
 +
np.save('img/descs.npy', descs)
 +
print(descs)
 
</syntaxhighlight>
 
</syntaxhighlight>
 
=== 함수정의 ===
 
=== 함수정의 ===