python脚本
a839766550
CV、NLP、推荐 都搞过,无一精通;
python、c++、java、scala、toml、conf都 写过,无一深入
展开
-
namelist_20181031.py
# -- coding:utf-8 -- import cv2 import math import numpy as np import os # jpg文件重命名 list_name = "" path_in = "HDimg-ztx" + list_name + "/" count = -1 print(path_in) for file in os.listdir(path_in):...原创 2019-01-17 18:05:06 · 399 阅读 · 0 评论 -
resize_rename.py
import cv2 import os import shutil path_A = ‘valA/’ path_B = ‘trainB/’ #path_C = ‘testA/’ out_size = (256,256) #crop_size = (512,512) count = 0 for i in os.listdir(path_B): count += 1 #img_A = cv2.imr...原创 2019-01-17 18:05:56 · 176 阅读 · 0 评论