tanishaness / SPROCTOR

Smart tool to help monitor students during examination.
MIT License
22 stars 58 forks source link

Update object_detection.py #93

Closed Charu19awasthi closed 3 weeks ago

Charu19awasthi commented 3 weeks ago

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.

github-actions[bot] commented 3 weeks ago

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! 😊

github-actions[bot] commented 3 weeks ago

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