ultralytics 8.3.10 Apple iPhone HEIC support (#16853)

Signed-off-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Glenn Jocher 2024-10-11 20:36:02 +02:00 committed by GitHub
parent 1e5e612f83
commit 02d5c290e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 177 additions and 89 deletions

View file

@ -381,7 +381,7 @@ class BasePredictor:
# Save images
else:
cv2.imwrite(save_path, im)
cv2.imwrite(str(Path(save_path).with_suffix(".jpg")), im) # save to JPG for best support
def show(self, p=""):
"""Display an image in a window using the OpenCV imshow function."""