added comment
This commit is contained in:
parent
9aaeb28ffc
commit
81f331b77e
1
main.py
1
main.py
|
@ -25,6 +25,7 @@ for filename in os.listdir(directory):
|
||||||
cv2.waitKey(1)
|
cv2.waitKey(1)
|
||||||
manpage = input("please input the number on the page (if the title is correct, enter nothing)")
|
manpage = input("please input the number on the page (if the title is correct, enter nothing)")
|
||||||
print(manpage)
|
print(manpage)
|
||||||
|
#check if the new name already exists
|
||||||
if manpage == "\n":
|
if manpage == "\n":
|
||||||
rng = numpy.random.default_rng().random()
|
rng = numpy.random.default_rng().random()
|
||||||
os.rename (f'images/{data}.jpg', f'images/{data}.review-{rng}.jpg')
|
os.rename (f'images/{data}.jpg', f'images/{data}.review-{rng}.jpg')
|
||||||
|
|
Loading…
Reference in New Issue