GithubHelp home page GithubHelp logo

toannguyenkhanh / forklift-object-detection Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 186.1 MB

This project utilizes the YOLOv5 object detection model to identify forklifts within images or video frames.

License: MIT License

Python 78.13% Jupyter Notebook 20.55% Shell 0.95% Dockerfile 0.37%
object-detection python pytorch yolov5n

forklift-object-detection's Introduction

Forklift Detection using YOLOv5

Introduction

This project utilizes the YOLOv5 object detection model to identify forklifts within images or video frames. Forklift detection is crucial in industrial and logistical contexts for ensuring safety and operational efficiency. By leveraging deep learning techniques, particularly YOLOv5, we aim to develop an accurate and efficient solution for forklift detection.

Result

Demo video

Result

Installation

  1. Clone the YOLOv5 repository:

    git clone https://github.com/ultralytics/yolov5.git
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Clone this project repository:

    git clone <https://github.com/ToanNguyenKhanh/Forklift-Object-detection>
    
  4. Navigate to the project directory:

    cd yolov5
    

Usage

  1. Prepare your dataset:

  2. Prepare your dataset:

    • Download the forklift detection dataset from Roboflow.
    • Ensure your dataset contains images or video frames with annotated forklift instances.
    • Organize the dataset into appropriate directories, such as 'train' and 'val' for training and validation data.
  3. Train the YOLOv5 model:

    • Modify the training configuration in the train.yaml file according to your dataset.
    • Train the model using the following command:
      python train.py --img 640 --epochs 50 --data forklift.yaml --weights yolov5n.pt
      
  4. Evaluate the trained model:

    • Evaluate the trained model's performance on the validation set:
      python val.py --data dataset.yaml --weights runs/train/exp3/weights/best.pt --task val
      
  5. Test the model on new images or video:

    • Use the trained model to detect forklifts in images:
      python detect.py --source <image_path> --weights runs/train/exp3/weights/best.pt --img 640
      
    • For video detection, replace <image_path> with the path to your video file.
  6. Result

Result Result Result Result

Dataset Preparation

Ensure your dataset contains a sufficient number of diverse images or video frames depicting forklifts in various orientations, lighting conditions, and backgrounds. Annotated bounding boxes should accurately enclose the forklifts in the images.

Model Configuration

Experiment with different YOLOv5 model variants (e.g., yolov5s, yolov5m, yolov5l, yolov5x) and adjust parameters such as input image size, batch size, and training epochs to optimize performance based on your specific requirements and computational resources.

Contributing

Contributions to this project are welcome. Feel free to submit pull requests for bug fixes, enhancements, or additional features.

License

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

Acknowledgments

  • We acknowledge the YOLOv5 developers for their outstanding work on the object detection framework.
  • Special thanks to the contributors and open-source community for their valuable contributions and support.

Contact

For any inquiries or feedback, please contact [[email protected]].

References

Disclaimer

This project is for educational and research purposes only.

forklift-object-detection's People

Contributors

toannguyenkhanh avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.