09 2020 档案

摘要:from PIL import Imagefrom PIL import ImageFile #代码五分钟,解决报错两小时(这两句不能丢)ImageFile.LOAD_TRUNCATED_IMAGES = True #import osdef get_size(path): name_list=os 阅读全文
posted @ 2020-09-29 15:57 diracy 阅读(171) 评论(0) 推荐(0)
摘要:(资源与代码同目录下即可不报错)# import cv2# import numpy# import shutil# import os# import time# from multiprocessing import Process# class MyProcess(Process):# def 阅读全文
posted @ 2020-09-28 17:25 diracy 阅读(851) 评论(0) 推荐(0)
摘要:pip config set global .index-url https://mirrors.aliyun.com/pypi/simple/ pip config set global .index-url https://pypi.tuna.tsinghua.edu.cn/simple pip 阅读全文
posted @ 2020-09-12 11:19 diracy 阅读(170) 评论(0) 推荐(0)
摘要:import cv2import numpycap=cv2.VideoCapture(0)#参数可改成视频路径while True: ret,frame=cap.read() print(ret,frame) cv2.imshow('frame',frame) if cv2.waitKey(1) a 阅读全文
posted @ 2020-09-12 11:12 diracy 阅读(141) 评论(0) 推荐(0)