| | |
| | | cache.InitDbTablePersons() |
| | | serveUrl = serveUrl + strconv.Itoa(config.DbPersonCompInfo.ServePort) |
| | | |
| | | //if procName == "dbCompare" { |
| | | // if err := cache.ConnectDB(); err != nil { |
| | | // logger.Error(err.Error()) |
| | | // return |
| | | // } |
| | | // |
| | | // cache.InitDbTablePersons() |
| | | // if !cache.InitCompare() { |
| | | // logger.Debug("init SDKFace return false,panic") |
| | | // return |
| | | // } |
| | | // serveUrl = serveUrl + strconv.Itoa(config.DbPersonCompInfo.ServePort) |
| | | //} else { |
| | | // if err := cache.Init(config.EsInfo.EsIndex.AiOcean.IndexName, targetType1); err != nil { |
| | | // logger.Info("init capture cache err:", err) |
| | | // return |
| | | // } |
| | | // |
| | | // if !cache.InitCompare() { |
| | | // logger.Debug("init SDKFace return false,panic") |
| | | // return |
| | | // } |
| | | // |
| | | // go cache.IncreVideoPersonsCache(time.Now(), targetType1) |
| | | // serveUrl = serveUrl + strconv.Itoa(config.EsCompServerInfo.ServePort) |
| | | //} |
| | | |
| | | logger.Debugf("%s serve url:%s", procName, serveUrl) |
| | | |
| | | Recv(serveUrl) |