Fix
This commit is contained in:
1 parent
474a30752f
commit
f87f5d0a77
1 file changed
+7
-1
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user