📜  violajones python opencv - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:56.553000             🧑  作者: Mango

代码示例1
import numpy as np
import cv2

face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml')

img = cv2.imread('sachin.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)