nohn/analogmeterreader
Composer 安装命令:
composer require nohn/analogmeterreader
包简介
Read analog meters
README 文档
README
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 |
|---|---|---|---|---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
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:
- Opening an Issue if you found a bug or wish to propose a new feature
- Placing a Pull Request with test Images, bugfixes, new features etc.
License
analogmeterreader is released under the GNU Affero General Public License.
统计信息
- 总下载量: 1.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0-or-later
- 更新时间: 2021-02-19









