| | |
| | | // 给目标填充liker |
| | | func (arg *Arg) fillLiker(tableId []string, compareThreshold float32) { |
| | | //bytes := bigCache.GetComparePersonBaseInfo(tableId, arg.Feature, compareThreshold) |
| | | comArg := &protomsg.CompareArgs{ |
| | | TableIds:tableId, |
| | | FaceFeature:arg.Feature, |
| | | CompareThreshold:compareThreshold, |
| | | Source:false, |
| | | } |
| | | serverIp, _ := GetLocalIP() |
| | | bytes := Push("tcp://"+serverIp+":4010",comArg,sock) |
| | | //comArg := &protomsg.CompareArgs{ |
| | | // TableIds:tableId, |
| | | // FaceFeature:arg.Feature, |
| | | // CompareThreshold:compareThreshold, |
| | | // Source:false, |
| | | //} |
| | | //serverIp, _ := GetLocalIP() |
| | | //bytes := Push("tcp://"+serverIp+":4010",comArg,sock) |
| | | bytes := []byte{} |
| | | var scResult protomsg.SdkCompareResult |
| | | err1 := proto.Unmarshal(bytes, &scResult) |
| | | if err1 != nil { |
| | | logger.Error("getBaseInfo解压错误", err1) |
| | | return |
| | | } |
| | | //logger.Info("----------------------------------------map是", m) |
| | | ids := []string{} |