주 메뉴 열기
대문
임의의 문서로
로그인
설정
Pywiki 소개
면책 조항
Pywiki
검색
바뀜
← 이전 편집
다음 편집 →
얼굴인식
(편집)
2021년 10월 1일 (금) 12:23 판
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>
=== 함수정의 ===
=== 함수정의 ===
Sam
사무관
,
인터페이스 관리자
,
관리자
, 교사
편집
1,408
번