Notices: This section not yet converted to new layout. Download stats are rolling back out.



Package test results are passing.

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

This package was approved as a trusted package on 7/29/2019.

OpenCV is released under a BSD license and hence it's free for both academic and commercial use. It has C++, C, Python and Java interfaces and supports Windows, Linux, Mac OS, iOS and Android. OpenCV was designed for computational efficiency and with a strong focus on real-time applications. Written in optimized C/C++, the library can take advantage of multi-core processing. Enabled with OpenCL, it can take advantage of the hardware acceleration of the underlying heterogeneous compute platform. Adopted all around the world, OpenCV has more than 47 thousand people of user community and estimated number of downloads exceeding 9 million. Usage ranges from interactive art, to mines inspection, stitching maps on the web or through advanced robotics.

Package Info

This version is from the master branch of development, which is the cutting edge of OpenCV development.

This package installs precompiled OpenCV binaries. This does not allow you to customize the features compiled into your installation. This download is about 221 MB.
If you wish to customize the features compiled in your installation, then you must compile OpenCV yourself. This requires Git and CMake. You can follow the instructions at to build using Microsoft Visual Studio.

Package Parameters

Pass the package argument /InstallationPath to set where OpenCV will unzip itself. Left alone, it will unzip in your Chocolatey Tools directory. Remember, it will always unzip itself to a new folder called \opencv in the directory you chose.
Pass the package argument /Environment to add OpenCV to your user environment variables, which may or may not be necessary. Check the installation guide on OpenCV's website to determine the precise directory structure you want to add to your path. The OPENCV_DIR variable will be created/replaced, and Path will be appended with %OPENCV_DIR%\bin.

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

C:\> choco install opencv

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

C:\> choco upgrade opencv


  • tools\chocolateyinstall.ps1 Show
    $arguments = @{}
    $packageParameters = $env:chocolateyPackageParameters
    $ErrorActionPreference = 'Stop';
    $packageName= 'OpenCV'
    $toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $url        = ''
    $checksum = '55F3BA28A903118E2A4AB7A3F062226EDA9546CFF2EE89FB63CF78BD5A223006'
    $checksumType = 'sha256'
    $installationPath = Get-ToolsLocation
    if ($packageParameters) {
        $match_pattern = "\/(?<option>([a-zA-Z]+)):(?<value>([`"'])?([a-zA-Z0-9- _\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
        $option_name = 'option'
        $value_name = 'value'
        if ($packageParameters -match $match_pattern ) {
            $results = $packageParameters | Select-String $match_pattern -AllMatches
            $results.matches | % {
        else {
            Throw "Package Parameters were found but were invalid (REGEX Failure)"
        if ($arguments.ContainsKey("InstallationPath")) {
            Write-Host "You chose to unzip OpenCV in" $arguments["InstallationPath"]
            $installationPath = $arguments["InstallationPath"]
        else {
    		Write-Host "No directory specified, installing to" $installationPath
        if ($arguments.ContainsKey("Environment")) {
            Write-Host "Creating OPENCV_DIR environment variable."
            $newpath = [environment]::GetEnvironmentVariable("Path","User") + ";%OPENCV_DIR%\bin"
        else {
            Write-Host "You will need to manually create an OPENCV_DIR environment variable then add %OPENCV_DIR%\bin to your PATH.  Read the OpenCV documentation for more details."
    else {
    	Write-Host "No directory specified, installing to" $installationPath"."
    	Write-Host "To install to a specific directory, pass '/InstallationPath:C:\path\to'. OpenCV will create its own folder within the directory you passed."
    	Write-Host "You will need to manually create an OPENCV_DIR environment variable then add %OPENCV_DIR%\bin to your PATH."
        Write-Host "Alternately, you can rerun this and pass '/Environment:C:\path\to' Follow the OpenCV instructions on their website to figure out which directory you would want."
    $packageArgs = @{
    		packageName		= $packageName
    		unzipLocation	= $installationPath
    		fileType		= 'EXE'
    		url				= $url
    		checksum		= $checksum
    		checksumType	= $checksumType
    Install-ChocolateyZipPackage @packageArgs

Virus Scan Results

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.


This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Itseez


OpenCV team


Release Notes

Change log is here.

Version History

Version Downloads Last updated Status
OpenCV 4.1.0 2946 Tuesday, April 9, 2019 approved
OpenCV 4.0.1 2802 Wednesday, January 2, 2019 approved
OpenCV 4.0.0 1316 Monday, November 26, 2018 approved
OpenCV 4.0.0-rc 53 Monday, November 26, 2018 approved
OpenCV 4.0.0-beta 102 Thursday, October 25, 2018 approved
OpenCV 4.0.0-alpha 49 Wednesday, October 24, 2018 approved
OpenCV 3.4.7 42 Monday, July 29, 2019 approved
OpenCV 3.4.6 703 Tuesday, April 9, 2019 approved
OpenCV 3.4.5 78 Wednesday, January 2, 2019 approved
Show More

Discussion for the OpenCV Package

Ground rules:

  • This discussion is only about OpenCV and the OpenCV 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 OpenCV, 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 uses cookies to enhance the user experience of the site.