public CascadeClassifier ( string fileName ) : System | ||
fileName | string | Name of the file from which the classifier is loaded. |
return | System |
public CascadeClassifier(string fileName)
{
if (String.IsNullOrEmpty(fileName))
throw new ArgumentNullException(nameof(fileName));
if (!File.Exists(fileName))
throw new FileNotFoundException("\""+ fileName + "\"not found", fileName);
ptr = NativeMethods.objdetect_CascadeClassifier_newFromFile(fileName);
}
CascadeClassifier::CascadeClassifier ( ) : System |