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

added getpolygons function for Image segmentation with labelbox json #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DeTandtThibaut
Copy link

@DeTandtThibaut DeTandtThibaut commented Mar 29, 2023

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

πŸ“Š Key Changes

  • A new function getPolygons has been added, which processes an image URL to find and return the contours of objects in the image as polygon coordinates.

🎯 Purpose & Impact

  • The added functionality is designed for image segmentation tasks in machine learning, where object outlines (polygons) need to be detected and processed. This function is particularly useful for converting Labelbox JSON annotations to a format compatible with the YOLO (You Only Look Once) model.
  • Users benefit from automated conversion of segmented image data to YOLO format, enhancing the development of more accurate object detection models.

🌟 Summary

  • πŸ–ΌοΈ Added getPolygons function for extracting and converting image segmentation polygons from Labelbox JSON to YOLO format.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Mar 29, 2023

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 42.68%.

Quality metrics Before After Change
Complexity 1.00 ⭐ 1.00 ⭐ 0.00
Method Length 21.00 ⭐ 81.33 πŸ™‚ 60.33 πŸ‘Ž
Working memory 1.00 ⭐ 11.91 😞 10.91 πŸ‘Ž
Quality 99.00% ⭐ 56.32% πŸ™‚ -42.68% πŸ‘Ž
Other metrics Before After Change
Lines 12 40 28
Changed files Quality Before Quality After Quality Change
labelbox_json2yolo.py 99.00% ⭐ 56.32% πŸ™‚ -42.68% πŸ‘Ž

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
labelbox_json2yolo.py getPolygons 1 ⭐ 202 😞 13 😞 52.06% πŸ™‚ Try splitting into smaller methods. Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • πŸ™‚ good
  • 😞 poor
  • β›” very poor

The πŸ‘ and πŸ‘Ž indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!

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.

1 participant