Skip to main content

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:

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gastimeter-0.2.1.tar.gz
Algorithm Hash digest
SHA256 11fd7ebf9156ab28f5d6464a9118d78bc8b63e8d5b82e34d0df618024827ee90
MD5 332b58b336e5a57f4caf0fca8d9d0b24
BLAKE2b-256 e429d7167f02d113cc893e1256bd0bea3678d67cce3a1c8095de71c54d962ed5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gastimeter-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for gastimeter-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8dc0b1ba3cd9a9c37fcfe665bfa7d6128b2b113af789d024f4eab919aba63539
MD5 88d690389596119aaf1db8421310f43e
BLAKE2b-256 543027e451acb781730ce3fab4c9263fe1057039484c9945722438574cc0e262

See more details on using hashes here.

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