Skip to content

Commit

Permalink
fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nklimov23 committed Jan 3, 2025
1 parent ffd1074 commit dbf114a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion degirum_tools/figure_annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,10 @@ def __init__(
self.canvas = self.tk.Canvas(self.main_frame, cursor="cross")
self.canvas.pack(fill=self.tk.BOTH, expand=True)

from PIL import ImageTk

self.original_image: Optional[Image.Image] = None # Store the original image
self.image_tk: Optional[self.imageTk.PhotoImage] = None
self.image_tk: Optional[ImageTk.PhotoImage] = None
self.points: List[Tuple] = [] # Points relative to the original image
self.displayed_points: List[Tuple] = [] # Points relative to the resized image
self.polygon_ids: List[int] = [] # Store polygon IDs for undo
Expand Down

0 comments on commit dbf114a

Please sign in to comment.