모자이크1 Mediapipe와 OpenCV를 이용한 얼굴 모자이크 처리 안녕하세요! Mediapipe의 face detection 기술을 통해 얼굴 모자이크를 해보겠습니당 라이브러리가 설치되어 있지 않다면 먼저 설치해 주세요! pip install opencv-python pip install mediapipe 먼저 필요한 라이브러리를 import 해줍니다. import cv2 import mediapipe as mp # 미디어파이프 초기화 mp_face_detection = mp.solutions.face_detection mp_drawing = mp.solutions.drawing_utils face_detection = mp_face_detection.FaceDetection(min_detection_confidence=0.30) 웹캠을 사용해 줍니다. 보통은 0으로 .. 2023. 10. 31. 이전 1 다음