Exemple #1
0
 /// <summary>
 /// Initialize the WeChatQRCode. It includes two models, which are packaged with caffe format. Therefore, there are prototxt and caffe models (In total, four paramenters).
 /// </summary>
 /// <param name="detectorPrototxtPath">Prototxt file path for the detector</param>
 /// <param name="detectorCaffeModelPath">Caffe model file path for the detector</param>
 /// <param name="superResolutionPrototxtPath">Prototxt file path for the super resolution model</param>
 /// <param name="superResolutionCaffeModelPath">Caffe file path for the super resolution model</param>
 public WeChatQRCode(
     String detectorPrototxtPath,
     String detectorCaffeModelPath,
     String superResolutionPrototxtPath,
     String superResolutionCaffeModelPath)
 {
     using (CvString csDetectorPrototxtPath = new CvString(detectorPrototxtPath))
         using (CvString csDetectorCaffeModelPath = new CvString(detectorCaffeModelPath))
             using (CvString csSuperResolutionPrototxtPath = new CvString(superResolutionPrototxtPath))
                 using (CvString csSuperResolutionCaffeModelPath = new CvString(superResolutionCaffeModelPath))
                     _ptr = WeChatQRCodeInvoke.cveWeChatQRCodeCreate(
                         csDetectorPrototxtPath,
                         csDetectorCaffeModelPath,
                         csSuperResolutionPrototxtPath,
                         csSuperResolutionCaffeModelPath
                         );
 }