| | |
| | | "fmt" |
| | | "io/ioutil" |
| | | "os" |
| | | "time" |
| | | "unsafe" |
| | | |
| | | "basic.com/libgowrapper/sdkhelper.git" |
| | |
| | | return |
| | | default: |
| | | |
| | | for { |
| | | msg, err = c.Recv() |
| | | if err != nil { |
| | | if err == nil { |
| | | break |
| | | } |
| | | s.fnLogger("REID~~~~~~Recv From HumanTrack error: ", err) |
| | | time.Sleep(5 * time.Millisecond) |
| | | continue |
| | | } |
| | | |
| | |
| | | } |
| | | buf := float32SliceAsByteSlice(feat) |
| | | ioutil.WriteFile("./reid-feat-byte.txt", buf, 0644) |
| | | c.Send(buf) |
| | | |
| | | for { |
| | | err = c.Send(buf) |
| | | if err == nil { |
| | | break |
| | | } |
| | | s.fnLogger("REID~~~~~~Send HumanTrack error: ", err) |
| | | time.Sleep(5 * time.Millisecond) |
| | | continue |
| | | } |
| | | |
| | | } |
| | | |
| | | } |