Ejemplo n.º 1
0
        /// <summary>
        /// 以图搜图检索请求
        /// </summary>
        /// <param name="searchPara">检索条件</param>
        /// <returns>检索唯一编号</returns>
        public UInt32 StartCompareSearchByTaskUnit(SearchPara searchPara)
        {
            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXSDKProtocol StartCompareSearchByTaskUnit");
            UInt32 searchID = 0;

            TVDASDK_SEARCH_TASK_UNIT_LIST targets = ModelParser.GetTargetList(searchPara);
            TVDASDK_SEARCH_IMAGE_FILTER   filter  = ModelParser.GetCompareSearchFilter(searchPara);

            TVDASDK_SEARCH_RESULT_REQUIREMENT pageAndSortInfo = ModelParser.GetPageAndSortSettings(searchPara);
            UInt32 userData = 0;
            bool   result   = IVXSDKProtocol.VdaSdk_StartImageSearchByTaskUnitID(targets, filter, pageAndSortInfo, userData, ref searchID);

            if (!result)
            {
                CheckError();
            }

            if (filter.tImageInfo.dwImageSize > 0)
            {
                Marshal.FreeHGlobal(filter.tImageInfo.ptImageData);
            }

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXSDKProtocol StartCompareSearchByTaskUnit ret :" + searchID);

            return(searchID);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 运动物检索请求
        /// </summary>
        /// <param name="searchPara">检索条件</param>
        /// <returns>检索唯一编号</returns>
        public UInt32 StartMoveObjectSearchByTaskUnit(SearchPara searchPara)
        {
            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXSDKProtocol StartMoveObjectSearchByTaskUnit");

            UInt32 searchID = 0;

            TVDASDK_SEARCH_TASK_UNIT_LIST   targets = ModelParser.GetTargetList(searchPara);
            TVDASDK_SEARCH_MOBILEOBJ_FILTER filter  = ModelParser.GetMoveObjectFilter(searchPara);

            TVDASDK_SEARCH_RESULT_REQUIREMENT pageAndSortInfo = ModelParser.GetPageAndSortSettings(searchPara);
            UInt32 userData = 0;
            bool   result   = IVXSDKProtocol.VdaSdk_StartMoveObjSearchByTaskUnitID(targets, filter, pageAndSortInfo, userData, ref searchID);

            if (!result)
            {
                CheckError();
            }

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXSDKProtocol StartMoveObjectSearchByTaskUnit ret :" + searchID);

            return(searchID);
        }
Ejemplo n.º 3
0
 public static extern bool VdaSdk_StartVehicleSearchByTaskUnitID(TVDASDK_SEARCH_TASK_UNIT_LIST tSearchTargetList, TVDASDK_SEARCH_VEHICLE_FILTER tSearchConditionFilter, TVDASDK_SEARCH_RESULT_REQUIREMENT tSearchResultRequirement, UInt32 dwUserData, ref UInt32 pdwSessionID);