MuhammadWaqar621 / Smart-Meter-Reading

I train the model as supervise deep learning algorithm. In which use 1000 images in data set. I used 80% image for training and 20% for testing.
2 stars 1 forks source link

Smart Meter Reader

Smart Meter Reader is an innovative project addressing the evolving landscape of meter reading in a smart and efficient manner. In a world where autonomous technologies are reshaping transportation safety, our focus is on revolutionizing the way utility meters are read.

Project Overview

This repository encapsulates the Smart Meter Reader project, a solution designed to streamline the meter reading process. The primary objective is to leverage AI capabilities to detect and interpret digits on utility meters accurately.

Key Objectives

This project aims to automate smart meter reading using computer vision and optical character recognition (OCR). Below is the image processing flow:

  1. Input Image: Input Image

  2. ROI Model Output: ROI Model Output

  3. Final OCR Result: Final OCR Result

Why It Matters

In a world increasingly reliant on accurate and efficient utility management, Smart Meter Reader offers a transformative solution. By automating the digit reading process, we not only enhance accuracy but also pave the way for smart utility management systems.

Getting Started

Follow the steps below to get started with this project:

Using This Repository

Environment

  1. Install the requirements
    conda create -n smart_meter python=3.11.4
    conda activate smart_meter
    pip install -r requirements.txt
  2. Prepare Dataset
    
    Dataset/
    │
    ├── ROI_Dataset/
    │   ├── images/
    │   │   ├── img1.jpg
    │   │   ├── img2.jpg
    │   │   └── ...
    │   │
    │   └── labels/
    │       ├── img1.txt
    │       ├── img2.txt
    │       └── ...
    |
    ├── OCR_Dataset/
    │   ├── images/
    │   │   ├── img1.jpg
    │   │   ├── img2.jpg
    │   │   └── ...
    │   │
    │   └── labels/
    │       ├── img1.txt
    │       ├── img2.txt
    │       └── ...

4. Training

Train the model for Area of Interest (ROI) detection

python train_ROI.py

Train the model for Meter Digit Detection using Optical Character Recognition (OCR)

python train_OCR.py


4. Testing

Test the model for Area of Interest (ROI) detection

python test_ROI.py

Test the model for Meter Digit Detection using Optical Character Recognition (OCR)

python test_OCR.py

4. Integration

python main.py

5. Download Pretrain Models

python .\model_checkpoints_download.py

6. FastAPI

uvicorn API:app --host 0.0.0.0 --port 1003 --reload



## Contact
* [Muhammad Waqar](https://www.linkedin.com/in/muhammad-waqar-1a594411a/)
* [Email](waqarsahi621@gmail.com)

## Contribution

Feel free to customize this template to better fit the specifics of your project. Provide clear instructions on how to get started and contribute, and include any additional details that potential users or contributors might find helpful.