Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A simple tool to obtain gas meter readings using OCR.

Notifications You must be signed in to change notification settings

gkunz/gastimeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

265 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple tool to obtain gas meter readings using OCR.

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages