Skip to content

nohn/analogmeterreader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Analog Meter Reader

Reads analog meters with PHP. The needles of the analog gauges currently have to be red.

0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9

CI Latest Stable Version Total Downloads Latest Unstable Version License

Installation

$ composer require nohn/analogmeterreader

Usage

Passing an Imagick object

use nohn\AnalogMeterReader\AnalogMeter;

$amr = new AnalogMeter($imagick_object, 'r');
echo $amr->getValue();

Passing a file path

use nohn\AnalogMeterReader\AnalogMeter;

$amr = new AnalogMeter($path_to_image_file, 'r');
echo $amr->getValue();

Practical use example

See nohn/watermeter for a real world use case.

How to contribute

You can contribute to this project by:

License

analogmeterreader is released under the GNU Affero General Public License.

About

Reads analog meters with PHP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages