Browse Source

Re-enable CudaCascadeClassifier.

pull/348/merge
Canming Huang 5 years ago
parent
commit
b78de26c74
  1. 5
      Emgu.CV.Cuda/Objdetect/CudaCascadeClassifier.cs

5
Emgu.CV.Cuda/Objdetect/CudaCascadeClassifier.cs

@ -2,7 +2,7 @@
// Copyright (C) 2004-2020 by EMGU Corporation. All rights reserved.
//----------------------------------------------------------------------------
/*
using System;
using System.Collections.Generic;
using System.Diagnostics;
@ -30,9 +30,7 @@ namespace Emgu.CV.Cuda
/// <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, ref _sharedPtr);
}
@ -108,4 +106,3 @@ namespace Emgu.CV.Cuda
}
}
*/
Loading…
Cancel
Save