Skip to content
This repository was archived by the owner on Dec 24, 2021. It is now read-only.

Commit 6e36054

Browse files
committed
Update to Versioni 4.1.0
* Upgrade to Tensorflow 2.0 * Usage of Pillow in CNN-Image Processing
1 parent 1013f3a commit 6e36054

37 files changed

+69
-41
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
## Changelog
2+
##### 3.0.2 (2019-11-07)
3+
* Correct error for disable Logging
4+
##### 3.0.1 (2019-11-03)
5+
* Update to Pillow 6.2.0
26
##### 3.0.0 (2019-10-06)
37
* Impementation of optional consistency check of readout value (not negative, maximum rate)
48
##### 2.3.0 (2019-10-05)

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ This repository is the sum of different projects to read out an analog water met
44
The result is a HTTP-server, that takes an image as input, processes it and gives as an output the water meter number, including the subdigits.
55

66
## Changelog - lastest version
7-
##### 3.0.2 (2019-11-07)
8-
* Correct error for disable Logging
9-
##### 3.0.1 (2019-11-03)
10-
* Update to Pillow 6.2.0
11-
##### 3.0.0 (2019-10-06)
12-
* Impementation of optional consistency check of readout value (not negative, maximum rate)
7+
##### 4.1.0 (2019-11-25)
8+
* Upgrade to Tensorflow 2.0
9+
* Changed image processing within CNN to Pillow (instead of OpenCV)
10+
1311
### [Full Changelog](Changelog.md)
1412

1513

@@ -87,6 +85,7 @@ Example with parameter `full`:
8785

8886
The page `roi.html` return the image including the ROIs visible. This is usefull to check for correct setting:
8987
<img src="./images/roi_masked.jpg" width="400">
88+
Since version 4.1.0 also a middle cross and a circle for supporting the alignment is implemented.
9089

9190
* http://server-ip:3000/setPreValue.html?value=401.57
9291

@@ -96,9 +95,9 @@ The page `setPreValue.html` stores the number given in the parameter `value` to
9695
| --------- | ------- | ------- |
9796
| value | valid setting of water meter readout | `value=401.57` |
9897

98+
* http://server-ip:3000/version.html
9999

100-
101-
100+
The page `version.html` returns a version number.
102101

103102

104103

code/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ FROM python:3.7
33
WORKDIR /
44

55
COPY ./tensorflow ./tensorflow
6-
RUN pip install --no-cache-dir ./tensorflow/tensorflow-1.14.0-cp37-cp37m-linux_x86_64.whl
6+
RUN pip install --no-cache-dir ./tensorflow/tensorflow-2.0.0-cp37-cp37m-linux_x86_64.whl
77
RUN rm -r ./tensorflow
88

99
COPY requirements.txt ./
1010
RUN pip install --no-cache-dir -r requirements.txt
1111

1212
COPY . ./
13-
14-
CMD chmod +x ./restart.sh
13+
RUN rm -r ./tensorflow
1514

1615
EXPOSE 3000
1716

code/config/config.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
TimeoutLoadImage=30
33
#IP durch die IP des ESP32 ersetzen!
44
URLImageSource=http://192.168.178.22/capture_with_flashlight
5-
LogImageLocation=./log/source_image
5+
#LogImageLocation=./log/source_image
66
# Falls nur schlechte / fehlerhafte Bilder gelockt werden sollen, naechste Zeile Kommentar entfernen
77
#LogOnlyFalsePictures=True
88

@@ -40,14 +40,14 @@ pos_y=386
4040

4141
[Digital_Digit]
4242
names=ziffer1, ziffer2, ziffer3, ziffer4, ziffer5
43-
Modelfile=./config/neuralnets/Train_CNN_Digital-Readout_Version2.h5
44-
LogImageLocation=./log/digital_digit
43+
Modelfile=./config/neuralnets/Train_CNN_Digital-Readout_Version_4.1.0.h5
44+
#LogImageLocation=./log/digital_digit
4545
#LogNames=zeiger3, zeiger4
4646

4747
[Analog_Counter]
4848
names=zeiger1, zeiger2, zeiger3, zeiger4
49-
Modelfile=./config/neuralnets/CNN_Analog-Readout_Version-2.1.1.h5
50-
LogImageLocation=./log/analog_counter
49+
Modelfile=./config/neuralnets/CNN_Analog-Readout_Version-4.0.1.h5
50+
#LogImageLocation=./log/analog_counter
5151
#LogNames=zeiger3, zeiger4
5252

5353
[Analog_Counter.zeiger1]
-963 KB
Binary file not shown.
981 KB
Binary file not shown.
-3.76 MB
Binary file not shown.
Binary file not shown.

code/config_default/config.ini

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
TimeoutLoadImage=30
33
#IP durch die IP des ESP32 ersetzen!
44
URLImageSource=http://192.168.178.22/capture_with_flashlight
5-
LogImageLocation=./log/source_image
5+
#LogImageLocation=./log/source_image
66
# Falls nur schlechte / fehlerhafte Bilder gelockt werden sollen, naechste Zeile Kommentar entfernen
77
#LogOnlyFalsePictures=True
88

99
[ConsistencyCheck]
10-
Enabled=False
10+
Enabled=True
1111
AllowNegativeRates=False
1212
#Maximum Change of new to old value (+ or -)
1313
MaxRateValue=0.1
@@ -40,14 +40,14 @@ pos_y=386
4040

4141
[Digital_Digit]
4242
names=ziffer1, ziffer2, ziffer3, ziffer4, ziffer5
43-
Modelfile=./config/neuralnets/Train_CNN_Digital-Readout_Version2.h5
44-
LogImageLocation=./log/digital_digit
43+
Modelfile=./config/neuralnets/Train_CNN_Digital-Readout_Version_4.1.0.h5
44+
#LogImageLocation=./log/digital_digit
4545
#LogNames=zeiger3, zeiger4
4646

4747
[Analog_Counter]
4848
names=zeiger1, zeiger2, zeiger3, zeiger4
49-
Modelfile=./config/neuralnets/CNN_Analog-Readout_Version-2.1.1.h5
50-
LogImageLocation=./log/analog_counter
49+
Modelfile=./config/neuralnets/CNN_Analog-Readout_Version-4.0.1.h5
50+
#LogImageLocation=./log/analog_counter
5151
#LogNames=zeiger3, zeiger4
5252

5353
[Analog_Counter.zeiger1]
Binary file not shown.

0 commit comments

Comments
 (0)