Python #!/usr/bin/env python # coding=utf-8 # 天才小三斤 lauixData@gmail.com import cv2 # xml 人脸识别检测库 xml = '/Users/sanjin/work/gittools/opencv/data/haarcascades/haarcascade_frontalface_alt.xml' # 创建摄像头 cap = cv2.VideoCapture(0) # 获取窗口大小 size = (int(cap....