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

New 🌟 per-class object counting feature and updates #9443

Merged
merged 5 commits into from
Mar 31, 2024

Conversation

RizwanMunawar
Copy link
Member

@RizwanMunawar RizwanMunawar commented Mar 31, 2024

Key Updates

  • Introduce support for class-wise object counting.
  • Rectify a critical bug in object counting where only objects inside the region were counted, treating all others as outcounts. The code is now updated to count objects passing through the region accurately.
  • Synchronize heatmap.py with the object counting module.
  • Update documentation pages for object_counting.md and heatmaps.md.
  • Enhance the object counting display function in plotting.py.

@glenn-jocher

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhanced Heatmap and Object Counting Documentation and Features

πŸ“Š Key Changes

  • πŸ“ Updated guides for heatmaps and object counting to include new functionality.
  • πŸš€ Added support for polygon counting alongside pre-existing line and region counting.
  • 🎨 Improved visualization, allowing display of class names with object counts.
  • πŸ–οΈ Changed default colors for text and lines to improve readability.
  • πŸ” Included additional customization options like font size and line color for counts display.
  • 🌐 Allowed class-wise object counts, enhancing detailed analytics.

🎯 Purpose & Impact

  • 🎨 Visualization Improvements: The changes make heatmap generation more intuitive and informational, featuring class-wise counts that can be distinguished easily, enhancing the user experience.
  • πŸ”§ Customization Freedom: Users gain more control over the visual aspects (like colors and font sizes), which allows for better integration into various projects with diverse UI requirements.
  • βœ”οΈ Enhanced Functionality: Adding polygon counting and displaying class names broadens the usability of the tool for more complex analytical needs, catering to a wider range of use cases.
  • πŸŽ“ Updated Documentation: With clearer, more comprehensive guides, users of all levels can better understand how to utilize the heatmap and object counting features effectively.

@RizwanMunawar RizwanMunawar changed the title New Feature🌟 Classwise object counting support added + fix critical object counting bug and update docs New Feature🌟classwise object counting support added + fix critical object counting bug and update docs Mar 31, 2024
Copy link

codecov bot commented Mar 31, 2024

Codecov Report

Attention: Patch coverage is 0.86957% with 114 lines in your changes are missing coverage. Please review.

Project coverage is 76.75%. Comparing base (1703025) to head (9a6ea58).

❗ Current head 9a6ea58 differs from pull request most recent head b863689. Consider uploading reports for the commit b863689 to get more accurate results

Files Patch % Lines
ultralytics/solutions/heatmap.py 0.00% 53 Missing ⚠️
ultralytics/solutions/object_counter.py 0.00% 49 Missing ⚠️
ultralytics/utils/plotting.py 7.69% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9443      +/-   ##
==========================================
- Coverage   76.92%   76.75%   -0.17%     
==========================================
  Files         117      117              
  Lines       14863    14888      +25     
==========================================
- Hits        11434    11428       -6     
- Misses       3429     3460      +31     
Flag Coverage Ξ”
Benchmarks 36.64% <0.86%> (-0.07%) ⬇️
GPU 38.75% <0.86%> (-0.09%) ⬇️
Tests 71.89% <0.86%> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@glenn-jocher glenn-jocher changed the title New Feature🌟classwise object counting support added + fix critical object counting bug and update docs Add new 🌟 per-class object counting feature and updates Mar 31, 2024
@glenn-jocher glenn-jocher changed the title Add new 🌟 per-class object counting feature and updates New 🌟 per-class object counting feature and updates Mar 31, 2024
@glenn-jocher
Copy link
Member

@RizwanMunawar awesome, nice work on this!!

@glenn-jocher glenn-jocher merged commit 1803690 into ultralytics:main Mar 31, 2024
10 checks passed
@glenn-jocher
Copy link
Member

@RizwanMunawar PR merged!

@RizwanMunawar RizwanMunawar deleted the solutions_update branch April 1, 2024 10:48
hmurari pushed a commit to hmurari/ultralytics that referenced this pull request Apr 17, 2024
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
gkinman pushed a commit to Octasic/ultralytics that referenced this pull request May 30, 2024
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
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.

None yet

3 participants