Skip to content

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.

Notifications You must be signed in to change notification settings

MuhammadWaqar621/Smart-Meter-Reading

Repository files navigation

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

  • Digit Detection: Implement a robust system to identify and locate digits on meter displays, ensuring precise recognition in varying conditions.

  • Crop Image Generation: Develop a mechanism to extract and generate cropped images of digit regions, optimizing input for subsequent processing.

  • Digit Recognition: Employ advanced AI models to accurately recognize and interpret the digits within the cropped images, ensuring reliable meter readings.

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

Installation

  1. Clone the repository
git clone https://github.com/MuhammadWaqar621/Smart-Meter-Reading.git
  1. Install the requirements
conda create -n smart_meter python=3.11.4
conda activate smart_meter
pip install -r requirements.txt
  1. 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
    │       └── ...
    
  1. 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

  1. 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

  1. Integration
python main.py
  1. Download Pretrain Models
python .\model_checkpoints_download.py
  1. FastAPI
uvicorn API:app --host 0.0.0.0 --port 1003 --reload

Contact

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.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages