- 博客(3)
- 收藏
- 关注
原创 matlab批量修改指定像素
clear;clc;OutputDir = 'D:\pro\self_w\out\';%输出文件夹路径%读入所有png格式的图像files = dir(fullfile('D:\pro\self_w\新建文件夹\','*.png'));lengthFiles = length(files);%进行所有图像的遍历for n = 1:lengthFiles Img = imread(strcat('D:\pro\self_w\新建文件夹\',files(n).name)); [q.
2021-12-06 10:06:16 2166
原创 提取文件并另存为
import osfrom PIL import Image as imgi=0# j=1399for root, dirs, files in os.walk('D:\pro/tuu',topdown=False): for dir in dirs: i += 1 for file in os.listdir(os.path.join(root,dir)): path=os.path.join(root,dir) .
2021-11-22 10:55:29 91
原创 平均分割图像python
import osfrom PIL import Image# 分割图片def cut_image(image, count,count1): width, height = image.size item_width = int(width / count) item_height = int(height/count1) box_list = [] # (left, upper, right, lower) for j in range(0, .
2021-11-22 10:54:12 950
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人