Downloads of v 4.6.1:


Last Update:

04 Jul 2019

Package Maintainer(s):

Software Author(s):

  • Christopher Brochtrup


img2ocr tesseract nhocr leptonica screencapture


  • 1
  • 2
  • 3

4.6.1 | Updated: 04 Jul 2019



Downloads of v 4.6.1:



Software Author(s):

  • Christopher Brochtrup

  • 1
  • 2
  • 3
Capture2Text 4.6.1

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests

Validation Testing Passed

Verification Testing Passed


Scan Testing Successful:

No detections found in any package files

Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Capture2Text, run the following command from the command line or from PowerShell:


To upgrade Capture2Text, run the following command from the command line or from PowerShell:


To uninstall Capture2Text, run the following command from the command line or from PowerShell:


Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to

2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade capture2text -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade capture2text -y --source="'INTERNAL REPO URL'" 

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Install capture2text
    name: capture2text
    version: '4.6.1'
    state: present

See docs at

chocolatey_package 'capture2text' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '4.6.1'

See docs at

cChocoPackageInstaller capture2text
    Name     = "capture2text"
    Version  = "4.6.1"
    Source   = "INTERNAL REPO URL"

Requires cChoco DSC Resource. See docs at

package { 'capture2text':
  ensure   => '4.6.1',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',

Requires Puppet Chocolatey Provider module. See docs at

4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 23 Aug 2020.


Capture2Text enables users to quickly OCR a small portion of the screen and, by default, save the result to the clipboard. Capture2Text can OCR 50+ languages. By default only the following languages are installed:

  • English
  • French
  • German
  • Italian
  • Japanese
  • Spanish

To acquire other languages:

  1. Download the appropriate OCR language dictionaries from:
  2. Extract the ".zip" file you just downloaded with 7-Zip or similar decompression software.
  3. Drag all files contained within the zip file to this path in the Capture2Text directory: $Env:ChocolateyInstall\lib\capture2text\Capture2Text\Utils\tesseract\tessdata
  4. Restart Capture2Text

Note: Arabic and Hindi are more CPU intensive and will thus be slower to OCR.

To install the Chinese (NHocr) language pack:

  1. Download nhocr from:
  2. Open it with 7-Zip and copy PLM-zh_CN.dic and cctable-zh_CN to $Env:ChocolateyInstall\lib\capture2text\Capture2Text\Utils\nhocr\Dic
  3. Restart Capture2Text


$packageName = 'capture2text'
$urlArray = @('', '')
$url = $urlArray[0]
$checksum = '20b8713a452c2e974d0851fd9934da99a072b051dd157932698d739d85bb0268'
$checksumType = 'sha256'
$url64 = $urlArray[1]
$checksum64 = 'ac0d3ca8ac1bff23875f9752c13787eae0fda5c60828ef420eee1c500119d65a'
$checksumType64 = 'sha256'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

Install-ChocolateyZipPackage -PackageName "$packageName" `
                             -Url "$url" `
                             -UnzipLocation "$toolsDir" `
                             -Url64bit "$url64" `
                             -Checksum "$checksum" `
                             -ChecksumType "$checksumType" `
                             -Checksum64 "$checksum64" `
                             -ChecksumType64 "$checksumType64"

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Capture2Text 4.5.1 1293 Friday, March 30, 2018 Approved
Capture2Text 3.9 4683 Sunday, June 5, 2016 Approved
Capture2Text 3.8 421 Friday, January 15, 2016 Approved
Capture2Text 3.7 340 Monday, October 12, 2015 Approved



  • Automatically built and uploaded by dtgm

This package has no dependencies.

Discussion for the Capture2Text Package

Ground Rules:

  • This discussion is only about Capture2Text and the Capture2Text package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Capture2Text, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus