Skip to content

Commit

Permalink
Update controller.py
Browse files Browse the repository at this point in the history
  • Loading branch information
geoyee authored Jul 14, 2021
1 parent af8e74b commit f309448
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/EISeg/eiseg/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def add_click(self, x, y, is_positive):
"""
s = self.image.shape
if x < 0 or y < 0 or x >= s[1] or y >= s[0]:
print("点击越界")
return False

if len(self.states) == 0: # 保存最初状态
Expand Down

0 comments on commit f309448

Please sign in to comment.