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

Modify the detectImage method to turn off scaling based on screen size and return the raw data ultralytics #56

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

x2031
Copy link
Contributor

@x2031 x2031 commented Sep 8, 2024

I have read the CLA Document and I sign the CLA

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

This PR refines image handling and prediction accuracy in both Android and iOS components of the YOLO Flutter app, enhancing performance and reliability.

📊 Key Changes

  • Android Tweaks:

    • Adjusted how prediction results are calculated to use actual image dimensions rather than scaled values.
    • Code formatting improvements for better readability.
  • iOS Updates:

    • Improved image orientation handling by adding an extension to accommodate different orientations smoothly.
    • Altered bounding box transformation to ensure more accurate detection results by simplifying scaling calculations.

🎯 Purpose & Impact

  • Enhanced Accuracy: By using exact image dimensions and proper orientation management, detection results become more reliable and consistent across different devices.
  • Better Code Maintenance: Code readability improvements help developers easily maintain and extend functionalities in the future.
  • Cross-Platform Consistency: Aligns Android and iOS behaviors, ensuring similar performance and results on both platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants