Chocolatey Community Coffee Break

Join the Chocolatey Team on our regular monthly stream where we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Announcing Chocolatey Central Management 0.10.0

Livestream from
Thursday, 06 October 2022

We recently released our largest update to Chocolatey Central Management so far. Join Gary and Steph to find out more about Chocolatey Central Management and the new features and fixes we've added to this release.

Watch On-Demand
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand
Chocolatey Product Spotlight: Chocolatey 1.2.0 and Chocolatey Licensed Extension 5.0.0

Livestream from
Thursday, 03 November 2022

Join Paul and Gary for this months Chocolatey product livestream where we look at the latest release of Chocolatey 1.2.0, Chocolatey Licensed Extension 5.0.0 and shine a spotlight on the new hook scripts functionality. This opens up so many possibilities for Chocolatey CLI users!

Watch On-Demand
Chocolatey Coding Livestream

Livestream from
Tuesday, 29 November 2022

Join Josh as he adds the ability to manage Chocolatey GUI config and features with the Chocolatey Ansible Collection.

Watch On-Demand
Introduction into Chocolatey with Veeam

Webinar from
Tuesday, 13 December 2022

Join Gary, Paul, and Maurice as they introduce and demonstrate how to use Chocolatey! Questions will be answered live in an Ask Me Anything format.

Watch On-Demand

Downloads:

88,159

Downloads of v 4.6.0:

5,012

Last Update:

23 Sep 2022

Package Maintainer(s):

Software Author(s):

  • Itseez

Tags:

opencv programming library image processing

OpenCV

  • 1
  • 2
  • 3

4.6.0 | Updated: 23 Sep 2022

Downloads:

88,159

Downloads of v 4.6.0:

5,012

Maintainer(s):

Software Author(s):

  • Itseez

OpenCV 4.6.0

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

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

>

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

>

To uninstall OpenCV, 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 https://community.chocolatey.org/api/v2/)


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 https://community.chocolatey.org/api/v2/. 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 opencv -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 opencv -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install opencv
  win_chocolatey:
    name: opencv
    version: '4.6.0'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'opencv' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '4.6.0'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller opencv
{
    Name     = "opencv"
    Version  = "4.6.0"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'opencv':
  ensure   => '4.6.0',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

NOTE

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

Package Approved

This package was approved as a trusted package on 24 Sep 2022.

Description

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 225 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 opencv.org 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.


tools\chocolateyinstall.ps1
$arguments = @{}
$packageParameters = $env:chocolateyPackageParameters
$ErrorActionPreference = 'Stop';
$packageName= 'OpenCV'
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url        = 'https://github.com/opencv/opencv/releases/download/4.6.0/opencv-4.6.0-vc14_vc15.exe'
$checksum = '3fb046e14dc5b50719a86ea0395b5b1e3299e2343111ebd2e31828aa31d6d477'
$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 | % {
            $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
		checksum		= $checksum
		checksumType	= $checksumType
}

Install-ChocolateyZipPackage @packageArgs

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
OpenCV 4.5.5 12231 Tuesday, January 4, 2022 Approved
OpenCV 4.5.4 1625 Tuesday, December 7, 2021 Approved
OpenCV 4.5.3 5991 Tuesday, July 6, 2021 Approved
OpenCV 4.5.2 4086 Wednesday, April 7, 2021 Approved
OpenCV 4.5.1 1987 Wednesday, March 10, 2021 Approved
OpenCV 4.5.0 292 Wednesday, March 10, 2021 Approved
OpenCV 4.4.0 188 Wednesday, March 10, 2021 Approved
OpenCV 4.3.0 74 Wednesday, March 10, 2021 Approved
OpenCV 4.2.0 173 Tuesday, March 16, 2021 Approved
OpenCV 4.1.2 9539 Sunday, October 20, 2019 Approved
OpenCV 4.1.1 2355 Monday, July 29, 2019 Approved
OpenCV 4.1.0 8698 Tuesday, April 9, 2019 Approved
OpenCV 4.0.1 2981 Wednesday, January 2, 2019 Approved
OpenCV 4.0.0 1532 Monday, November 26, 2018 Approved
OpenCV 4.0.0-rc 232 Monday, November 26, 2018 Approved
OpenCV 4.0.0-beta 258 Thursday, October 25, 2018 Approved
OpenCV 4.0.0-alpha 211 Wednesday, October 24, 2018 Approved
OpenCV 3.4.16 670 Tuesday, December 7, 2021 Approved
OpenCV 3.4.15 234 Tuesday, July 6, 2021 Approved
OpenCV 3.4.14 223 Wednesday, April 7, 2021 Approved
OpenCV 3.4.13 106 Wednesday, March 10, 2021 Approved
OpenCV 3.4.12 66 Wednesday, March 10, 2021 Approved
OpenCV 3.4.11 68 Wednesday, March 10, 2021 Approved
OpenCV 3.4.10 94 Wednesday, March 10, 2021 Approved
OpenCV 3.4.9 136 Tuesday, March 16, 2021 Approved
OpenCV 3.4.8 975 Sunday, October 20, 2019 Approved
OpenCV 3.4.7 489 Monday, July 29, 2019 Approved
OpenCV 3.4.6 1173 Tuesday, April 9, 2019 Approved
OpenCV 3.4.5 253 Wednesday, January 2, 2019 Approved
OpenCV 3.4.4 281 Monday, November 26, 2018 Approved
OpenCV 3.4.3 1069 Wednesday, October 24, 2018 Approved
OpenCV 3.4.2 1198 Friday, July 27, 2018 Approved
OpenCV 3.4.1 4214 Sunday, March 11, 2018 Approved
OpenCV 3.4.0 1279 Tuesday, January 9, 2018 Approved
OpenCV 3.3.1 888 Wednesday, November 29, 2017 Approved
OpenCV 3.3.0 1580 Thursday, November 9, 2017 Approved
OpenCV 3.2.0 3558 Thursday, March 9, 2017 Approved
OpenCV 3.1.0.20160701 2075 Saturday, July 2, 2016 Approved
OpenCV 3.1.0 740 Thursday, February 18, 2016 Approved
OpenCV 2.4.13.6 573 Sunday, March 11, 2018 Approved
OpenCV 2.4.13.5 327 Thursday, January 18, 2018 Approved
OpenCV 2.4.13.4 347 Tuesday, January 9, 2018 Approved
OpenCV 2.4.13.3 334 Tuesday, November 28, 2017 Approved
OpenCV 2.4.13.2 329 Thursday, November 9, 2017 Approved
OpenCV 2.4.13 2414 Wednesday, June 15, 2016 Approved
OpenCV 2.4.9.20140518 2380 Sunday, May 18, 2014 Approved
OpenCV 2.4.0.20130419 659 Friday, April 19, 2013 Approved
OpenCV 2.4.0.20130418 524 Thursday, April 18, 2013 Approved
OpenCV 2.4.0.1 569 Wednesday, April 17, 2013 Approved
OpenCV 2.4.0 869 Wednesday, April 17, 2013 Approved

OpenCV 4.6.0 has been released.

:hammer_and_wrench: Change log is here.

sha256 sums for packages:


b1f0002af4792866edbfde6a85346deb78a79c68b019f2d6f13cee7e08cef0aa  opencv-4.6.0-android-sdk.zip

b363dbf9d775afe2e31967d3b2041a0f1efcde6647ce0121422c2dfb64f1ce5b  opencv-4.6.0-docs.zip

e4dc3e29d490c64e39aeaf61661635790232ba646656e6603dfe12786f36ab93  opencv-4.6.0-ios-framework.zip

3fb046e14dc5b50719a86ea0395b5b1e3299e2343111ebd2e31828aa31d6d477  opencv-4.6.0-vc14_vc15.exe

All changes: https://github.com/opencv/opencv/compare/4.5.5...4.6.0


This package has no dependencies.

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