Skip to main content

Extract text from an image using Azure Cognitive Services.

Project description

OpenSSF Scorecard REUSE status

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:

  1. sudo raspi-config
  2. Select Interface Options
  3. 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

gastimeter-0.2.6.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gastimeter-0.2.6-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file gastimeter-0.2.6.tar.gz.

File metadata

  • Download URL: gastimeter-0.2.6.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gastimeter-0.2.6.tar.gz
Algorithm Hash digest
SHA256 cba025b14723bd89e270f7f4189e680b65fac4f3f5f77c8dd53ca0e929bce600
MD5 d10742a4d5ed8eec905dfa2b760d14e0
BLAKE2b-256 85d62bf8b2aeedafe9bf693628e903979c88e32adbfc0d88be3c08d86d80ed1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gastimeter-0.2.6.tar.gz:

Publisher: publish-to-pypi.yml on gkunz/gastimeter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gastimeter-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: gastimeter-0.2.6-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.13.7

File hashes

Hashes for gastimeter-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 754971d35129ddbe14521de0edb6686e516b618a63b889f7b3774906aa798756
MD5 3a257346ebdb7e63b975fe8b8ae5d33f
BLAKE2b-256 f64ef5c3a254852619597090c34b3eee82eb655c4d36df9aff07ef3f3866d25b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gastimeter-0.2.6-py3-none-any.whl:

Publisher: publish-to-pypi.yml on gkunz/gastimeter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page