Coder Social home page Coder Social logo

dumees / openalpr-http-wrapper-snapshot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sclaflin/openalpr-http-wrapper

0.0 0.0 0.0 47 KB

Thin wrapper around the OpenALPR cli program based on a snapshot Url

License: MIT License

JavaScript 75.69% Dockerfile 24.31%

openalpr-http-wrapper-snapshot's Introduction

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:

docker pull sclaflin/open-alpr-http-wrapper

Docker Compose:

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:

curl -F [email protected] http://localhost:3000/detect

The following output is returned:

{
	"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.

openalpr-http-wrapper-snapshot's People

Contributors

sclaflin avatar dumees avatar kida001 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.