Skip to content

harunnryd/alpr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alpr

-- import "alpr_go/alpr"

Usage

type Client

type Client struct {
	SecretKey string
}

Client :

func NewClient

func NewClient() *Client

NewClient :

func (*Client) Execute

func (c *Client) Execute(imageBytes string) (Response, error)

Execute :

func (*Client) Initialize

func (c *Client) Initialize(secretKey string) *Client

Initialize :

type Response

type Response struct {
	Plate     string `json:"plate"`
	Region    string `json:"region"`
	Color     string `json:"color"`
	Make      string `json:"make"`
	BodyType  string `json:"body_type"`
	MakeModel string `json:"make_model"`
}

Response :

func NewResponse

func NewResponse() *Response

NewResponse : inisialisasi struct Response

type ResponsePlateRecognition

type ResponsePlateRecognition struct {
	UUID           string `json:"uuid"`
	DataType       string `json:"data_type"`
	EpochTime      int64  `json:"epoch_time"`
	ProcessingTime struct {
		Total    float64 `json:"total"`
		Plates   float64 `json:"plates"`
		Vehicles float64 `json:"vehicles"`
	} `json:"processing_time"`
	ImgHeight int `json:"img_height"`
	ImgWidth  int `json:"img_width"`
	Results   []struct {
		Plate            string  `json:"plate"`
		Confidence       float64 `json:"confidence"`
		RegionConfidence int     `json:"region_confidence"`
		VehicleRegion    struct {
			Y      int `json:"y"`
			X      int `json:"x"`
			Height int `json:"height"`
			Width  int `json:"width"`
		} `json:"vehicle_region"`
		Region           string  `json:"region"`
		PlateIndex       int     `json:"plate_index"`
		ProcessingTimeMs float64 `json:"processing_time_ms"`
		Candidates       []struct {
			MatchesTemplate int     `json:"matches_template"`
			Plate           string  `json:"plate"`
			Confidence      float64 `json:"confidence"`
		} `json:"candidates"`
		Coordinates []struct {
			Y int `json:"y"`
			X int `json:"x"`
		} `json:"coordinates"`
		Vehicle struct {
			Orientation []struct {
				Confidence float64 `json:"confidence"`
				Name       string  `json:"name"`
			} `json:"orientation"`
			Color []struct {
				Confidence float64 `json:"confidence"`
				Name       string  `json:"name"`
			} `json:"color"`
			Make []struct {
				Confidence float64 `json:"confidence"`
				Name       string  `json:"name"`
			} `json:"make"`
			BodyType []struct {
				Confidence float64 `json:"confidence"`
				Name       string  `json:"name"`
			} `json:"body_type"`
			Year []struct {
				Confidence float64 `json:"confidence"`
				Name       string  `json:"name"`
			} `json:"year"`
			MakeModel []struct {
				Confidence float64 `json:"confidence"`
				Name       string  `json:"name"`
			} `json:"make_model"`
		} `json:"vehicle"`
		MatchesTemplate int `json:"matches_template"`
		RequestedTopn   int `json:"requested_topn"`
	} `json:"results"`
	CreditsMonthlyUsed  int  `json:"credits_monthly_used"`
	Version             int  `json:"version"`
	CreditsMonthlyTotal int  `json:"credits_monthly_total"`
	Error               bool `json:"error"`
	RegionsOfInterest   []struct {
		Y      int `json:"y"`
		X      int `json:"x"`
		Height int `json:"height"`
		Width  int `json:"width"`
	} `json:"regions_of_interest"`
	CreditCost int `json:"credit_cost"`
}

ResponsePlateRecognition :

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages