-
-
Notifications
You must be signed in to change notification settings - Fork 83
Custom annotation #191
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
Custom annotation #191
Conversation
|
👋 Hello @asabri97, thank you for submitting an
Additional notes for this PR:
For more guidance, please refer to our Contributing Guide. Don’t hesitate to leave a comment if you have any questions. Thank you for contributing to Ultralytics! ✍️🎨🚀 |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Signed-off-by: Abrish <[email protected]>
|
in latest yolo26 PR |
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Adds a centralized
AnnotationConfigand UI controls to customize annotation font size/line width across the YOLO iOS app for clearer, more adaptable overlays 🔤📦📊 Key Changes
AnnotationConfig(font size, line width, font weight) to control how labels/boxes are rendered 🎛️Plot.swiftto acceptconfig: AnnotationConfig = .default:fontSize(wrapping intoAnnotationConfig) for simpler call sites 🧩YOLOViewwith:annotationConfigpropertysetAnnotationConfig(_:)to update existing bounding boxes and handle “external display” scaling automatically 🖥️fontSizeDidChangefor optional external display syncing 📢ViewControllerto let users adjust annotation text size at runtime 🎚️YOLOViewlive and broadcasts the change viaNotificationCenter🎯 Purpose & Impact
configparameters) but remains backward-friendly due to defaults (.default) ✅