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.2.tar.gz (7.2 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.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gastimeter-0.2.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for gastimeter-0.2.2.tar.gz
Algorithm Hash digest
SHA256 48cf0020814f3ed043e459e6e03791dbb39cd2d9c8033617092936ad61ef1154
MD5 e0112ce118bd354153ec0e7330d6a9ac
BLAKE2b-256 e6efa8f5712ae1380a2f00536db4b900fb2b9c459dba29b1701aeba192ee7643

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gastimeter-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for gastimeter-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a6f10f1aa9d11cc5efdb84ed7b3e4e89b62ea993ea6622f88f41ebb4343b7f84
MD5 d6891cfef5c71a0c4d194f91a3fc5ad9
BLAKE2b-256 d2022236cbd4e26a19e992938d0da8edca24506b764680cd1c87e89e450e8a10

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