Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

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

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
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

Downloads:

144,784

Downloads of v 4.11.0:

188

Last Update:

09 Jan 2025

Package Maintainer(s):

Software Author(s):

  • Itseez

Tags:

opencv programming library image processing

OpenCV

  • 1
  • 2
  • 3

4.11.0 | Updated: 09 Jan 2025

Downloads:

144,784

Downloads of v 4.11.0:

188

Maintainer(s):

Software Author(s):

  • Itseez

OpenCV 4.11.0

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Itseez. The inclusion of Itseez trademark(s), if any, upon this webpage is solely to identify Itseez goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

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.11.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.11.0'
end

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


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

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


package { 'opencv':
  ensure   => '4.11.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 by moderator Windos on 10 Jan 2025.

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 176 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 depending on your specific needs. 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.

Examples

Add the install path to your environment: choco install opencv --package-parameters '/Environment'
Install to a specific directory: choco install opencv --package-parameters '/InstallationPath:'C:\test'
Install to a specific directory and add to your environment: choco install opencv --package-parameters '/InstallationPath:'C:\test' /Environment'


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.11.0/opencv-4.11.0-windows.exe'
$checksum = '7c9d1c0b70db1b1952cc815252fced9a07f51267563cf3eaa1674d734c49b8e4'
$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.10.0 11968 Monday, June 3, 2024 Approved
OpenCV 4.9.0 8580 Tuesday, January 2, 2024 Approved
OpenCV 4.8.1 3541 Thursday, October 5, 2023 Approved
OpenCV 4.8.0 537 Saturday, October 7, 2023 Approved
OpenCV 4.7.0 5655 Wednesday, May 31, 2023 Approved
OpenCV 4.6.0 10976 Friday, September 23, 2022 Approved
OpenCV 4.5.5 13052 Tuesday, January 4, 2022 Approved
OpenCV 4.5.4 1803 Tuesday, December 7, 2021 Approved
OpenCV 4.5.3 6050 Tuesday, July 6, 2021 Approved
OpenCV 4.5.2 4555 Wednesday, April 7, 2021 Approved
OpenCV 4.5.1 3309 Wednesday, March 10, 2021 Approved
OpenCV 4.5.0 397 Wednesday, March 10, 2021 Approved
OpenCV 4.4.0 258 Wednesday, March 10, 2021 Approved
OpenCV 4.3.0 134 Wednesday, March 10, 2021 Approved
OpenCV 4.2.0 257 Tuesday, March 16, 2021 Approved
OpenCV 4.1.2 9645 Sunday, October 20, 2019 Approved
OpenCV 4.1.1 2454 Monday, July 29, 2019 Approved
OpenCV 4.1.0 11854 Tuesday, April 9, 2019 Approved
OpenCV 4.0.1 3061 Wednesday, January 2, 2019 Approved
OpenCV 4.0.0 1599 Monday, November 26, 2018 Approved
OpenCV 4.0.0-rc 309 Monday, November 26, 2018 Approved
OpenCV 4.0.0-beta 331 Thursday, October 25, 2018 Approved
OpenCV 4.0.0-alpha 270 Wednesday, October 24, 2018 Approved
OpenCV 3.4.16 1983 Tuesday, December 7, 2021 Approved
OpenCV 3.4.15 294 Tuesday, July 6, 2021 Approved
OpenCV 3.4.14 270 Wednesday, April 7, 2021 Approved
OpenCV 3.4.13 238 Wednesday, March 10, 2021 Approved
OpenCV 3.4.12 115 Wednesday, March 10, 2021 Approved
OpenCV 3.4.11 130 Wednesday, March 10, 2021 Approved
OpenCV 3.4.10 305 Wednesday, March 10, 2021 Approved
OpenCV 3.4.9 206 Tuesday, March 16, 2021 Approved
OpenCV 3.4.8 1048 Sunday, October 20, 2019 Approved
OpenCV 3.4.7 557 Monday, July 29, 2019 Approved
OpenCV 3.4.6 1295 Tuesday, April 9, 2019 Approved
OpenCV 3.4.5 323 Wednesday, January 2, 2019 Approved
OpenCV 3.4.4 353 Monday, November 26, 2018 Approved
OpenCV 3.4.3 1143 Wednesday, October 24, 2018 Approved
OpenCV 3.4.2 1278 Friday, July 27, 2018 Approved
OpenCV 3.4.1 12060 Sunday, March 11, 2018 Approved
OpenCV 3.4.0 1357 Tuesday, January 9, 2018 Approved
OpenCV 3.3.1 2523 Wednesday, November 29, 2017 Approved
OpenCV 3.3.0 1654 Thursday, November 9, 2017 Approved
OpenCV 3.2.0 3644 Thursday, March 9, 2017 Approved
OpenCV 3.1.0.20160701 2158 Saturday, July 2, 2016 Approved
OpenCV 3.1.0 827 Thursday, February 18, 2016 Approved
OpenCV 2.4.13.6 724 Sunday, March 11, 2018 Approved
OpenCV 2.4.13.5 427 Thursday, January 18, 2018 Approved
OpenCV 2.4.13.4 428 Tuesday, January 9, 2018 Approved
OpenCV 2.4.13.3 402 Tuesday, November 28, 2017 Approved
OpenCV 2.4.13.2 390 Thursday, November 9, 2017 Approved
OpenCV 2.4.13 2500 Wednesday, June 15, 2016 Approved
OpenCV 2.4.9.20140518 2465 Sunday, May 18, 2014 Approved
OpenCV 2.4.0.20130419 728 Friday, April 19, 2013 Approved
OpenCV 2.4.0.20130418 595 Thursday, April 18, 2013 Approved
OpenCV 2.4.0.1 638 Wednesday, April 17, 2013 Approved
OpenCV 2.4.0 943 Wednesday, April 17, 2013 Approved

version:4.11.0

January, 2025

New Year update for OpenCV 4.x has been released.

  • Generic:

    • Internal C API cleanup and back-ports for 5.x.
    • RISC-V/AArch64: disable CPU features detection #25901
    • Support C++20 standard #26590
    • algoHint parameter for some functions to allow potentially faster, but not bit-exact implementation
  • Core Module:

    • Added int64 data type support for FileStorage #26434
    • Fixed invalid attribute value handling in FileStorage #25955.
    • Extended LUT for FP16 support #25787.
    • Fixed stdDev tail filling with zeros with HAL in meanStdDev #25789.
    • Set and check allocator pointer for all cv::Mat instances #25979
    • Improved accuracy of Rect::contains #26022
    • Fixed result offset in minMaxIdx with HAL in some cases #26080
    • Replaced C++ operators with wrapper functions on universal intrinsics backends #26109
    • Extended cv::TickMeter #26212
    • Rewrote OpenCL-OpenGL-interop device discovery routine without extensions and with Apple support #26281
    • Marked cv::Mat(Mat&&) as noexcept #25899
    • Multiple Eigen library interop improvements #25751.
  • Calib3d module:

    • Multiple chessboard detector improvements #25427, #25807, #25991, #26014
    • Enabled checkerboard detection with a central / corner marker on a black tile #25808
    • Fixed Rodrigues CV_32F and CV_64F type mismatch in projectPoints #25824
    • Added fisheye::distort with non-identity projection matrix #25943
    • SQPnP solver updates #26219
    • Fixed vector access in USAC #26530
  • Imgproc Module:

    • Added a new function that approximates the polygon bounding a convex hull with a certain number of sides #25607
    • Added Weighted Hough Transform #21407
    • Fixed bug in contours approximation #25672
    • Fixed bug in divSpectrums #25738
    • Fixed result buffer overflow in intersectConvexConvex_ for non-convex input #25725.
    • Added flag to GaussianBlur for faster but not bit-exact implementation #25792
    • Added flag to cvtColor for faster but not bit-exact implementation #25932
    • Fixed fillPoly drawing over boundaries #26187
  • DNN Module:

    • [GSoC] Blockwise quantization support #25644
    • Faster implementation of blobFromImages for cpu nchw output #26127
    • DNN optimization with RISC-V RVV #25883.
    • Added DepthToSpace and SpaceToDepth #25779
    • Yolo v10 support and related samples #25794
    • Parallel implementation of nary elementwise operations #25630
    • Support for Unflatten operation required by Attention layer #25861
    • Erf and GELU layers optimization #25147
    • Activations optimization with v_exp #25881
    • Fixed compilation errors with different OpenVINO versions #25987
    • Fixed matmul crash with CuDNN #26029
    • Fixed CuDNN runtime version check for CuDNN 9+ #25841.
    • Added ONNX TopK #23279
    • Fixed buffer allocation in einsum (fixed random crash on 32-bit platforms) #26059
    • Added Leaky RELU support for TFLite #26132.
    • Switched to run-time dispatcher for Winograd #26155
  • Objdetect module:

    • Properly check markers when none are provided #25938.
    • Fixed invalid vector access in QR decoder and encoder #26532
  • Highgui module:

    • Added new Highgui backend on top of Framebuffer #25661
    • Fixed HWND_TOP widnowss handling on Windows #25836
    • [GSoC] Added OpenGL support with GTK3 #25822
    • Several OpenGL related fixed on Linux #25865, #22836
    • Fixed leak in cvGetWindowRect_COCOA #26625
  • Imgcodecs module:

    • [GSoC] New API for Animations with WEBP, AVIF and Animated PNG support #25608, #25715.
    • [GSoC] Add GIF decode and encode for imgcodecs #25691
    • Added experimental JPEG XL (jxl) codec support #26379
    • Initial RGB layout support in imread and imdecode #25809
    • Fixed imread output type for some cases #25703
    • Fixed file descriptor leak in HDR decoder #25838
    • Fixed corrupted JPEG decoding #25864
    • Improved error handling in image codecs #25975
    • Fixed Bayer2Gray SIMD for U8 #25968
    • Avoid uninitialized value read in AVIF #26084
    • Implemented imencodemulti() #26211
    • Fixed compatibility with different OpenEXR versions #26478.
  • VideoIO module:

    • Added VideoCapture constructor for in-memory data stream #25584
    • Fixed bugs in native video encoding on Android #25716.
    • Added BGRA streams support in GStreamer back-end #25602.
    • Updated materials for Orbbec cameras support #25813, #25845, 25907
    • Fixed cv::VideoWriter with FFmpeg timestamps encapsulation #25874
    • Fixed memory leak in Dshow back-end #26045
    • Fixed V4L NV12 color conversion #26081
    • Android native camera feature enhancements #26627
    • AndroidMediaNdkCapture pixel format enhancement #26656
    • Fixed VideoCapture fails to read single image with digits in name #26637
    • Fixed writer setProperty with FFmpeg plugin #26652
  • Video module:

    • Fixed VitTrack in the case where crop size grows until out-of-memory when the input is black #25771
  • Features2d:

    • Fixed out of bounds access in SIFT #26148
  • G-API module:

    • Fixed input buffer read overflow in vectorized G-API convertTo implementation #25780.
    • Extended G-API onnx::Params to pass arbitrary session options #25791
    • Handling I32/I64 data types in G-API ONNX back-end #25817
    • G-API: Introduce level optimization flag for ONNXRT backend #26293
  • Optimizations:

    • New FastCV-based HAL for Qualcomm SoCs (-DWITH_FASTCV=ON CMake option) #26556, #26617, 26619, 26621.
    • Added own vectorized version of v_exp #24941, v_log #25781, v_erf #25872, v_sin and v_cos #25892,
    • KleidiCV HAL for ARM updated to KleidiCV 0.3 #26623.
    • Initial version of HAL for RISC-V RVV 1.0 and RISC-V RVV 0.7.1 extensions #26216, #26624, 26675.
    • Used LMUL=2 in the RISC-V Vector (RVV) backend of Universal Intrinsic. #26318
    • More functions in NDSRVP HAL for RISC-V P extension #25786, #26088, #26364.
    • Updated built-in IPP to version 2021.12. Fixed build issues with old and new Intel IPP layouts #25773
  • Platforms:

    • HWAsan support on Android #25746
    • Several CUDA fixes for old GPUs without FP16 support #25880
    • Added getStdAllocator() to cvcudaGpuMat #25978
    • Updated NPP calls to use the new NppStreamContext API if available #26245
    • More convenient GpuMatND constructor #26472
    • Added run-time GPU check to haveCUDA #26164.
    • Add support for QNX #25832
  • OpenCV.js

    • Extended API white-list and added more tests #26387
    • Split white-list per module. Added opportunity to cover opencv_contrib modules #25986
    • Fix incorrect string format in js build script #26374
    • Emscripten build fixes with SIMD intrinsics #26537
    • Added more public types for USAC support #26638
    • Rename Mat::clone binding because it is used in Emscripten #26643
    • Fixed C preprocessor stringification #26644
    • Fix enum generation issues #26147
    • Multiple test improvements #25732, #25757, #25961

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