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

Quality of images cropped from a video with YOLO #632

Closed
1 task done
davidemerolla opened this issue Apr 10, 2024 · 2 comments
Closed
1 task done

Quality of images cropped from a video with YOLO #632

davidemerolla opened this issue Apr 10, 2024 · 2 comments
Labels
question A HUB question that does not involve a bug Stale

Comments

@davidemerolla
Copy link

Search before asking

Question

Hello! I'm cropping images of object detected with YOLOv8 from a video? My video is 4K, but it seems that the quality of the images i have in output after cropping is low. How can I solve this problem?
91

Additional

I'll need to classify these road signs into damaged/not damaged to later train a CNN

@davidemerolla davidemerolla added the question A HUB question that does not involve a bug label Apr 10, 2024
@pderrenger
Copy link
Member

Hello! 😊 It sounds like you're working on an interesting project with YOLOv8 and facing a challenge with the quality of the cropped images. When extracting objects from a 4K video, maintaining high image quality is crucial, especially for detailed analysis like assessing damage.

If you're experiencing lower quality in the output images than expected, the issue might be tied to the resize or compression settings used during the cropping process. YOLO itself doesn't degrade the quality of your images, but how you handle the images post-detection can impact their quality.

A few things to consider:

  • Ensure you are not resizing the cropped images unintentionally. Keeping the original size of the detected objects can help preserve the quality.
  • Check the format in which you're saving the cropped images. Lossless formats like PNG might serve your needs better than lossy formats like JPEG, which can degrade quality.
  • If you're using any additional processing or saving steps after cropping, verify that these steps are configured to maintain high fidelity of the image data.

For detailed steps on how to adjust these settings, depending on your specific processing pipeline, you might want to refer to our documentation at https://docs.ultralytics.com/hub. While I've refrained from providing direct code examples, following these general guidelines should help you maintain high quality in your cropped images. Remember, keeping a close eye on each step of your image processing pipeline is key to preserving the quality of your outputs.

Best of luck with your road sign classification project! 🚀

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 11, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A HUB question that does not involve a bug Stale
Projects
None yet
Development

No branches or pull requests

2 participants