plate

package
v0.0.0-...-d22efa2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCarResultQueueOnlyOne

func GetCarResultQueueOnlyOne(user_id uint, logicNum uint) (CarResult_t, []CarResult_t)

func Queue

func Queue(user_id uint, carRsps []aiApiT.Car, isEmpty bool)

保存数据到队列里面

func SetCity

func SetCity(city string)

设置默认的省份的字母,例如 D

func SetProvince

func SetProvince(province string)

设置默认的省份,例如 闽

func UplogicTime

func UplogicTime(user_id uint, logicNum uint, localName string, timeValue time.Time, plateNO, plateColor, carType string)

更新数据的时间

Types

type CarResult_t

type CarResult_t struct {
	Car        aiApiT.Car //判断值
	AppearTime time.Time  //添加时间
	IsEmpty    bool       //是否为空
}

func GetCarResult

func GetCarResult(user_id uint, logicNum uint, size int) []CarResult_t

获取值

func GetCarResultOnlyOne

func GetCarResultOnlyOne(user_id uint, logicNum uint) CarResult_t

只获取一个识别结果

type Logic_t

type Logic_t struct {
	Used          bool        //启用表示
	Now_CarResult CarResult_t //当前值
	Queue         *list.List  //缓存队列
}

每个区域

type Node_t

type Node_t struct {
	//LostCount uint              //掉线次数统计
	//Status    uint              //当前状态
	Logic [maxLogic]Logic_t //当前结果
}

每个节点

type PlateHandler

type PlateHandler struct {
	Nodes sync.Map //储存所有节点的信息
	// contains filtered or unexported fields
}

总句柄

Jump to

Keyboard shortcuts

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