| | |
| | | batchSize: batchSize, |
| | | flag: flag, |
| | | |
| | | list: NewLockList(6), |
| | | |
| | | handle: nil, |
| | | fnInit: fnInit.(func(int, int, int, func(...interface{})) interface{}), |
| | | fnFree: fnFree.(func(interface{})), |
| | |
| | | // } |
| | | // images = append(images, img) |
| | | res := t.fnRun(t.handle, i.Data, imgW, imgH, 3) |
| | | if res != nil { |
| | | if res == nil { |
| | | logo.Errorln("HUMAN TRACKER RUN ERROR") |
| | | |
| | | ejectResult(nil, rMsg, out) |
| | | return |
| | | } |
| | |
| | | result := protomsg.HumanTrackResult{Result: hr[0]} |
| | | data, err := proto.Marshal(&result) |
| | | if err != nil { |
| | | logo.Errorln("HUMAN TRACKER MARSHAL PROTO PLATE IDS ERROR", err) |
| | | logo.Errorln("HUMAN TRACKER MARSHAL PROTO ERROR", err) |
| | | data = nil |
| | | } |
| | | ejectResult(data, rMsg, out) |