随笔分类 -  python

摘要:import argparse import os import imageio import cv2 import numpy as np import time from concurrent.futures import ThreadPoolExecutor,wait,ALL_COMPLETE 阅读全文
posted @ 2023-02-28 17:14 小小灰迪 阅读(26) 评论(0) 推荐(0) 编辑
摘要:参考链接,scripts/python/database.py import sys import sqlite3 import numpy as np IS_PYTHON3 = sys.version_info[0] >= 3 MAX_IMAGE_ID = 2**31 - 1 CREATE_CAM 阅读全文
posted @ 2023-02-21 16:25 小小灰迪 阅读(357) 评论(0) 推荐(0) 编辑
摘要:import matplotlib.pyplot as plt plt.ion() # 非阻塞模式 path = "/****/color_0004_%04d.png" plt.ion() for i in range(5): path1 = path % i plt.axis("off") plt 阅读全文
posted @ 2023-01-16 20:41 小小灰迪 阅读(1354) 评论(0) 推荐(0) 编辑
摘要:Traceback (most recent call last): File "/home/lhw/Gradute/jyq/eval/examples/lpipSeq/test.py", line 9, in <module> from matplotlib.pylab import * File 阅读全文
posted @ 2023-01-16 20:07 小小灰迪 阅读(1380) 评论(0) 推荐(0) 编辑
摘要:import os import cv2 import numpy as np from PIL import Image, ImageDraw, ImageFont txtList = ["保存单帧", "保存多帧"] height = 300 width = 1068 # word = word 阅读全文
posted @ 2023-01-03 17:19 小小灰迪 阅读(662) 评论(0) 推荐(0) 编辑
摘要:共享内存保存读取图片 OpenShare.cpp #include "OpenShare.h" //共享内存1,, C++发 --python 传递位姿与图像存储路径 int key_id = 1111; int shmid; void *pBuffer; //共享内存2, C++发 --pytho 阅读全文
posted @ 2023-01-02 21:08 小小灰迪 阅读(897) 评论(0) 推荐(0) 编辑
摘要:def get_world_points(depth, intrinsics, extrinsics): ''' Args: depthmap: H*W intrinsics: 3*3 or 4*4 extrinsics: 4*4, world to camera Return: points: N 阅读全文
posted @ 2022-12-14 17:25 小小灰迪 阅读(643) 评论(0) 推荐(0) 编辑
摘要:运行别人现成的python环境的pip会报错 Fatal error in launcher: Unable to create process using '"d:\python3.7\python.exe" "E:\***\Python3.7\Scripts\pip.exe" list': ?? 阅读全文
posted @ 2022-03-22 19:21 小小灰迪 阅读(981) 评论(0) 推荐(0) 编辑
摘要:运行复制过来的python环境的pip包,出现这种错误 打开该pip文件 #!/your/python/path/python/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main im 阅读全文
posted @ 2022-02-12 21:03 小小灰迪 阅读(495) 评论(0) 推荐(0) 编辑
摘要:鱼眼畸变 python opencv文档 void cv::fisheye::undistortPoints(InputArray distorted, OutputArray undistorted, InputArray K, InputArray D, InputArray R = noArr 阅读全文
posted @ 2022-01-05 23:10 小小灰迪 阅读(637) 评论(0) 推荐(0) 编辑
摘要:将np.float64转换成CV_64FC2格式 cv2.fisheye.undistortPoints 参考链接 # dist_keypt.shape=(64,2) dist_keypt = np.float64(dist_keypt[:,np.newaxis,:]) numpy增加元素 list 阅读全文
posted @ 2022-01-05 22:54 小小灰迪 阅读(91) 评论(0) 推荐(0) 编辑
摘要:判断pytorch是否支持cuda print(torch.cuda.is_available()) 阅读全文
posted @ 2022-01-03 17:13 小小灰迪 阅读(37) 评论(0) 推荐(0) 编辑
摘要:# 读取单张图片的gps数据 def get_gps(path): with open(path, 'rb') as f: exif_dict = exifread.process_file(f) # print(exif_dict) # 经度 [108, 45, 19451/400] lon_re 阅读全文
posted @ 2021-12-03 11:05 小小灰迪 阅读(37) 评论(0) 推荐(0) 编辑
摘要:555 阅读全文
posted @ 2021-11-08 17:07 小小灰迪 阅读(13) 评论(0) 推荐(0) 编辑
摘要:pip install itchat pip install itchat-uos #跳过网页登录 代码转载:可以python带参数运行,或者修改默认default运行,参考原作者 import itchat import argparse def get_arguments(): parser = 阅读全文
posted @ 2021-08-19 21:30 小小灰迪 阅读(789) 评论(0) 推荐(0) 编辑
摘要:#coding=utf-8 import cv2 import os path='/home/fhy145/workspace/bm2/dataset/winter/bgr1/' img_paths=os.listdir(path) #print(img_paths) # img_paths.sor 阅读全文
posted @ 2021-08-18 10:22 小小灰迪 阅读(281) 评论(0) 推荐(0) 编辑
摘要:from PIL import Image pic = input("请输入图片的路径及格式:") im = Image.open(pic) rename = input("请输入压缩后图片的处理位置及格式:") qualitys = eval(input("请输入压缩质量(1-100):")) p 阅读全文
posted @ 2021-08-04 19:35 小小灰迪 阅读(263) 评论(0) 推荐(0) 编辑
摘要:python demo.py --checkpoint=resnet34_dh128_sbd --gpu=0 阅读全文
posted @ 2021-04-08 21:52 小小灰迪 阅读(220) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示