Skip to content

Commit

Permalink
#8 adding support for windows and precompiled applications
Browse files Browse the repository at this point in the history
  • Loading branch information
haverland committed Aug 30, 2022
1 parent 56f2fa4 commit 4ff929d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
35 changes: 32 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,51 @@ Espessially for analog counter is to center the picture on the pointer.

### Read the images



#### Install collectmeteranalog

The [releases](https://github.com/haverland/collectmeteranalog/releases) contains downloads for Windows, Linux and MacOS. But the prefered install is via python's pip.

##### Python

This is mostly the easiest part, if you have installed python on your computer. If not you need to install it ( <https://www.python.org/downloads/> ).

Open a terminal and type in:

pip install git+https://github.com/haverland/collectmeteranalog

On mac and windows the prediction is not available. It shows everytime a -1. You can manually install it by

pip install tensorflow-macos
or

pip install tensorflow

The application is called via console

python3 -m collectmeteranalog --collect=<your-esp32name> --days=3

It downloads now all images in a "data" subfolder. The image names will be hashed for your privacy.
Be patiant. It will takes a while.

After it the duplicates will be automaticly removed and finally you have a folder named data/labled with the images.

##### Windows, MacOS, Linux

The executables are console applications. You can use it like python

Windows-collectmeteranalog.exe --collect=<your-esp32name> --days=3
,

Linux-collectmeteranalog --collect=<your-esp32name> --days=3
or

macOS-collectmeteranalog --collect=<your-esp32name> --days=3

Windows and MacOS excecutables have no prediction, because the tflite-runtime is only available for linux and the complete tensorflow library is to big (600MB) for a single application.


### Label the images

Now you can label the images. After reading the images it opens a window.
Expand All @@ -63,9 +95,6 @@ We want label like a human would be read the pointer.
If it is correctly, you can click on update. If not use the slider to adjust it.

The prediction on the left side can help you to identify the number. But beware the model can be only a help for you. **Don't trust the recognition!**
On mac the prediction is not available. It shows everytime a -1. You can manually install it by

pip install tensorflow-macos

<img src="images/Labeling3.png" width="600">

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

setup(
name='collectmeteranalog',
version='0.2.3',
version='1.0.0',
url='https://github.com/haverland/collectmeteranalog',
license='Apache 2.0',
author='Frank Haverland',
Expand Down

0 comments on commit 4ff929d

Please sign in to comment.