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.5.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.5-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

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

Hashes for gastimeter-0.2.5.tar.gz
Algorithm Hash digest
SHA256 a24a8f27329219133d7886ba4ceed76f18ce5a77723fd186f7d5ca2dbd30116e
MD5 c336b2622535ad64841c6270e4050976
BLAKE2b-256 a6138578953d415dc53c85e0c9974fa4cd739a6bd912015e8f9557e4b65f00ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for gastimeter-0.2.5.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.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

Hashes for gastimeter-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bb3305ddc2788562b1266ef35049e916bd89381cc70fe2449abb8cc1a94efe64
MD5 ea80b9040dbb7f8a931edfbcc973dad1
BLAKE2b-256 f1dc251ed2f5e016d69cd41341cf44d0d45e4b77049613b4b44b7da2a465b0ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for gastimeter-0.2.5-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