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

Update object_detection.py #93

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Conversation

Charu19awasthi
Copy link
Contributor

Explanation of Enhancements
Model Loading Error Handling: Added a function, load_model(), to handle errors during model loading.
Dynamic Threshold & Save Option: The main() function now takes parameters for confidence threshold and an option to save the output image.
Modular Design: Modularized functionality into smaller functions, making it easier to read, reuse, and test.
Dynamic Class Names: Added get_class_name() to handle unknown class IDs.
Error Handling in Image Loading: Added an error check in main() for invalid image paths.

Copy link
Contributor

github-actions bot commented Nov 2, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@tanishaness tanishaness merged commit 2f757a7 into tanishaness:main Nov 4, 2024
Copy link
Contributor

github-actions bot commented Nov 4, 2024

🎉🎉 Thank you for your contribution! Your PR #93 has been merged! 🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants