Smart Meter Scanning is an AI-based application that enables cameras to automatically read results from your analog meters, transforming it into digital data with accurate, near-real-time meter results. It uses computer vision, object detection, and object segmentation.
Now, let's dive into the steps, starting with installing Python.
This project requires Python 3.7 or higher. If you don't have Python installed on your machine, go to https://www.python.org/downloads/ and download the latest version for your operating system. Follow the prompts to install Python, making sure to check the option to add Python to your PATH environment variable.
To clone the repository, run the following command:
git clone -b recipes https://github.com/openvinotoolkit/openvino_notebooks.git openvino_notebooks
This will clone the repository into a directory named "meter-reader-openvino" in the current directory. Then, navigate into the directory using the following command:
cd openvino_notebooks/recipes/meter_reader
To create a virtual environment, open your terminal or command prompt and navigate to the directory where you want to create the environment. Then, run the following command:
python3 -m venv venv
This will create a new virtual environment named "venv" in the current directory.
Activate the virtual environment using the following command:
source venv/bin/activate # For Unix-based operating system such as Linux or macOS
NOTE: If you are using Windows, use venv\Scripts\activate
command instead.
This will activate the virtual environment and change your shell's prompt to indicate that you are now working within that environment.
To install the required packages, run the following commands:
python -m pip install --upgrade pip
pip install -r requirements.txt
Prepare your detection and segmentation models with this command:
cd model
sudo sh ./download_pdmodel.sh
To run the application, use the following command:
python main.py -i data/test.jpg -c config/config.json -t "analog"
This will run the application with the specified arguments. Replace "data/test.jpg" with the path to your input image. The result images will be exported to same fold of test image. You can also run the 203-meter-reader.ipynb to learn more about the inference process.
Congratulations! You have successfully set up and run the Automatic Industrial Meter Reading application with OpenVINO™.
- Open a discussion topic
- Create an issue
- Learn more about OpenVINO
- Explore OpenVINO’s documentation