kopia lustrzana https://github.com/LingDong-/linedraw
Update linedraw.py
rodzic
c94b041fd1
commit
95a64461b7
|
@ -175,7 +175,9 @@ def sketch(path):
|
||||||
try:
|
try:
|
||||||
IM = Image.open(p)
|
IM = Image.open(p)
|
||||||
break
|
break
|
||||||
except:
|
except FileNotFoundError:
|
||||||
|
print("The Input File wasn't found. Check Path")
|
||||||
|
exit(0)
|
||||||
pass
|
pass
|
||||||
w,h = IM.size
|
w,h = IM.size
|
||||||
|
|
||||||
|
@ -258,4 +260,4 @@ if __name__ == "__main__":
|
||||||
contour_simplify = args.contour_simplify
|
contour_simplify = args.contour_simplify
|
||||||
show_bitmap = args.show_bitmap
|
show_bitmap = args.show_bitmap
|
||||||
no_cv = args.no_cv
|
no_cv = args.no_cv
|
||||||
sketch(args.input_path)
|
sketch(args.input_path)
|
||||||
|
|
Ładowanie…
Reference in New Issue