Giter VIP home page Giter VIP logo

cheque_detection's Introduction

๐Ÿ“ Cheque Detection using YOLOv8

In this project, I've implemented cheque detection using the YOLOv8 model. To train and evaluate the model, I have created a custom dataset consisting of 216 images of cheques, which have been manually annotated and labeled by myself using the Roboflow platform. The dataset is divided into three subsets as follows:

  1. Training Set: 182 images
  2. Validation Set: 23 images
  3. Test Set: 11 images

Project Overview

The goal of this project is to detect the authenticity of cheques in images using the YOLOv8 object detection model. The project includes:

  • A custom dataset of cheque images.
  • Pre-trained YOLOv8 models.
  • Scripts for running inference on new images and videos.
  • Scripts for training the model on the custom dataset.

Prediction

Example Image Example Image

Installation

To run this project, you need to have Python 3.7+ and pip installed. Follow the steps below to set up the environment:

  1. Clone the repository:

    git clone https://github.com/prabhleenn/Cheque-Detection.git
    cd Cheque-Detection
  2. Install the required dependencies:

    pip install "https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml"

Running Inference

To run inference on images using the pre-trained (.pt) model, use the following commands:

  • On an image:
    python detect.py --source path/to/your/image.jpg --weights path/to/yolov8/weights.pt

Training ๐Ÿ”

To train the model on the custom cheque dataset, follow these steps:

  1. Ensure your dataset is in the YOLO format:

    dataset/
    โ”œโ”€โ”€ images/
    โ”‚ โ”œโ”€โ”€ train/
    โ”‚ โ”‚ โ”œโ”€โ”€ image1.jpg
    โ”‚ โ”‚ โ”œโ”€โ”€ image2.jpg
    โ”‚ โ”‚ โ””โ”€โ”€ ...
    โ”‚ โ”œโ”€โ”€ val/
    โ”‚ โ”‚ โ”œโ”€โ”€ image1.jpg
    โ”‚ โ”‚ โ””โ”€โ”€ ...
    โ”‚ โ””โ”€โ”€ test/
    โ”‚ โ”œโ”€โ”€ image1.jpg
    โ”‚ โ””โ”€โ”€ ...
    โ””โ”€โ”€ labels/
    โ”œโ”€โ”€ train/
    โ”‚ โ”œโ”€โ”€ image1.txt
    โ”‚ โ”œโ”€โ”€ image2.txt
    โ”‚ โ””โ”€โ”€ ...
    โ”œโ”€โ”€ val/
    โ”‚ โ”œโ”€โ”€ image1.txt
    โ”‚ โ””โ”€โ”€ ...
    โ””โ”€โ”€ test/
    โ”œโ”€โ”€ image1.txt
    โ””โ”€โ”€ ...

  2. Update the yaml file with your dataset paths and parameters.

  3. Run the training script:

    python train.py --data path/to/your/data.yaml --cfg path/to/yolov8/config.yaml --weights path/to/yolov8/weights.pt

cheque_detection's People

Contributors

prabhleenn avatar

Stargazers

Yuval728 avatar

Watchers

 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.