public SearchResultRecordV3_1 GetSearchResultDetail(string serverIp, uint serverPort, string cameraId, uint matchTaskId, SearchResultRecordV3_1 record) { SearchServices.SearchServices m_SearchService = new SearchServices.SearchServices("http://{0}:{1}/?matchservice.wsdl"); m_SearchService.Init(serverIp, serverPort); List <SearchResultRecordTiny> listTiny = new List <SearchResultRecordTiny>(); listTiny.Add(new SearchResultRecordTiny { AdjustTime = record.AdjustTime, ObjectDetailRect = record.ObjDetailRect, ObjectKey = record.ObjKey, ObjectType = record.ObjType, Similar = record.Similar, TargetEndTs = record.EndTime, TargetStartTs = record.BeginTime, }); var list = m_SearchService.GET_OBJ_DETAIL_INFO(cameraId, matchTaskId, listTiny); if (list != null && list.Count > 0) { return(list[0]); } return(null); }
public List <SearchResultRecordV3_1> GetSearchResultDetail(string serverIp, uint serverPort, string cameraId, uint matchTaskId, List <SearchResultRecordV3_1> recordlist) { SearchServices.SearchServices m_SearchService = new SearchServices.SearchServices("http://{0}:{1}/?matchservice.wsdl"); m_SearchService.Init(serverIp, serverPort); List <SearchResultRecordTiny> listTiny = new List <SearchResultRecordTiny>(); foreach (var record in recordlist) { if (string.IsNullOrEmpty(record.OriginalPicURL)) { listTiny.Add(new SearchResultRecordTiny { AdjustTime = record.AdjustTime, ObjectDetailRect = record.ObjDetailRect, ObjectKey = record.ObjKey, ObjectType = record.ObjType, Similar = record.Similar, TargetEndTs = record.EndTime, TargetStartTs = record.BeginTime, }); } } var list = m_SearchService.GET_OBJ_DETAIL_INFO(cameraId, matchTaskId, listTiny); return(list); }