Extract text from an image using Azure Cognitive Services.
Project description
Gastimeter
gastimeter is a simple tool to obtain readings from a gas meter by means of OCR (Optical Character Regonition). As OCR is not 100% accurate, the tool effectively provides a guestimate of the gas meter reading - hence the name.
Installation
Clone the repository and install gastimeter using pip - optionally in a virtually environment.
git clone https://github.com/gkunz/gastimeter.git
cd gastimeter
pip3 install .
Known issues
gastimeter uses OpenCV to capture images from a connected camera. If running gastimeter on a RaspberryPi on Debian Bullseye (or higher), note that OpenCV does not work (yet) with the new libcamera subsystem. There are two possible workarounds:
Use the legacy camera subsystem based on V4L2
Switch to the old camera subsystem using the following:
sudo raspi-config- Select
Interface Options - Select
Legacy Camera
Note that this camera subsystem is deprecated and will be removed in the future.
Use libcamera tooling
Use libcamera-jpeg to capture an image and feed this into gastimeter using the --image option.
License
Gastimator is licensed under the MIT license.
Project details
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 gastimeter-0.2.5.tar.gz.
File metadata
- Download URL: gastimeter-0.2.5.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a24a8f27329219133d7886ba4ceed76f18ce5a77723fd186f7d5ca2dbd30116e
|
|
| MD5 |
c336b2622535ad64841c6270e4050976
|
|
| BLAKE2b-256 |
a6138578953d415dc53c85e0c9974fa4cd739a6bd912015e8f9557e4b65f00ef
|
Provenance
The following attestation bundles were made for gastimeter-0.2.5.tar.gz:
Publisher:
publish-to-pypi.yml on gkunz/gastimeter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gastimeter-0.2.5.tar.gz -
Subject digest:
a24a8f27329219133d7886ba4ceed76f18ce5a77723fd186f7d5ca2dbd30116e - Sigstore transparency entry: 288040599
- Sigstore integration time:
-
Permalink:
gkunz/gastimeter@98f4a2d23d16e7a1ffac9178711a0f9757ba1d50 -
Branch / Tag:
refs/tags/0.2.5 - Owner: https://github.com/gkunz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@98f4a2d23d16e7a1ffac9178711a0f9757ba1d50 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gastimeter-0.2.5-py3-none-any.whl.
File metadata
- Download URL: gastimeter-0.2.5-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb3305ddc2788562b1266ef35049e916bd89381cc70fe2449abb8cc1a94efe64
|
|
| MD5 |
ea80b9040dbb7f8a931edfbcc973dad1
|
|
| BLAKE2b-256 |
f1dc251ed2f5e016d69cd41341cf44d0d45e4b77049613b4b44b7da2a465b0ff
|
Provenance
The following attestation bundles were made for gastimeter-0.2.5-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on gkunz/gastimeter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gastimeter-0.2.5-py3-none-any.whl -
Subject digest:
bb3305ddc2788562b1266ef35049e916bd89381cc70fe2449abb8cc1a94efe64 - Sigstore transparency entry: 288040623
- Sigstore integration time:
-
Permalink:
gkunz/gastimeter@98f4a2d23d16e7a1ffac9178711a0f9757ba1d50 -
Branch / Tag:
refs/tags/0.2.5 - Owner: https://github.com/gkunz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@98f4a2d23d16e7a1ffac9178711a0f9757ba1d50 -
Trigger Event:
push
-
Statement type: