Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sclaflin/OpenALPR-HTTP-Wrapper
Thin wrapper around the OpenALPR cli program
https://github.com/sclaflin/OpenALPR-HTTP-Wrapper
Last synced: about 2 months ago
JSON representation
Thin wrapper around the OpenALPR cli program
- Host: GitHub
- URL: https://github.com/sclaflin/OpenALPR-HTTP-Wrapper
- Owner: sclaflin
- License: mit
- Created: 2021-12-03T20:35:02.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-27T23:23:01.000Z (about 1 year ago)
- Last Synced: 2024-08-02T15:50:46.230Z (5 months ago)
- Language: JavaScript
- Size: 39.1 KB
- Stars: 9
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Open ALPR HTTP Wrapper #
Just a small wrapper around the Open ALPR cli binary.
Simply send and HTTP Post of image data to `/detect` and get back JSON results from the attempted detection.
## Installation ##
A docker image is available via:
```bash
docker pull sclaflin/open-alpr-http-wrapper
```Docker Compose:
```yaml
version: "3.9"
services:
open-alpr-http-wrapper:
container_name: open-alpr-http-wrapper
restart: unless-stopped
image: sclaflin/open-alpr-http-wrapper:latest
ports:
- "3000:3000"
```## Usage ##
Post image data to the /detect endpoint:
```bash
curl -F [email protected] http://localhost:3000/detect
```The following output is returned:
```json
{
"version": 2,
"data_type": "alpr_results",
"epoch_time": 1638566810336,
"img_width": 1289,
"img_height": 744,
"processing_time_ms": 146.275497,
"regions_of_interest": [],
"results": [
{
"plate": "YZ88658",
"confidence": 85.818779,
"matches_template": 0,
"plate_index": 0,
"region": "",
"region_confidence": 0,
"processing_time_ms": 12.290022,
"requested_topn": 10,
"coordinates": [
{
"x": 682,
"y": 342
},
{
"x": 805,
"y": 346
},
{
"x": 801,
"y": 400
},
{
"x": 680,
"y": 396
}
],
"candidates": [
{
"plate": "YZ88658",
"confidence": 85.818779,
"matches_template": 0
},
{
"plate": "Y288658",
"confidence": 85.352005,
"matches_template": 0
},
{
"plate": "YZ8B658",
"confidence": 83.173759,
"matches_template": 0
},
{
"plate": "Y28B658",
"confidence": 82.706985,
"matches_template": 0
},
{
"plate": "YZ8865B",
"confidence": 78.087212,
"matches_template": 0
}
]
}
]
}
```The root of the server also presents a form that you can use via web browser to upload and detect files.