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

This is not the latest version of OpenCV available.

OpenCV

3.1.0

Package test results have failed.

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

This package was approved by moderator ferventcoder on 2/19/2016.

Pass the package argument /InstallationPath to set where OpenCV will unzip itself. Left alone, it will unzip in the root C: drive. 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 stucture you want to add to your path. The OPENCVDIR variable will be created/replaced, and Path will be appended with %OPENCVDIR%\bin.

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.

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

C:\> choco install opencv --version 3.1.0

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

C:\> choco upgrade opencv --version 3.1.0

Files

Hide
  • tools\chocolateyinstall.ps1 Show
    $arguments = @{}
    $packageParameters = $env:chocolateyPackageParameters
    $ErrorActionPreference = 'Stop';
    $packageName= 'OpenCV'
    $toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $url        = 'http://iweb.dl.sourceforge.net/project/opencvlibrary/opencv-win/3.1.0/opencv-3.1.0.exe'
    $installationPath = "C:\"
    
    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 | % {
                $arguments.Add(
                $_.Groups[$option_name].Value.Trim(),
                $_.Groups[$value_name].Value.Trim())
            }
        }
        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"
            [environment]::SetEnvironmentVariable("OPENCV_DIR",$arguments["Environment"],"User")
            [environment]::SetEnvironmentVariable("Path",$newpath,"User")
        }
        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
    }
    
    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.

Dependencies

This package has no dependencies.

Maintainer(s)

Software Author(s)

  • Itseez

Tags

Release Notes

This is the first stabilization update in 3.x series. It shall be reminded that since OpenCV 3.0 we�ve changed the version enumeration scheme, so that 3.1 is the same sort of update to 3.0 as 2.4.1 was to 2.4.0.

Version History

Version Downloads Last updated Status
OpenCV 3.2.0 2976 Thursday, March 9, 2017 approved
OpenCV 3.1.0.20160701 1667 Saturday, July 2, 2016 approved
OpenCV 3.1.0 362 Thursday, February 18, 2016 approved
OpenCV 2.4.13.2 14 Thursday, November 9, 2017 approved
OpenCV 2.4.13 862 Wednesday, June 15, 2016 approved
OpenCV 2.4.9.20140518 1994 Sunday, May 18, 2014  
OpenCV 2.4.0.20130419 354 Friday, April 19, 2013  
OpenCV 2.4.0.20130418 200 Thursday, April 18, 2013  
OpenCV 2.4.0.1 236 Wednesday, April 17, 2013  
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