
python
aspiretop
擅长osg、osgearth三维开发、熟练使用QT、C++
展开
-
图片存储空间压缩
只限制图片存储空间,例如限制存储空间为1M以下。原创 2024-11-25 17:51:58 · 225 阅读 · 0 评论 -
实用技能--python库导出及bat批处理
一、python库导出 requirements.txt 生成 pip freeze > requirements.txt requirements.txt 依赖库安装 pip install -r ./requirements.txt -i https://pypi.douban.com/simple/ --trusted-host mirrors.aliyun.com 二、bat批处理 以下为bat批处理安装whl库文件和requirements.txt依赖库,双击bat即..原创 2021-11-10 11:47:38 · 1264 阅读 · 0 评论 -
python读取txt并绘制曲线
一、代码 # encoding: utf-8 import matplotlib.pyplot as plt file = open('train_cc_kl_11_20.txt') #打开文档 data = file.readlines() #读取文档数据 itr = [] #新建列表,用于保存第一列数据 train_loss = [] #新建列表,用于保存第二列数据 train_loss0 = [] train_cc = [] train_kl = [] train_ssim = []原创 2021-11-21 21:40:34 · 4094 阅读 · 0 评论 -
python3实现二维码定位及识别
一、功能需求 通过opencv及pyzbar库将图片中的二维码边界定位出来,然后再通过pyzbar识别二维码的信息 参考文章 参考代码 import cv2 as cv from pyzbar import pyzbar as pyzbar def decodeDisplay(image): barcodes = pyzbar.decode(image) for barcode in barcodes: # 提取二维码的边界框的位置 # 画出图像原创 2021-04-20 15:59:22 · 4294 阅读 · 6 评论