Пример #1
0
        /// <summary>
        /// Create a Cuda cascade classifier using the specific file
        /// </summary>
        /// <param name="fileName">The file to create the classifier from</param>
        public CudaCascadeClassifier(String fileName)
        {
#if !NETFX_CORE
            Debug.Assert(File.Exists(fileName), String.Format("The Cascade file {0} does not exist.", fileName));
#endif
            using (CvString s = new CvString(fileName))
                _ptr = CudaInvoke.cudaCascadeClassifierCreate(s);
            _buffer = new GpuMat(1, 100, DepthType.Cv32S, 4);
        }
Пример #2
0
 /// <summary>
 /// Create a Cuda cascade classifier using the specific file
 /// </summary>
 /// <param name="fileName">The file to create the classifier from</param>
 public CudaCascadeClassifier(String fileName)
 {
     Debug.Assert(File.Exists(fileName), String.Format("The Cascade file {0} does not exist.", fileName));
     using (CvString s = new CvString(fileName))
         _ptr = CudaInvoke.cudaCascadeClassifierCreate(s, ref _sharedPtr);
 }