Skip to content

Avoid cv2 window init code on Windows#8712

Merged
glenn-jocher merged 1 commit intomasterfrom
glenn-jocher-patch-1
Jul 25, 2022
Merged

Avoid cv2 window init code on Windows#8712
glenn-jocher merged 1 commit intomasterfrom
glenn-jocher-patch-1

Conversation

@glenn-jocher
Copy link
Copy Markdown
Member

@glenn-jocher glenn-jocher commented Jul 25, 2022

Resolves #8642

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Improved compatibility for window management on Linux during detection in YOLOv5.

📊 Key Changes

  • Imported platform module in detect.py.
  • Adjusted window streaming condition to be specific to the Linux operating system.

🎯 Purpose & Impact

  • 🐧 Ensures that only on Linux, new windows can be created or resized to display detection results, preventing potential issues on other OS like Windows or MacOS.
  • 👀 Enhanced user experience for Linux users by allowing window resizing, aligning the behavior with users' expectations of window management on their OS.
  • ✅ This update possibly prevents errors or unexpected behaviors related to window management for users on non-Linux systems.

@glenn-jocher glenn-jocher self-assigned this Jul 25, 2022
@glenn-jocher glenn-jocher merged commit 7215a0f into master Jul 25, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch July 25, 2022 11:57
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

There was a problem using detect.py

1 participant