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

Display in Landscape Mode #14

Closed
FrankFeng-23 opened this issue Apr 13, 2024 · 2 comments
Closed

Display in Landscape Mode #14

FrankFeng-23 opened this issue Apr 13, 2024 · 2 comments
Labels

Comments

@FrankFeng-23
Copy link

Hi, I'm a Flutter newbie. Recently, I've been wanting to deploy my trained YOLOv8n on a mobile phone for real-time object detection. I'd like to change the app to display in landscape mode, but I'm not sure how to do it. Any ideas and suggestions would be appreciated!

@pderrenger
Copy link
Member

Hello there! Glad to hear you're venturing into deploying your trained model on a mobile device. 🚀 For Flutter, you can set your app to landscape mode by adjusting your app's settings. In your main AndroidManifest.xml (for Android) located in android/app/src/main, and Info.plist (for iOS) located in ios/Runner, specify the orientation settings.

For Android, inside the <activity> tag, you can add:

android:screenOrientation="landscape"

For iOS, in Info.plist, add:

<key>UISupportedInterfaceOrientations</key>
<array>
    <string>UIInterfaceOrientationLandscapeLeft</string>
    <string>UIInterfaceOrientationLandscapeRight</string>
</array>

This should lock your app into landscape mode. Happy coding, and let the YOLO community know if you have more questions! 🌟

Copy link

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

@github-actions github-actions bot added the Stale label May 14, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants