[Python]OpenCV - 10 Mediapipe-hand-face
# 1. 손 동작중에서 spider or Rock을 인식 / Fist = # 2. 얼굴을 인식 # 3. 얼굴에 스파이더맨 가면 씌우기 # 4. 손 동작이 Fist일 때는 호랑이 가면 씌우기 In [2]: ## 동영상과 mediapipe-hand를 연결하기 ## 한손의 동작 인식하기 import cv2 import mediapipe as mp gesture = { 0:'fist', 1:'one', 2:'two', 3:'three', 4:'four', 5:'five', 6:'six', 7:'rock', 8:'spiderman', 9:'yeah', 10:'ok', } # gesture_train를 머신러닝 모델에 학습 import numpy as np file = np.genfromtxt('images/ges..
2023. 11. 2.