【问题标题】:MODI Document Create pathMODI 文档创建路径
【发布时间】:2012-04-23 04:59:28
【问题描述】:

我目前正在使用 MODI dll 在 OCR 阅读器中工作,我的代码类似于

    MODI.Document md = new MODI.Document();

    //image path 
    string fileToOCR="C:\\temp\\1in.jpg";

    md.Create(fileToOCR);
    md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);
    MODI.Image img = (MODI.Image)md.Images[0];
    MODI.Layout layout = img.Layout;
    layout = img.Layout;
    string result = layout.Text;
    md.Close(false);

我想用

        //image path 
    string fileToOCR="C:\\temp\\1in.jpg";

        //image path 
    string fileToOCR="http://example.com/image.png";

这怎么可能,请帮帮我。

【问题讨论】:

    标签: c# c#-4.0 c#-3.0 c#-2.0


    【解决方案1】:

    MODI 需要一个本地文件来处理。您可以使用 WebClient.DownloadData(参见http://msdn.microsoft.com/en-us/library/xz398a3f.aspx)获取数据,然后将其保存在本地。

    【讨论】:

      猜你喜欢
      • 2017-11-09
      • 2023-03-18
      • 1970-01-01
      • 2019-06-08
      • 1970-01-01
      • 2012-05-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多