mirror of
https://github.com/LingDong-/linedraw.git
synced 2026-02-06 10:36:43 +00:00
update FLIP_LEFT_RIGHT definition to fix deprecation warning
This commit is contained in:
parent
3aedc2f61d
commit
e134e78504
@ -94,7 +94,7 @@ def getcontours(IM,sc=2):
|
||||
print("generating contours...")
|
||||
IM = find_edges(IM)
|
||||
IM1 = IM.copy()
|
||||
IM2 = IM.rotate(-90,expand=True).transpose(Image.FLIP_LEFT_RIGHT)
|
||||
IM2 = IM.rotate(-90,expand=True).transpose(Image.Transpose.FLIP_LEFT_RIGHT)
|
||||
dots1 = getdots(IM1)
|
||||
contours1 = connectdots(dots1)
|
||||
dots2 = getdots(IM2)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user