juham-watermeter 0.0.5__py3-none-any.whl → 0.0.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,14 +7,14 @@ Web-camera based watermeter classes with leak detector
7
7
  """
8
8
 
9
9
  from .webcamera import WebCamera
10
- from .watermeter_ocr import WaterMeterOCR
10
+ #from .watermeter_ocr import WaterMeterOCR
11
11
  from .watermeter_imgdiff import WaterMeterImgDiff
12
12
  from .watermeter_ts import WaterMeterTs
13
13
  from .leakdetector import LeakDetector
14
14
 
15
15
  __all__ = [
16
16
  "WebCamera",
17
- "WaterMeterOCR",
17
+ # "WaterMeterOCR",
18
18
  "WaterMeterImgDiff",
19
19
  "WaterMeterTs",
20
20
  "LeakDetector",
@@ -0,0 +1,131 @@
1
+ Metadata-Version: 2.2
2
+ Name: juham-watermeter
3
+ Version: 0.0.6
4
+ Summary: Web-camera based watermeter for Juham
5
+ Author-email: J Meskanen <juham.api@gmail.com>
6
+ Maintainer-email: "J. Meskanen" <juham.api@gmail.com>
7
+ License: MIT License
8
+ ===========
9
+
10
+ Copyright (c) 2024, Juha Meskanen
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+
29
+
30
+ Project-URL: Homepage, https://gitlab.com/juham/juham
31
+ Project-URL: Bug Reports, https://gitlab.com/juham/juham
32
+ Project-URL: Funding, https://meskanen.com
33
+ Project-URL: Say Thanks!, http://meskanen.com
34
+ Project-URL: Source, https://gitlab.com/juham/juham
35
+ Keywords: object-oriented,plugin,framework,watermeter,home automation
36
+ Classifier: Development Status :: 2 - Pre-Alpha
37
+ Classifier: Intended Audience :: Developers
38
+ Classifier: Topic :: Software Development
39
+ Classifier: License :: OSI Approved :: MIT License
40
+ Classifier: Programming Language :: Python :: 3.8
41
+ Requires-Python: >=3.8
42
+ Description-Content-Type: text/markdown
43
+ License-File: LICENSE.rst
44
+ Requires-Dist: juham-core>=0.1.1
45
+ Requires-Dist: numpy
46
+ Requires-Dist: Pillow>=10.4.0
47
+ Requires-Dist: opencv-python-headless>=4.10.0
48
+ Requires-Dist: pytesseract>=0.3.13
49
+ Provides-Extra: dev
50
+ Requires-Dist: check-manifest; extra == "dev"
51
+
52
+ Watermeter plugin for Juham™
53
+ =============================
54
+
55
+ Description
56
+ -----------
57
+
58
+ A web camera and AI-based water meter solution for Juham™ home automation.
59
+
60
+ This package includes two different water meter implementations:
61
+
62
+ * A simple class that compares subsequent images to measure differences. The greater the difference between images,
63
+ the more the arrows and digits on the water meter have changed, indicating water consumption.
64
+ This solution also uploads the images to a specified FTP site when water consumption is detected,
65
+ allowing homeowners to inspect the water meter visually. While this solution doesn’t provide exact water
66
+ consumption readings, it is highly reliable for detecting leaks. Just ensure that spiders or other potentially moving
67
+ objects don't obstruct the camera's view of the water meter.
68
+
69
+ * Tesseract OCR and OpenCV solution for reading and interpreting water meter digits.
70
+ This class requires further work to be truly useful. My Raspberry Pi didn't have enough disk
71
+ space, so I decided to set this aside for now.
72
+
73
+
74
+ .. image:: _static/images/watermeter_diff.png
75
+ :alt: Web camera based water meter leak detector based on comparison of subsequent images
76
+ :width: 640px
77
+ :align: center
78
+
79
+
80
+ Getting Started
81
+ ---------------
82
+
83
+ To install:
84
+
85
+ .. code-block:: bash
86
+
87
+ pip install juham-watermeter
88
+
89
+ Which installs everything needed for reading water meters with the simple image comparison based solution.
90
+
91
+
92
+ If you want to play with the Tesseract OCR and OpenCV solution for reading and interpreting water meter digits,
93
+ please read on.
94
+
95
+
96
+ Installing Tesseract OCR to read the digits:
97
+
98
+ .. code-block:: bash
99
+
100
+ sudo apt install tesseract-ocr
101
+
102
+ If you are on Windows, visit the Tesseract GitHub repository, or Download a precompiled Windows binary from UB Mannheim.
103
+
104
+ 2. Install
105
+
106
+ .. code-block:: bash
107
+
108
+ pip install juham-watermeter
109
+
110
+
111
+ 2. Configure
112
+
113
+ To adjust update interval and other attributes edit `WaterMeter.json` configuration file.
114
+
115
+
116
+ ### Note about OpenCV and contributors
117
+
118
+ The Python coverage failed with the No source for code: 'juham_watermeter\config-3.py'
119
+ error, when all the other Python projects with precisely identical structures worked fine.
120
+ Traced down the bug to opencv package, and added a .coveragerc file with the following content:
121
+
122
+ .. code-block:: bash
123
+
124
+ [run]
125
+ omit =
126
+ config.py
127
+ config-3.py
128
+
129
+ as a solution. This will of course blow up sooner or later, when some OpenCV developer decides
130
+ to rename those files.
131
+
@@ -1,13 +1,13 @@
1
- juham_watermeter/__init__.py,sha256=kFVTpeSgFaXsJJ-uxxYf656Os-zVVVriEx5yAjY1XhE,412
1
+ juham_watermeter/__init__.py,sha256=7BJ-_1Zw2FgJJ_JmL15KyBuQQC8mK1qLXxykvZxEM20,414
2
2
  juham_watermeter/leakdetector.py,sha256=IOTlvsRQ7N6zC2kADMr2XjrPMBGFnSBac-PpqixiyZE,6369
3
3
  juham_watermeter/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
4
4
  juham_watermeter/watermeter_imgdiff.py,sha256=njBhUJpAK5YH5Ob3HpHyqVCikIFtRB8mZ-lTAOObECg,12138
5
5
  juham_watermeter/watermeter_ocr.py,sha256=b9DS_7tPPDS_BHrS34x0Rfh3kTotJVMZ9tmtdz8OWz4,9105
6
6
  juham_watermeter/watermeter_ts.py,sha256=T4nKoVNpgU53CDvSIRgEbm4oy1UiqET7xfRcg_OtoPI,3246
7
7
  juham_watermeter/webcamera.py,sha256=Z7Yk_XcHC6-qk6uMVlUCFwhnRzII0la7QFCkyuFlTTI,5848
8
- juham_watermeter-0.0.5.dist-info/LICENSE.rst,sha256=xCUTZIYDotncT_ibKn8nNVkUGiK05hJyOWypG8G7Evk,1074
9
- juham_watermeter-0.0.5.dist-info/METADATA,sha256=PqB9MENkRnE1EloWPt_0eBKvjh0uW1r-PnSWKnih6aQ,1044
10
- juham_watermeter-0.0.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
11
- juham_watermeter-0.0.5.dist-info/entry_points.txt,sha256=4KQZ-XUjd026JX-9dLAvw6e5XE6kdshWYE4pqDgeYtE,252
12
- juham_watermeter-0.0.5.dist-info/top_level.txt,sha256=kvbS5ION4k6uJwlJuWRNHIKPrOvpVldiWeNLWbqH2X0,17
13
- juham_watermeter-0.0.5.dist-info/RECORD,,
8
+ juham_watermeter-0.0.6.dist-info/LICENSE.rst,sha256=xCUTZIYDotncT_ibKn8nNVkUGiK05hJyOWypG8G7Evk,1074
9
+ juham_watermeter-0.0.6.dist-info/METADATA,sha256=h8vNkZxa4td0B-n0og4aCadMq1IQ33-VwK1ov9h3V_8,4865
10
+ juham_watermeter-0.0.6.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
11
+ juham_watermeter-0.0.6.dist-info/entry_points.txt,sha256=4KQZ-XUjd026JX-9dLAvw6e5XE6kdshWYE4pqDgeYtE,252
12
+ juham_watermeter-0.0.6.dist-info/top_level.txt,sha256=kvbS5ION4k6uJwlJuWRNHIKPrOvpVldiWeNLWbqH2X0,17
13
+ juham_watermeter-0.0.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,27 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: juham-watermeter
3
- Version: 0.0.5
4
- Summary: Built-in Test plugin
5
- Author-email: J Meskanen <juham.api@gmail.com>
6
- Maintainer-email: "J. Meskanen" <juham.api@gmail.com>
7
- Project-URL: Homepage, https://meskanen.com
8
- Project-URL: Bug Reports, https://meskanen.com
9
- Project-URL: Funding, https://meskanen.com
10
- Project-URL: Say Thanks!, http://meskanen.com
11
- Project-URL: Source, https://meskanen.com
12
- Keywords: object-oriented,plugin,framework,watermeter,home automation
13
- Classifier: Development Status :: 2 - Pre-Alpha
14
- Classifier: Intended Audience :: Developers
15
- Classifier: Topic :: Software Development
16
- Classifier: License :: OSI Approved :: MIT License
17
- Classifier: Programming Language :: Python :: 3.8
18
- Requires-Python: >=3.8
19
- Description-Content-Type: text/markdown
20
- License-File: LICENSE.rst
21
- Requires-Dist: juham-automation>=0.0.2
22
- Requires-Dist: opencv-python-headless>=4.10.0
23
- Requires-Dist: numpy
24
- Requires-Dist: pytesseract>=0.3.13
25
- Requires-Dist: Pillow>=10.4.0
26
- Provides-Extra: dev
27
- Requires-Dist: check-manifest; extra == "dev"