openalpr

package
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	URI string
}

func New

func New(URI string) *API

func (*API) Recognize

func (api *API) Recognize(uri string) (*Image, error)

type Candidate

type Candidate struct {
	Confidence float64
	Plate      string
}

type Coordinate

type Coordinate struct {
	X int `json:"x"`
	Y int `json:"y"`
}

type Image

type Image struct {
	Height         int     `json:"img_height"`
	Width          int     `json:"img_width"`
	ProcessingTime float64 `json:"processing_time_ms"`
	Recognized     []Plate `json:"results"`
}

func (*Image) Plates

func (r *Image) Plates() ([]string, error)

type Plate

type Plate struct {
	Candidates       []Candidate  `json:"candidates"`
	Confidence       float64      `json:"confidence"`
	Coordinates      []Coordinate `json:"coordinates"`
	Plate            string       `json:"plate"`
	PlateIndex       int          `json:"plate_index"`
	ProcessingTimeMs float64      `json:"processing_time_ms"`
	Region           string       `json:"region"`
	RegionConfidence int          `json:"region_confidence"`
	RequestedTopN    int          `json:"requested_topn"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL