-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.py
21 lines (18 loc) · 782 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import image_processor
import os
def checkMissed(input_path,output_path):
file_list = []
input_count = len(os.listdir(input_path))
output_count = len(os.listdir(output_path))
print("Total input: " ,input_count)
print("Total processed: " ,output_count)
for file_name in os.listdir(output_path):
file_list.append(file_name.split(".")[0])
for file_name in os.listdir(input_path):
if not file_name.split(".")[0] in file_list:
print(file_name,"was not processed")
input_path = "D:\PyCharm\Projects\GeneralImageCrawler\input\\"
output_path = "D:\PyCharm\Projects\GeneralImageCrawler\output\\"
processor = image_processor.processor(input_path,output_path,"jpg/png","png")
processor.process()
# checkMissed(input_path,output_path)