摘要: 其实也没啥可显摆的,就一行代码: import cv2 import numpy as np img = cv2.imdecode(np.fromfile(path, dtype=np.uint8), -1) # 可读取中文路径下的图片 具体细节自己去了解吧。 参考网址:立即->前往 阅读全文
posted @ 2020-09-03 15:00 海阔天高不知处 阅读(491) 评论(0) 推荐(0) 编辑
摘要: import cv2 from PIL import Image, ImageDraw, ImageFont # opencv往图片中写入中文,返回图片 def DrawChinese(img, text, positive, fontSize=20, fontColor=(0, 255, 0)): 阅读全文
posted @ 2020-09-03 14:55 海阔天高不知处 阅读(1537) 评论(0) 推荐(0) 编辑
摘要: 第一步: win键 + R:输入%HOMEPATH%打开用户文件夹, 创建pip文件夹, 在pip文件夹中创建pip.ini配置文件, 加入以下内容 [global] timeout = 6000 index-url = https://pypi.tuna.tsinghua.edu.cn/simpl 阅读全文
posted @ 2020-09-03 14:30 海阔天高不知处 阅读(142) 评论(0) 推荐(0) 编辑
摘要: ini文件内容 1 [LocalSet] 2 UserName = admin 3 Password = abcd1234 4 KafkaIpPort = 192.168.9.11:9092 5 # 人脸识别精确度 6 Threshold = 0.44 7 # 跳帧检测的数目 8 FPS = 40 阅读全文
posted @ 2020-09-03 14:02 海阔天高不知处 阅读(268) 评论(0) 推荐(0) 编辑