Web-camera based watermeter for Juham
Project description
Watermeter plugin for Juham™
Description
A web camera and AI-based water meter solution for Juham™ home automation.
This package includes two different water meter implementations:
-
A simple class that compares subsequent images to measure differences. The greater the difference between images, the more the arrows and digits on the water meter have changed, indicating water consumption. This solution also uploads the images to a specified FTP site when water consumption is detected, allowing homeowners to inspect the water meter visually. While this solution doesn’t provide exact water consumption readings, it is highly reliable for detecting leaks. Just ensure that spiders or other potentially moving objects don't obstruct the camera's view of the water meter.
-
Tesseract OCR and OpenCV solution for reading and interpreting water meter digits. This class requires further work to be truly useful. My Raspberry Pi didn't have enough disk space, so I decided to set this aside for now.
.. image:: _static/images/watermeter_diff.png :alt: Web camera based water meter leak detector based on comparison of subsequent images :width: 640px :align: center
Getting Started
To install:
.. code-block:: bash
pip install juham-watermeter
Which installs everything needed for reading water meters with the simple image comparison based solution.
If you want to play with the Tesseract OCR and OpenCV solution for reading and interpreting water meter digits, please read on.
Installing Tesseract OCR to read the digits:
.. code-block:: bash
sudo apt install tesseract-ocr
If you are on Windows, visit the Tesseract GitHub repository, or Download a precompiled Windows binary from UB Mannheim.
-
Install
.. code-block:: bash
pip install juham-watermeter
-
Configure
To adjust update interval and other attributes edit WaterMeter.json configuration file.
Note about OpenCV and contributors
The Python coverage failed with the No source for code: 'juham_watermeter\config-3.py' error, when all the other Python projects with precisely identical structures worked fine. Traced down the bug to opencv package, and added a .coveragerc file with the following content:
.. code-block:: bash
[run]
omit =
config.py
config-3.py
as a solution. This will of course blow up sooner or later, when some OpenCV developer decides to rename those files.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file juham_watermeter-0.1.4.tar.gz.
File metadata
- Download URL: juham_watermeter-0.1.4.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b143d0e0d4d168c71504417219f8bbd144f7a1810c3d6e6fb755e8c2f041dec
|
|
| MD5 |
31dbdab612efa4e1d7ce7b270b9fd211
|
|
| BLAKE2b-256 |
6e3c5a434f23f27ba66ee1621f11f1939f9ae795de0ce14ce9041ad4dd895716
|
File details
Details for the file juham_watermeter-0.1.4-py3-none-any.whl.
File metadata
- Download URL: juham_watermeter-0.1.4-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bf2a40450b7edcf529a22fad2448b6a98fbbd9661c25817e286b0fb90e2890f
|
|
| MD5 |
16adb71e0e0f46e8328eb0d8dd768f01
|
|
| BLAKE2b-256 |
d2eb967eef029cc82dd8b4f1a1a381bc777e4d8c1307d0e7880d65a6dee62ab4
|