Ejemplo n.º 1
0
 /// <summary>
 /// Create new request helper.
 /// </summary>
 /// <param name="ocrHost">url to open-ocr host. http://xxx</param>
 /// <param name="ocrPort">port of open-ocr service.</param>
 /// <param name="options">pass custom open-ocr options</param>
 public OpenOcrRequestHelper(string ocrHost, string ocrPort, OpenOcrOptions options)
 {
     _ocrHost = ocrHost;
     _ocrPort = string.IsNullOrEmpty(ocrPort) ? DEFAULT_PORT : ocrPort;
     _options = options;
 }
Ejemplo n.º 2
0
 public OpenOcrService(string openOcrHostUrl, string openOcrPort, OpenOcrOptions options)
     : this(new RestService(), new OpenOcrRequestHelper(openOcrHostUrl, openOcrPort, options))
 {
 }