/// <summary> /// Creates the importer of Caffe framework network. /// </summary> /// <param name="prototxt">path to the .prototxt file with text description of the network architecture.</param> /// <param name="caffeModel">path to the .caffemodel file with learned network.</param> /// <returns>The created importer, NULL in failure cases.</returns> public static Importer CreateCaffeImporter(String prototxt, String caffeModel) { using (CvString prototxtStr = new CvString(prototxt)) using (CvString caffeModelStr = new CvString(caffeModel)) { IntPtr result = ContribInvoke.cveDnnCreateCaffeImporter(prototxtStr, caffeModelStr); return(result == IntPtr.Zero ? null : new Importer(result)); } }