• <menu id="w2i4a"></menu>
  • 首頁(yè) > 慧問(wèn) > 頻道

    DotImage的RecoStar Engine修改字體屬性的問(wèn)題[DotImage]

    發(fā)表于2019-05-10 回復(fù):0 查看:2456  |  
    為了創(chuàng)建可搜索文檔,我們使用了Recostar OCR引擎。它支持土耳其字符。但是當(dāng)我們使用它的翻譯功能時(shí),出現(xiàn)一些亂碼,而非土耳其的字符。我想知道如何更改其字體屬性? 代碼如下: FileStream fs = new FileStream(inputFile, FileMode.Open); Atalasoft.Imaging.Codec.Pdf.PdfDecoder dec = new Atalasoft.Imaging.Codec.Pdf.PdfDecoder(); dec.Resolution = 200; int ss = dec.GetFrameCount(fs); Atalasoft.Imaging.ImageCollection coll = new Atalasoft.Imaging.ImageCollection(); for (int i = 0; i < ss; i++) { Atalasoft.Imaging.AtalaImage aim = dec.Read(fs, i, null); coll.Add(aim); } fs.Close(); Atalasoft.Ocr.RecoStarLoader loader = new Atalasoft.Ocr.RecoStarLoader(); Atalasoft.Ocr.RecoStar.RecoStarEngine eng = new Atalasoft.Ocr.RecoStar.RecoStarEngine(loader); eng.RecognitionCulture = System.Globalization.CultureInfo.CurrentCulture;// = tr-TR Atalasoft.Ocr.PdfTranslator trans = new Atalasoft.Ocr.PdfTranslator(); trans.OutputType = Atalasoft.Ocr.PdfTranslatorOutputType.TextOnly; Atalasoft.Imaging.ImageCollectionImageSource source = new Atalasoft.Imaging.ImageCollectionImageSource(coll); try { eng.Initialize(); eng.Translate(source, "application/pdf", Application.StartupPath + "\\out_search.pdf", trans); } catch (Exception ex) { MessageBox.Show(ex.Message); } eng.ShutDown(); eng.Dispose();
    0個(gè)回答

    打破零回復(fù)...

    回復(fù)

    登錄 慧都網(wǎng)發(fā)表評(píng)論

    掃碼咨詢


    添加微信 立即咨詢

    電話咨詢

    客服熱線
    023-68661681

    TOP
    三级成人熟女影院,欧美午夜成人精品视频,亚洲国产成人乱色在线观看,色中色成人论坛 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();