img_paddling.py 518 B

123456789101112131415
  1. # import os
  2. import img_tools
  3. # from tqdm import tqdm
  4. #
  5. #
  6. # img_folds = os.listdir('./font_img_dataset/windows_1/english')
  7. # for img_fold in tqdm(img_folds):
  8. # img_fold = str('font_img_dataset/windows_1/english') + '/' + str(img_fold)
  9. # if not img_fold.endswith('.txt'):
  10. # img_path_list = os.listdir(img_fold)
  11. # for img_path in img_path_list:
  12. # img_tools.img_resize(img_fold + '/' + str(img_path))
  13. path = r"C:\Users\KDAN\Desktop\images\字体\153409.jpg"
  14. img_tools.img_resize(path)