| | |
| | | import ( |
| | | "analysis/logo" |
| | | "analysis/work" |
| | | "container/list" |
| | | "context" |
| | | "sync" |
| | | |
| | | "basic.com/valib/gogpu.git" |
| | | |
| | |
| | | |
| | | tracker map[string]*trackInfo |
| | | |
| | | cache *list.List |
| | | cv *sync.Cond |
| | | cond bool |
| | | list *LockList |
| | | } |
| | | |
| | | // NewYDetectWithTrack with track |
| | |
| | | cfg: cfg, |
| | | weights: weights, |
| | | name: name, |
| | | cache: list.New(), |
| | | cv: sync.NewCond(&sync.Mutex{}), |
| | | cond: false, |
| | | list: NewLockList(6), |
| | | } |
| | | } |
| | | |
| | |
| | | // Run impl interface |
| | | func (y *YoloDetect) Run(ctx context.Context, in <-chan work.MsgRS, out chan<- work.MsgRS, typ string) { |
| | | y.detectTrack(ctx, in, out, typ) |
| | | |
| | | } |