自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 资源 (1)
  • 收藏
  • 关注

原创 torch加载10个模型推理图片 保存到csv中

【代码】torch加载10个模型推理图片 保存到csv中。

2023-03-25 12:54:04 248

原创 pytorch加载10个yolov5模型并推理1万图片

【代码】pytorch加载10个yolov5模型并推理1万图片。

2023-03-25 12:33:57 591

原创 python图片压缩率对比

计算机视觉

2022-07-06 17:10:34 746

原创 python将一个文件夹下图片分到多个文件夹下

python将一个文件夹下图片分到多个文件夹下

2022-06-08 16:51:16 1310

原创 python3数据增强扩充图片数据

'''每张图片扩充4张'''import osimport cv2def dst_check(dst): import shutil try: shutil.rmtree(dst) except OSError: pass os.makedirs(dst)def boundary_control(value, min, max): # 类型检查 value = int(value) # 边界溢出检查 .

2022-04-25 17:32:16 457

原创 python修改txt内容并合并同名到一个txt

#liufangtao 第二步import ostxt_dir1 = r'outputhead_jyz_4.18\results'txt_list = os.listdir(txt_dir1)file_data1 = ""file_data2 = ""for name in txt_list: if os.path.splitext(name)[1] == ".txt": with open(txt_dir1+"\\"+name, 'r',enco.

2022-04-24 17:27:43 753

原创 python合并归一化txt内容

#liufangtao 第一步处理import globimport reimport osfrom pathlib import Pathimport cv2pathimg = r'\outputhead_jyz_4.18\results'dir1 = r'\jyzps424\outputhead_jyz_4.18'img_list = os.listdir(pathimg)for name in img_list: oriname=name.rstrip('.jpg').

2022-04-24 17:25:26 934

原创 python3读取图片的名字保存到txt

import os class ReadImageName(): def __init__(self): self.path = r'\Annotations'#图片地址 def readname(self): filenames = os.listdir(self.path) flielist = [] for item in filenames: if item.endswith('.

2022-04-18 10:20:06 546

原创 python将txt坐标批量打印到原图上

# -*- coding: utf-8 -*-# liufangtao#批量处理img和xml文件,根据xml文件中的坐标把img中的目标标记出来,并保存到指定文件夹。import xml.etree.ElementTree as ETimport os, cv2import numpy # from tqdm import tqdmfrom PIL import Image, ImageDraw, ImageFontannota_dir = r'\ann\atxt' #txt文件夹o.

2022-04-08 14:32:31 2311

原创 python3挑出检测错误的图片

# -*- coding: utf-8 -*-# from mailbox import linesepimport osimport shutil# import cv2path0 = r'\testjyz401\labels'#groud truth为txt文件夹path = r"\jyztest_7class1280_conf0.25_401\images" # jpg图片和对应的生成结果的txt标注文件,放在一起path3 = r"\jyztest_7class1280_c.

2022-04-08 09:47:31 648

原创 python3通过object找出对应的xml文件和jpg

import shutil, os# import cv2from pathlib import Path try: import xml.etree.cElementTree as ETexcept ImportError: import xml.etree.ElementTree as ETsave_draw_imgDir = r"U:\datas\jyz7class_dev\jyz_tc_bsmin"Path_dir = r"U:\datas\jyz7class_dev.

2022-04-07 14:09:44 199

原创 python批量拼接两个文件夹相同名字的图片

import cv2import numpy as npimport pandas as pdimport os,hashlib,shutildef images_concat(left_img_path, right_img_path, concat_image_path, text=None): ''' :param left_img_path: 左侧图片本地路径 :param right_img_path: 右侧图片本地路径 :param concat_im.

2022-04-06 10:42:47 3739

原创 mmsegmention工程配置

mmsegmention工程配置:下载模型权重 准备数据、并转换数据为txt Config/_base_/detasets/pascal_voc12.py修改data_root 数据路径 Samples_per_gpu= 和 workers_per_gpu= 如单gpu两个值一样2或4。mmseg/datasets/voc.py1)修改CLASSES=种类和PALETTE=色盘5、tool/train.py1)修改‘config’对应模型;‘work-dir’保存日志权重路径在当前.

2022-04-01 10:30:35 2503 1

原创 将xml坐标批量打印到原图上(中文显示名字)

# -*- coding: utf-8 -*-#批量处理img和xml文件,根据xml文件中的坐标把img中的目标标记出来,并保存到指定文件夹,方便自己查看目标标记的是否准确。import xml.etree.ElementTree as ETimport os, cv2import numpy from tqdm import tqdmfrom PIL import Image, ImageDraw, ImageFontannota_dir = r'U:\datas\testjyz\xm.

2022-03-31 16:05:29 3691

原创 yolov5区分训练集验证集测试集

import osimport shutilimport random # 保证随机可复现random.seed(0) # def mk_dir(file_path):# if os.path.exists(file_path):# # 如果文件夹存在,则先删除原文件夹在重新创建# shutil.rmtree(file_path)# os.makedirs(file_path) def split_data(file_path,ne.

2022-03-30 17:17:26 3352

原创 调节图片目标SHV参数测试python3

import cv2import numpy as npimport osfrom pathlib import Pathdef augment_hsv(image, hgain=0.1, sgain=0.9, vgain=0.9):#最大区间 # HSV color-space augmentation if hgain or sgain or vgain: r = np.random.uniform(-1, 1, 3) * [hgain, sgain, vga.

2022-03-28 17:39:33 1076

原创 读取图片的txt标签内容并将图片及对应标签移动至指定文件夹

# -*- coding: utf-8 -*-"""Created on Wed Oct 21 17:10:11 2020"""import os import shutil# 读取图片的路径read_path = r"V:\share20211117\data"#标签路径# txtread_path =r"U:\voc2012\VOCdevkit\VOC2012\\Annotations"# 存放图片的路径save_path = r"V:\share20211117\dat.

2022-03-28 09:21:58 633

原创 查看有错误的标签名及修改

# -*- coding: UTF-8 -*-import osimport os.pathimport shutilfrom xml.etree.ElementTree import parse, Elementtry: import xml.etree.cElementTree as ETexcept ImportError: import xml.etree.ElementTree as ETdef changeName(xml_fold, origin_name, .

2022-03-28 09:17:51 181

原创 删除无object的xml避免产生错误副样本

import shutil, osimport cv2from pathlib import Path try: import xml.etree.cElementTree as ETexcept ImportError: import xml.etree.ElementTree as ETsave_draw_imgDir = r"E:\liufangtao\image\testjyz\2\b"Path_dir = r"E:\liufangtao\image\testjyz\.

2022-03-28 08:51:27 311

翻译 基于视觉的战斗检测监视摄像机(Vision-based Fight Detection from Surveillance Cameras)

基于视觉的战斗检测监视摄像机(Vision-based Fight Detection from Surveillance Cameras) 基于视觉的动作识别是计算机视觉和模式识别最具挑战性的研究 课题之一。 它的具体应用,即从公共区域、监狱等的监控摄像头中检 测打架事件,是为了迅速控制这些暴力事件。本文针对这一研究问题, 探索了基于 LSTM 的解决方法。 此外,还利用了...

2021-01-08 14:49:20 697

翻译 性能最强的One-stage目标检测算法

前言2019.07.07,CVer 曾推出一篇:大盘点 | 性能最强的目标检测算法,大家对此反映很好,还有很多同学私信要盘点 FPS 最快的目标检测算法。要知道衡量目标检测最重要的两个性能就是精度和速度,特指 mAP 和 FPS。其实现在很多论文要么强调 mAP 很高,要么就是强调 mAP 和 FPS 之间 Trade-off 有多好。目前的目标检测论文主要分为两大...

2019-08-07 09:25:37 819

转载 3D目标检测:MonoDIS

在今年 CVPR 2019 WAD Workshop nuScenes Detection Challenge 中,Mapillary 使用本文介绍的 MonoDIS 达到了目前 SOTA 的 image-only 3D Detection Performance(NDS 38.4%);虽然不及官方基于 lidar 的 pointpillars baseline,但也已经是基于单目非常高的精度了,...

2019-07-27 15:33:15 1232

原创 视频跟踪算法goturn 为什么在跟踪过程中框越来越大

听听大家意见

2019-05-07 10:13:58 266

空空如也

空空如也

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

TA关注的人

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