发布时间:2022-06-02 16:50:39
import numpy as npimport PILimport PIL.Imageimport scipyimport scipy.ndimageimport dlibdef get_landmark(filepath, predictor): """get landmark with dlib :return: np.array shape=(68, 2) """&n.........【阅读全文】
发布时间:2022-06-01 17:13:50
import requests # 发送网络请求模块import jsonimport pprint # 格式化输出模块import pandas as pd # 数据分析当中一个非常重要的模块from pyecharts import options as optsfrom pyecharts.charts import Bar,Lin.........【阅读全文】
发布时间:2022-05-23 17:08:48
a,b,c = 5,3,4def traceFunc(theta): x = a*np.cos(theta) y = b*np.sin(theta) return x,ydef lineFunc(x,y): return [-c,x,c], [0,y,0]def txtFunc(theta): th .........【阅读全文】
发布时间:2022-05-19 12:29:48
import osfrom PIL import Image# 源目录# MyPath = 'E:/play/FaceMask_CelebA-master/facemask_image/'MyPath = 'E:/play/FaceMask_CelebA-master/save/masks/'# 输出目录OutPath = 'E:/play/FaceMask_CelebA-master/save/Binarization/'def processImage(filesoure, destsoure, name, imgt.........【阅读全文】