Fork me on GitHub
摘要: ``` dir /b negatives.txt 后面的 是你的文件名 ``` 阅读全文
posted @ 2020-05-19 09:08 WalterJ726 阅读(376) 评论(0) 推荐(0) 编辑
摘要: [toc] 实现1 实现2 阅读全文
posted @ 2020-05-19 09:07 WalterJ726 阅读(653) 评论(0) 推荐(0) 编辑
摘要: [toc] 完整的代码,实现了最小的矩形,圆形,随意矩形 来源 实现了边缘之外去噪声的(同学实现) 自己的弱智版实现 阅读全文
posted @ 2020-05-19 09:03 WalterJ726 阅读(623) 评论(0) 推荐(0) 编辑
摘要: ``` import PIL.Image import os i=0 path = "./dice2/" savepath = "./dice2/" filelist = os.listdir(path) for file in filelist: im = PIL.Image.open(path+filelist[i]) filename = os.path.splitext(file)[0] 阅读全文
posted @ 2020-05-19 08:58 WalterJ726 阅读(222) 评论(0) 推荐(0) 编辑
摘要: ``` import numpy as np import cv2 def guideFilter(I, p, winSize, eps): mean_I = cv2.blur(I, winSize) # I的均值平滑 mean_p = cv2.blur(p, winSize) # p的均值平滑 mean_II = cv2.blur(I * I, winSize) # I*I的均值平滑 mean_ 阅读全文
posted @ 2020-05-19 08:57 WalterJ726 阅读(379) 评论(0) 推荐(0) 编辑
摘要: ``` import cv2 as cv import numpy as np import math import copy def spilt(a): if a / 2 == 0: x1 = x2 = a / 2 else: x1 = math.floor(a / 2) x2 = a - x1 return -x1, x2 def original(i, j, k, a, b, img): x 阅读全文
posted @ 2020-05-19 08:56 WalterJ726 阅读(1671) 评论(0) 推荐(0) 编辑
摘要: [toc] 8邻域去噪 阅读全文
posted @ 2020-05-19 08:54 WalterJ726 阅读(1140) 评论(0) 推荐(0) 编辑
摘要: 中值滤波1 阅读全文
posted @ 2020-05-19 08:52 WalterJ726 阅读(4559) 评论(0) 推荐(0) 编辑
摘要: ``` import os from PIL import Image # filename = os.listdir("D:\\Work\\process\\样本处理\\polyu-all-train") # base_dir = "D:\\Work\\process\\样本处理\\polyu-all-train\\" # new_dir = "D:\\Work\\process\\样本处理\\ 阅读全文
posted @ 2020-05-19 08:48 WalterJ726 阅读(2648) 评论(0) 推荐(0) 编辑
摘要: ``` import matplotlib.pyplot as plt import numpy as np import math from PIL import Image import cv2 import os def rgb2gray(rgb): return np.dot(rgb[..., :3], [0.5,0.5,0]) def change_all_xml(path): file 阅读全文
posted @ 2020-05-19 08:19 WalterJ726 阅读(306) 评论(0) 推荐(0) 编辑
摘要: ``` # --** coding="UTF-8" **-- # # author:SueMagic time:2019-01-01 import os import re import sys fileList = os.listdir(r"E:\正课\大二上\计算机网络\网络编程\图像去噪声\dice") # 输出此文件夹中包含的文件名称 # print("修改前:" + str(fileLi 阅读全文
posted @ 2020-05-19 08:01 WalterJ726 阅读(672) 评论(0) 推荐(0) 编辑
摘要: ``` import os import random # trainval_percent = 1 # trainval占总数的比例 # train_percent = 0.8 # train占trainval的比例 # xmlfilepath = r'E:\正课\大二上\计算机网络\网络编程\tensorflow-deeplab_v3_plus\data\Taidi\Annotations' 阅读全文
posted @ 2020-05-19 07:55 WalterJ726 阅读(763) 评论(0) 推荐(0) 编辑