发布时间:2022-08-16 13:54:29
import turtleimport time# 清屏函数def clear_all(): turtle.penup() turtle.goto(0, 0) turtle.color('white') turtle.pensize(800) turtle.pendown() .........【阅读全文】
发布时间:2022-08-12 12:00:14
# -*- 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-08-11 12:09:27
import cv2import mediapipe as mpmp_drawing = mp.solutions.drawing_utilsmp_drawing_styles = mp.solutions.drawing_stylesmp_holistic = mp.solutions.holisticcap = cv2.VideoCapture(0)with mp_holistic.Holistic( min_detection_confidence=0.5, &nb.........【阅读全文】
发布时间:2022-08-10 18:13:18
import numpy as npimport matplotlib.pyplot as pltclass DrawConfusionMatrix: def __init__(self, labels_name, normalize=True): """normalize:是否设元素为百分比形式 &.........【阅读全文】
发布时间:2022-08-09 17:07:34
import randomimport pandas as pdimport time# 这里定义一个全局变量,用来表示最大的货架数——即批次种类限制N = 200# 然后是写一个函数,实现只存储同一订单对应的货品种类def big_and_small(choose0, order): """ 该函数用于在未保.........【阅读全文】