processing

This commit is contained in:
Ivan
2022-04-17 20:07:40 +03:00
parent 281a8818a3
commit b6256d47b8
14908 changed files with 2919025 additions and 1674 deletions

View File

@@ -0,0 +1,17 @@
import os
import cv2
folder = "0_tmp_for_copy"
folder_out = "tmp_renamed"
filelist = os.listdir(folder)
print(len(filelist))
counter = 1
for i in range(835):
filename = folder + "/" + str(i).zfill(6) + ".png"
res = cv2.imread(filename)
print('saving to file: ', folder_out + "/" + str(counter + 834).zfill(6) + ".png")
cv2.imwrite(folder_out + "/" + str(counter + 834).zfill(6) + ".png", res)
cv2.imshow("out", res)
key = cv2.waitKey(1)
counter += 1