Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set landscape detection on iOS #95

Open
menghengmen opened this issue Feb 24, 2025 · 1 comment
Open

How to set landscape detection on iOS #95

menghengmen opened this issue Feb 24, 2025 · 1 comment

Comments

@menghengmen
Copy link

No description provided.

@pderrenger
Copy link
Member

@menghengmen for iOS orientation handling, you'll need to implement landscape detection in your application's image preprocessing pipeline before passing frames to YOLO. Ultralytics YOLO models process input images as provided without inherent orientation awareness.

Ensure your iOS application:

  1. Uses native iOS image handling (UIImage/Vision frameworks) to detect device orientation
  2. Rotates input images to your desired orientation using Core Graphics transforms
  3. Maintains aspect ratio and proper scaling for model input

For implementation details, see Apple's UIImage orientation documentation and the Vision framework image handling guide.

If you're using YOLO commercially on iOS, please ensure compliance with our Ultralytics Licensing requirements.

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

No branches or pull requests

2 participants