如何从图像中提取文本(OCR)

回到大学后,我的一个朋友让我编辑他的一篇重要的年终论文,这似乎没什么大不了,所以我同意了–但随后他拍摄了一张截图,论文,然后将其发送给我,而不是发送文档本身。当然,这使编辑变得比原本需要的困难得多。

如果那时候我只知道文本提取技术!

这些天,您已经当您想从图像中拉出文本而不是手动键入文本时,有很多免费有效的选项。这是我们找到的最佳选择。为了进行比较,我们将通过每个工具运行上面的图像,并向您展示为确保准确性,结果文本是什么。

使用OneNote

OneNote就是其中之一。几年来最好的免费OCR工具。它是用户鲜为人知的鲜为人知的功能之一,但是一旦您开始使用它,它的速度和精确度就会让您感到惊讶。确实,提取文本的功能是使OneNote领先Evernote的一项功能。

文本提取说明:

  • 最好在OneNote中打开任何页面。
  • 导航至插入>图片,然后选择图像文件。
  • 右键单击插入的图像,然后选择从中复制文本图片
  • 粘贴到所需的位置。
  • 文本提取结果:

    Our meat greater hath signs two second behold shall. Fill bearing beast saw creature creature god light midst two. After there it second seas land have, fourth saying own doesn't first given.	Rule set male firmament given. Divide void which moved under third don't. Living. Fruit all. That for. Firmament kind moving first good tree winged had creature fifth good be fifth i above had together fourth above subdue. Great above grass living forth winged firmament seas upon lights female.

    下载-Microsoft OneNote(免费)<

    使用Photron图像转换器

    Photron图像转换器是Windows应用商店中提供的免费应用程序,可在Windows 10的台式机和平板电脑版本上使用。它可能具有两个附加功能发现有用:一种是将提取的文本翻译成另一种语言的能力,第二种是大声读出文本的能力。

    文本提取说明:

  • 出现提示时,选择图像作为输入方法。
  • 出现提示时,选择图库作为源类型。
  • 选择图像文件。
  • 文本提取结果:

    Our meat greater hath signs two second behold shall. Fill bearing beast saw creature creature god light midst two. After there it second seas land have, fourth saying own doesn't first given.	Rule set male firmament given. Divide void which moved under third don't. Living. Fruit all. That for. Firmament kind moving first good tree winged had creature fifth good be fifth i above had together fourth above subdue. Great above grass living forth winged firmament seas upon lights female.

    下载 — Photron图像转换器[不再可用](免费)

    使用FreeOCR

    FreeOCR通常被称为最好的免费工具之一,它可以从图像中提取文本,这有充分的理由:它的功能非常出色。自撰写本文以来,自2015年年中以来尚未对其进行更新,但即使在Windows 10上,我们也没有遇到任何问题。

    一个不错的功能是它可以将提取的文本直接导出到Microsoft。 Word格式。不幸的是,如果您的源图像分辨率不够高,则FreeOCR的准确性将不如其他方法(如下结果所示)。

    文本提取说明:

  • 单击打开按钮。
  • 选择图像文件。
  • 单击清除文本窗口按钮。
  • 单击 OCR 按钮并选择 OCR当前页面
  • 文本提取结果:

    Our meat greater hath signs two second behold shall. Fill bearing beast saw creature creature god light midst two. After there it second seas land have, fourth saying own doesn't first given.	Rule set male firmament given. Divide void which moved under third don't. Living. Fruit all. That for. Firmament kind moving ?rst good tree winged had creature fifth good be ?fth i above had together fourth above subdue. Great above grass living forth winged ?rrnament seas upon ?ghts femala

    下载 — FreeOCR(免费)

    使用Copyfish

    Copyfish是Chrome的简单扩展比这里的其他工具更加灵活。您可以使用它来选择浏览器屏幕的任何区域,并立即从中提取文本,而不必给它提供图像文件。如果您正在查看图像,则可以选择整个图像,而不必下载整个图像并将其输入到另一个应用程序中。

    文本提取说明:

  • 在Chrome中打开图像。它可以是本地的或在网络上。
  • 单击URL地址栏旁边的 Copyfish 按钮。
  • 选择带有文本的图像区域。
  • 文本提取结果:

    Our meat greater hath signs two second behold shall. Fill bearing beast saw creature creature god light midst two. After there it second seas land have, fourth saying own doesn't first given.	Rule set male firmament given. Divide void which moved under third don't. Living. Fruit all. That for. Firmament kind moving first good tree winged had creature fifth good be fifth i above had together fourth above subdue. Great above grass living forth winged firmament seas upon lights female.

    下载-Copyfish(免费)

    使用Google云端硬盘

    有很多Google云端硬盘提示和技巧可以使您的生活更轻松,但这是大多数用户不了解的一个:Google云端硬盘可以拍摄任何图像并将其转换为文本鼠标单击。因此,如果您选择Google云端硬盘作为云存储方法,则应该立即开始使用此功能。

    文本提取说明:

  • 上传图像文件
  • 在网络版Google云端硬盘上,右键点击图片文件,然后选择打开方式> Google文档
  • < strong>文本提取结果:

    Our meat greater hath signs two second behold shall. Fill bearing beast saw creature creature godlight midst two. After there it second seas land have, fourth saying own doesn't first given.	Rule set male firmament given. Divide void which moved under third don't. Living. Fruit all. That for. Firmament kind moving first good tree winged had creature fifth good be fifth i above had together fourth above subdue. Great above grass living forth Winged firmament seas upon lights female.

    网站-Google云端硬盘(免费)

    使用在线OCR

    说您不想安装任何东西。您有一个图像文件,您要做的就是尽可能快,方便地从中提取文本。为此,您可能正在寻找在线OCR。简单,快速,可以文本,Word或Excel格式输出。

    文本提取说明:

  • 单击选择文件,然后选择图像文件。
  • 选择所需的输出格式,最可能是文本。
  • 如有必要,输入验证码。
  • 文本提取结果:

    Our meat greater hath signs two second behold shall. Fill bearing beast saw creature creature god light midst two. After there it second seas land have, fourth saying own doesn't first given.Rule set male firmament given. Divide void which moved under third don't. Living. Fruit all. That for. Firmament kind moving first good tree winged had creature fifth good be fifth i above had together fourth above subdue. Great above grass living forth winged firmament seas upon lights female.

    网站-在线OCR <

    使用PowerShell

    PowerShell基本上是Command Prompt的高级替代方案,但是您也可以创建自己的命令,而Prateek Singh使用Microsoft的OCR API制作了一个。

    这项设置有点先进,因此如果您以前从未使用过PowerShell,可以跳过它。要使其正常工作,您需要获取Microsoft的OCR API的订阅密钥,以及Microsoft的Bing Translation API的ClientID和Client_secret。它还需要Internet连接。

    以下是使用Get-ImageText的完整说明。

    文本提取结果:

    Our meat greater hath signs two second behold shall. Fill bearing beast saw creature creature god light midst two. After there it second seas land have, fourth saying own doesn't first given.	Rule set male firmament given. Divide void which moved under third don't. Living. Fruit all. That for. Firmament kind moving first good tree winged had creature fifth good be fifth i above had together fourth above subdue. Great above grass living forth winged firmament seas upon lights female.

    PowerShell内置于Windows 7、8和10中,但此后已成为开源和跨平台的,这意味着它也可以在Linux上安装和使用。

    如何做您提取文本了吗?

    就我而言,没有最好的方法。您应该选择最舒适的一种,这可能是您已经使用过的应用程序的方法。我一直都在使用OneNote,所以我更喜欢。

    您要从哪种材料中提取文本?您首选的完成工作的工具是什么?在下面的评论中与我们分享!我们希望收到您的来信。

    标签: Google云端硬盘 Microsoft OneNote OCR PowerShell