Fix parking points annotator for macOS (#17797)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/14851/head
Muhammad Rizwan Munawar 2 months ago committed by GitHub
parent 54d845baea
commit 59aceffd05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ultralytics/solutions/parking_management.py

@ -89,7 +89,7 @@ class ParkingPtsSelection:
"""Uploads and displays an image on the canvas, resizing it to fit within specified dimensions.""" """Uploads and displays an image on the canvas, resizing it to fit within specified dimensions."""
from PIL import Image, ImageTk # scope because ImageTk requires tkinter package from PIL import Image, ImageTk # scope because ImageTk requires tkinter package
self.image = Image.open(self.filedialog.askopenfilename(filetypes=[("Image Files", "*.png;*.jpg;*.jpeg")])) self.image = Image.open(self.filedialog.askopenfilename(filetypes=[("Image Files", "*.png *.jpg *.jpeg")]))
if not self.image: if not self.image:
return return

Loading…
Cancel
Save