摘要: python import cv2 import numpy as np ''' opencv的image数据格式就是用numpy unit8 格式存储的。两者之间可以相互转换 ''' img = cv2.imread("../img/1.jpg") print(img.shape) # (1080 阅读全文
posted @ 2024-01-23 09:16 cheng4632 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 参考https://blog.csdn.net/weixin_45493537/article/details/123829142 1,下载https://onnxruntime.ai/ 2,先建一个文件夹,文件名可以随意C:\Users\27795\Desktop\cc,然后将nupkg文件拷贝进 阅读全文
posted @ 2023-07-28 15:36 cheng4632 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 1,安装pycharm实际只要下载了tar.gz,然后解压就可以了,但是还需要安装Java 2, 官网https://www.oracle.com/java/technologies/downloads/下载java后,解压tar.gz文件夹,然后将Java的路径写入环境变量 3,问题是网上很多教程 阅读全文
posted @ 2023-06-08 14:32 cheng4632 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 数据集的标注文件分为两个版本:有向目标边框(Oriented Bounding Box,OBB)与水平目标边框(Horizontal Bounding Box,HBB)。 一、COCO COCO数据集,是将所有图像的标签信息和类别信息存放在一个json文件。 bbox:[x_min, ymin, w 阅读全文
posted @ 2023-03-27 08:30 cheng4632 阅读(803) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-25 11:44 cheng4632 阅读(9) 评论(0) 推荐(0) 编辑
摘要: import cv2 import numpy as np src_points = np.array([(435,465), (1210,465), (195,885), (1520,885)], dtype="float32") # 原图坐标1 # dst_points = np.array([ 阅读全文
posted @ 2022-10-12 13:41 cheng4632 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 修改后的快捷键 注释:ctrl + /取消注释:ctrl + alt + / 删除行:ctrl + D复制行:ctrl + alt + D 删除左边单词:ctrl + 退格删除右边单词:ctrl + delete 往右一个单词:ctrl + 右箭头往左一个单词:ctrl + 左箭头 选择到行首:sh 阅读全文
posted @ 2022-10-08 17:37 cheng4632 阅读(403) 评论(0) 推荐(0) 编辑
摘要: conda install pytorch torchvision cudatoolkit=10.2 去掉最后两个参数 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch==1.10.1+cu102 torchvision==0 阅读全文
posted @ 2022-09-06 10:55 cheng4632 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 1,全局常量 file_1.h #pragma once // 对于全局常量,我们可以用 const 限定词,可在不同文件中包含头文件的方式调用全局常量 const float PI = 3.14; 2,全局变量 file_2.h中声明 //对于全局变量,我们不能直接去掉const的方法 //为了防 阅读全文
posted @ 2022-09-01 16:00 cheng4632 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 编译链接分为4个步骤:预处理、编译、汇编、链接 1、预处理(预编译) 预编译过程把源文件变成.i文件,主要处理以#开头的预编译指令,比如#include、#define等 2、编译 编译是把预处理完的文件进行一系列词法分析、语法分析、语义分析、优化后,生成相应的汇编代码文件.s 3、汇编 汇编器将汇 阅读全文
posted @ 2022-08-25 17:19 cheng4632 阅读(75) 评论(0) 推荐(0) 编辑