This commit is contained in:
JonatanRek
2024-10-05 22:38:58 +02:00
parent 474a30752f
commit f87f5d0a77
+7 -1
View File
@@ -54,7 +54,13 @@ try:
i = i +1
extension = img_path[img_path.index(".")+1:]
new_img_path = img_path.replace((".{}".format(extension)), ('_anonym.{}'.format(extension)))
new_img_path = img_path
if (not img_path.endswith(('_anonym.{}'.format(extension)))):
new_img_path = img_path.replace((".{}".format(extension)), ('_anonym.{}'.format(extension)))
else:
print("Path already anonymized !!!")
cv2.imwrite(new_img_path, img)
data = {