自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 matlab将单通道灰度图转为三通道

clear all;clc;close all;Path = '.\'; % 设置数据存放的文件夹路径File = dir(fullfile(Path,'*.bmp')); % 显示文件夹下所有符合后缀名为.txt文件的完整信息FileNames = {File.name}'; s = length(FileNames);for i=1:s img_path = strcat(Path,FileNames(i)); ori_img = im

2021-12-31 14:14:50 5230 1

原创 python批量重命名文件

python批量重命名文件

2021-12-31 10:55:14 414

原创 libtorch1.7.0配置VS2019运行出现Scalar冲突错误

原因由于要同时使用opencv和libtorch,而两个三方库之间的Scalar命名重复,在libtorch中并没有指定Scalar的命名空间,导致冲突。解决方法我的报错文件为:linalg.hinit.hTensorBody.hCUDAHooksInterface.h修改方法为:CUDAHooksInterface.h 第26行// NB: Class must live in `at` due to limitations of Registry.h.namespace at {

2021-08-22 11:21:37 1110

原创 VS 官方历史版本下载

VS 官方历史版本下载https://visualstudio.microsoft.com/zh-hans/vs/older-downloads/

2021-03-29 10:23:38 756

原创 标注文件xml和json转yolov5所需的txtb

xml转txtimport osimport xml.etree.ElementTree as ET dirpath = r'C:\c\internet download\NEU-DET\NEU-DET\ANNOTATIONS' #原来存放xml文件的目录newdir = r'C:\c\internet download\NEU-DET\NEU-DET\yolo' #修改label后形成的txt目录 if not os.path.exists(newdir): os.make

2021-03-17 22:10:13 1527 4

原创 图片切片的python代码

将图片按一定步长切成小块# -*- coding = utf-8 -*-import numpy as npimport cv2import osfrom pathlib import Pathimport mathdef slice_img(img_dir , x , y): img_save = Path('./sliced_img_pathlib/') img_save.mkdir(exist_ok=True,parents=True) im

2021-03-17 22:06:24 703

原创 Ubuntu使用官方Yolov5训练自己的数据集(小白向)

Ubuntu使用官方Yolov5训练自己的数据集(小白向)一、下载官方代码本文使用的代码是2021年2月份的。最新代码链接:github(https://github.com/ultralytics/yolov5)二、数据集的制作数据集的文件分级如下所示文件结构必须是这样的,images放图,labels放标签|————shujuji |————train |————images |————labels |————val |————images |————labelsy

2021-03-17 22:00:29 6078 2

原创 一个简单的复制文件的python实现

一个简单的复制文件的python实现# -*- coding: utf-8 -*- import shutilimport osimport globsource_path =r'E:\瓷砖缺陷检测数据集\tile_round1_train_20201231\train_imgs'dest_dir = 'C:/Users/me/Desktop/233img'files=glob.glob(os.path.join(source_path, '*.jpg'))for file_pat

2021-03-04 17:43:30 208 1

原创 C++中的左值和右值

1.C++中的引用类型定义:引用:就是变量的一个别名,它用作对象的另一个名字。类似指针。#include <iostream>using namespace std;{ int a = 3; int &b = a; //b就是a的引用,即b是a的一个别名。 //引用必须初始化,否则编译会报错 b = 10; cout<< a << endl; //此时a 的值,已由原来的3变成了10.因为

2021-02-09 10:16:57 170

转载 cv中的图像type

转自:https://blog.csdn.net/maweifei/article/details/51221259CV_<bit_depth>(S|U|F)C<number_of_channels>1–bit_depth—比特数—代表8bite,16bites,32bites,64bites—举个例子吧–比如说,如果你现在创建了一个存储–灰度图片的Mat对象,这个图像的大小为宽100,高100,那么,现在这张灰度图片中有10000个像素点,它每一个像素点在内存空间所占的空间大小

2021-02-08 21:34:49 410

原创 C++把数组存入txt

C++把数组存入txt不多废话直接上代码。#include <fstream>using namespace std;int main(){ int a[5] = { 1, 2, 3, 4, 5 }; int *ini = (int*)calloc(5, sizeof(int)); int *ini2 = ini; FILE *FilePosition; fopen_s(&FilePosition, "1.txt", "w"); for (int i = 0; i

2021-01-27 11:26:46 3184

原创 关于奥比中光OpenNI SDK的环境配置问题

关于奥比中光OpenNI SDK的环境配置问题第一次使用奥比中光的Astra pro摄像头,照着官网的视频配置,运行后没有成功,提示错误:main.obj ink 2019 _imp_xxxxx 无法解析的外部符号。几经周折后找到了解决方法。先按照奥比官网上的视频把VS环境配置好。(https://developer.orbbec.com.cn/develop_details.html?id=1)将 windows\SDK\x86\Redist(我配置的是x86、Debug环境)下的所

2021-01-26 19:23:28 1658

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除