随笔分类 -  Anaconda

上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要:绘制点数据 import os import matplotlib.pyplot as plt import cv2 import math def loadTxtData(uwb_data_file): list_x = [] list_y = [] #txtFile = open("2.txt" 阅读全文
posted @ 2023-03-17 20:21 西北逍遥 阅读(32) 评论(0) 推荐(0)
摘要:训练yolov5 模型 (wind_2021) H:\PytorchProject\yolov5_train_xiaotian_2023031401> (wind_2021) H:\PytorchProject\yolov5_train_xiaotian_2023031401>python trai 阅读全文
posted @ 2023-03-15 07:35 西北逍遥 阅读(59) 评论(0) 推荐(0)
摘要:dict1 = {} dict2={"id":12,"x":23} dict1[str(1)] = dict2 print(dict1) print(dict1[str(1)]) ############## 阅读全文
posted @ 2023-03-14 21:11 西北逍遥 阅读(14) 评论(0) 推荐(0)
摘要:python 全排列 import itertools # 利用itertools库中的permutations函数,给定一个排列,输出他的全排列 def all_permutation_fun(permutation): # itertools.permutations返回的只是一个对象,需要将其 阅读全文
posted @ 2023-03-13 17:04 西北逍遥 阅读(103) 评论(0) 推荐(0)
摘要:绘制矩形框 def plot_one_box_PIL4(box,img, fontSize1,color=None, label=None, line_thickness=None): img = Image.fromarray(img) draw = ImageDraw.Draw(img) #li 阅读全文
posted @ 2023-03-12 20:20 西北逍遥 阅读(180) 评论(0) 推荐(0)
摘要:alphapose win10运行日志 (base) H:\PytorchProject\AlphaPose-master> (base) H:\PytorchProject\AlphaPose-master> (base) H:\PytorchProject\AlphaPose-master>co 阅读全文
posted @ 2023-03-06 21:22 西北逍遥 阅读(512) 评论(0) 推荐(0)
摘要:YOLOv7_OBB 运行异常记录 (wind_2021) H:\PytorchProject\YOLOv7_OBB-main> (wind_2021) H:\PytorchProject\YOLOv7_OBB-main>python detect.py --weights 'models/yolo 阅读全文
posted @ 2023-03-04 19:08 西北逍遥 阅读(916) 评论(2) 推荐(0)
摘要:python sin arcsin import numpy as np a1 = np.arcsin(0.1226152519) print(a1) b1 = a1*180.0/3.1415926 print(b1) c1 = 2.06*np.sin(7.0) print(c1) ######## 阅读全文
posted @ 2023-02-04 16:45 西北逍遥 阅读(56) 评论(0) 推荐(0)
摘要:pyqt5绘制坐标系 def paintEvent(self, event): painter = QPainter() painter.begin(self) # 绘制图像 image = self.pix if image.width()>0: rect = QRect(0, 0, image. 阅读全文
posted @ 2022-11-24 20:23 西北逍遥 阅读(228) 评论(0) 推荐(0)
摘要:python opencv 提取图像的区域 start_x = index_box[0] start_y = index_box[1] end_x = index_box[2] end_y = index_box[3] index_person_img = camera1_img[start_y:e 阅读全文
posted @ 2022-11-06 20:05 西北逍遥 阅读(78) 评论(0) 推荐(0)
摘要:yolov5训练洞口检测模型 1、标注数据 2、整理数据 3、训练:修改:myvoc.yaml 4、开始训练 (wind_2021) H:\PytorchProject\yolov5_train_hole> (wind_2021) H:\PytorchProject\yolov5_train_hol 阅读全文
posted @ 2022-10-04 09:23 西北逍遥 阅读(72) 评论(0) 推荐(0)
摘要:IfcTrimmingPreference 类型定义 IfcTrimmingPreference表示首选的修剪方式。 注:定义符合ISO/CD 10303-42:1992 此类型用于描述修剪参数曲线的首选方式,其中修剪是多重定义的。 注:类型改编自ISO 10303-42中定义的trimming_p 阅读全文
posted @ 2022-09-27 11:11 西北逍遥 阅读(25) 评论(0) 推荐(0)
摘要:redis操作 import redis r = redis.StrictRedis(host='localhost', port=6379, db=0) r.set('test1', 'test1') value1 = r.get('car') print(value1) all_keys = r 阅读全文
posted @ 2022-08-22 07:54 西北逍遥 阅读(32) 评论(0) 推荐(0)
摘要:1、创建环境 conda create -n wind_2022 python==3.7 (base) D:\> (base) D:\> (base) D:\> (base) D:\>conda create -n wind_2022 python==3.7 Collecting package m 阅读全文
posted @ 2022-07-14 14:12 西北逍遥 阅读(76) 评论(0) 推荐(0)
摘要:pyqt5显示realsense d435i 界面: vc_ui.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'untitled.ui' # # Created by: PyQt5 U 阅读全文
posted @ 2022-07-07 10:43 西北逍遥 阅读(265) 评论(1) 推荐(0)
摘要:error log (wind_torch_2022) bim@bim-PowerEdge-R730:~/Pytorch_Project/yolov5_train_warning$ python train_20220602.py --batch-size 1 --epochs 300 --data 阅读全文
posted @ 2022-07-02 15:32 西北逍遥 阅读(61) 评论(0) 推荐(0)
摘要:1、标注数据 2、整理数据 3、训练:修改:myvoc.yaml train: VOC_2022063001/train.txt val: VOC_2022063001/val.txt # number of classes nc: 1 # class names names: ["rectz_ci 阅读全文
posted @ 2022-07-01 16:13 西北逍遥 阅读(187) 评论(0) 推荐(0)
摘要:1、 def unevenLightCompensate(gray, blockSize): #gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) average = np.mean(gray) rows_new = int(np.ceil(gray.shape 阅读全文
posted @ 2022-07-01 07:51 西北逍遥 阅读(513) 评论(0) 推荐(0)
摘要:pyqt查看安装目录 import PyQt5 print(PyQt5.__file__) ############################ 阅读全文
posted @ 2022-06-26 14:18 西北逍遥 阅读(153) 评论(0) 推荐(0)
摘要:python opencv 把多张图片合成视频 # -*- coding: utf-8 -*- import os import cv2 def picToVideo(picDir,videoName): ##完成写入对象的创建,第一个参数是合成之后的视频的名称, #第二个参数是可以使用的编码器, 阅读全文
posted @ 2022-06-24 21:45 西北逍遥 阅读(307) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 11 下一页