Skip to content

The object_detection_with_YOLO repository offers an efficient implementation of the YOLO (You Only Look Once) algorithm for real-time object detection. With pre-trained models, documentation, and examples, it’s the perfect resource for developers and researchers looking to enhance their projects with advanced detection capabilities. πŸš€πŸ“Š

License

Notifications You must be signed in to change notification settings

MohammadAshmir786/Object_Detection_with_YOLO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–ΌοΈ Object Detection App using yolo11n

πŸ“– Description

This repository contains an Object Detection App built using yolo11n, a state-of-the-art object detection model. The app achieves an impressive accuracy of 99.63% 🎯 and includes functionalities for detecting and recognizing objects such as 🐾 animals, 🐦 birds, πŸ‘€ humans, πŸš— transport, and more. It supports real-time object detection through a live webcam feed πŸ“·.it’s the perfect resource for developers and researchers looking to enhance their projects with advanced detection capabilities. πŸš€πŸ“Š

πŸ“ Repository Structure

β”œβ”€β”€ model/ 
β”‚       └── yolo11n.pt          # yolo11n model file 
β”œβ”€β”€ video/ 
β”‚       └── sample_video.mp4    # Sample video for testing the application 
β”œβ”€β”€ app.py                      # Main application file 
β”œβ”€β”€ requirements.txt            # List of required libraries and dependencies

✨ Features

  • 🧠 yolo11n Model: Utilizes the latest yolo11n model for high-accuracy object detection.
  • πŸŽ₯ Real-Time Detection: Detects and recognizes objects from a live webcam feed.
  • πŸ“œ Logging: Comprehensive logging for better understanding and debugging.
  • πŸ“ Code Documentation: Clear and concise comments to ensure readability and understanding of the code.

πŸ› οΈ Installation

  1. Clone the repository:

    git clone https://github.com/MohammadAshmir786/Object_Detection_with_YOLO.git
    cd Object_Detection_with_YOLO
  2. Install the required libraries:

    pip install -r requirements.txt
  3. Ensure the yolo11n.pt model file is located in the model directory.

  4. Place your sample video file in the video directory if you wish to test with custom videos.

πŸš€ Usage

  1. Run the Application:

    python app.py
  2. The application will start detecting objects in real-time using the webcam.

  3. Optionally, test the model using the sample video provided in the video directory.

πŸ“‚ File Details

1. app.py πŸ“œ

The main application script. Features include:

  • Live webcam object detection.
  • Sample video testing.
  • Detailed logging for debugging.
  • Inline comments to explain the workflow.

2. requirements.txt πŸ“‹

A list of libraries and dependencies required to run the application. Install them using:

pip install -r requirements.txt

3. model/yolo11n.pt 🧠

The yolo11n model file used for object detection.

4. video/sample_video.mp4 🎞️

A sample video file containing various objects such as 🐾 animals, 🐦 birds, πŸ‘€ humans, and πŸš— transport for testing purposes.

πŸ›‘οΈ Requirements

Ensure you have the following installed:

  • 🐍 Python 3.7 or higher
  • πŸ“¦ Libraries listed in requirements.txt

πŸ“Š Example Output

When running app.py, the application will:

  1. Use yolo11n for object detection.
  2. Display real-time webcam footage with bounding boxes and labels around detected objects.
  3. Log the detection details for review and debugging.

🀝 Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.

πŸ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.

πŸ’‘ Acknowledgments

πŸ”§ Troubleshooting

If you encounter issues while running the application, consider the following steps:

  1. Verify Dependencies: Ensure all required libraries are installed correctly by running:

    pip install -r requirements.txt
  2. Model File Check: Confirm that the yolo11n.pt model file is located in the model directory.

  3. Webcam Issues: Ensure your webcam is functioning properly and accessible by Python.

  4. Logging: Use the logs generated during the application's runtime to identify errors and debug the program.

  5. Python Version: Ensure you are using Python 3.7 or higher.

🌟 Future Enhancements

Planned improvements for the app include:

  • Adding support for additional object categories.
  • Enhancing the GUI for better user interaction.
  • Integrating support for GPU acceleration for faster processing.
  • Providing a feature for saving detection results as video or image files.

πŸ“ž Contact

For any questions or feedback, feel free to contact:

  • Author: Mohammad Ashmir Abbasi
  • Email: [email protected]
  • Social: Connect with me for professional networking click πŸ‘‰ πŸ‘ˆ

πŸ“… Changelog

v1.0.0

  • Initial release with YOLOv11n integration.
  • Support for real-time webcam detection.
  • Sample video testing included.
  • Logging and documentation added for clarity.

Thank you for using the Object Detection App with YOLO11n! 😊

About

The object_detection_with_YOLO repository offers an efficient implementation of the YOLO (You Only Look Once) algorithm for real-time object detection. With pre-trained models, documentation, and examples, it’s the perfect resource for developers and researchers looking to enhance their projects with advanced detection capabilities. πŸš€πŸ“Š

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages