发布时间:2022-04-11 13:35:40
def get_head_pose(shape): # 头部姿态估计 # (像素坐标集合)填写2D参考点 # 17左眉左上角/21左眉右角/22右眉左上角/26右眉右上角/36左眼左上角/39左眼右上角/42右眼左上角/ # 45右眼右上角/31鼻子左上角/35鼻子右上角/48左上.........【阅读全文】
发布时间:2022-04-01 17:26:04
import pygameimport randomdef main(): # 初始化pygame pygame.init() # 默认不全屏 fullscreen = False # 窗口未全屏宽和高 WIDTH, HEIGHT = 1100, 600  .........【阅读全文】
发布时间:2022-03-24 17:21:31
import redisimport uuidimport timeclass LockService: """ 基于Redis实现的分布式锁 """ host = 'localhost' port = 6379 password = '' db.........【阅读全文】
发布时间:2022-03-18 17:21:36
# -*- coding: utf-8 -*-import cv2import dlibimport numpy as npdetector = dlib.get_frontal_face_detector() # dlib的正向人脸检测器predictor = dlib.shape_predictor(r'shape_predictor_68_face_landmarks.dat') # dlib的人脸形状检测器def get_image_size(image): &.........【阅读全文】
发布时间:2022-03-16 17:18:38
import turtle as Timport randomimport time#=======画樱花的躯干(60,t)===============T.title('凋落的樱花')def Tree(branch, t): time.sleep(0.0005) if branch > 3: if 8 <= branch.........【阅读全文】