db/person.go
@@ -1,6 +1,7 @@ package db import ( "basic.com/valib/logger.git" "encoding/base64" "sdkCompare/util" "strconv" @@ -59,6 +60,7 @@ if p.FaceFeature != "" { byteFeat, err := base64.StdEncoding.DecodeString(p.FaceFeature) if err != nil { logger.Errorf("Person %s feature is invalid", p.Id) continue } @@ -69,6 +71,8 @@ FaceFeature: util.ByteSlice2float32Slice(byteFeat), Enable: int32(p.Enable), }) } else { logger.Errorf("Person %s feature is empty %s", p.Id) } } return