import os
import cv2

img_folder = "./data1"
print(len(os.listdir(img_folder)))
# 1163
for id, img_name in enumerate(os.listdir(img_folder)):
img_id = int(img_name.split(".")[0]) + 10000
new_img_name = str(img_id) + ".jpg"
os.rename(os.path.join(img_folder, img_name), os.path.join(img_folder, new_img_name))
print(new_img_name)