Download

Download OpenCV for Windows — install guide 2026

OpenCV 4.12.0 for Windows 10 and 11. Python pip install in 60 seconds, C++ Visual Studio setup, CUDA GPU acceleration and full DLL error troubleshooting.

All releases →
A quick reCAPTCHA check will appear — complete it and the download starts automatically.
Windows 10 / 11Python & C++Free (Apache 2.0)CUDA support
This is an unofficial guide. The official OpenCV project is at opencv.org.

OpenCV for Windows — the world's most popular computer vision library

OpenCV (Open Source Computer Vision Library) is a free, open-source library with over 2,500 optimised algorithms for image processing, video analysis, face detection, object tracking, machine learning and more. It supports Python, C++, Java and MATLAB. On Windows it runs on Python via pip or as a C++ library configured in Visual Studio or CMake.

Get OpenCV running in 60 seconds

cmd.exe or PowerShell
# Python (recommended for most users):
C:\> pip install opencv-python
Successfully installed opencv-python-4.12.0.86
# Verify:
C:\> python -c "import cv2; print(cv2.__version__)"
4.12.0

For C++ development see C++ / Visual Studio guide. For CUDA GPU acceleration see CUDA guide.

OpenCV on Windows — complete guide index

GuideWhat it covers
Python installpip, venv, conda, headless vs contrib
C++ / Visual Studioinclude paths, linker settings, DLL fix
CUDA / GPUCUDA build, cuDNN, GPU acceleration
Install methodspip vs conda vs source vs vcpkg
Quickstartcamera, images, video I/O
TroubleshootingDLL errors, PATH, import errors
opencv_iconv.dll fixWinError 126, missing DLL
opencv_world.dll fixC++ DLL not found
import cv2 errormodule not found, DLL load failed
CMake buildbuild from source on Windows
Contrib modulesextra modules, face recognition
VS Code setupIntelliSense, C++ extension
Conda / Anacondaconda install, environment setup
Headless modeserver use, no GUI
VideoCapturecamera open, DirectShow, MSMF
Version checkcheck and update OpenCV
Face detectionHaar cascade, DNN detector
Uninstallremove OpenCV completely
FAQall common questions

Common questions

Is OpenCV free?
Yes. OpenCV is released under the Apache 2.0 license, which allows free personal and commercial use without restrictions.
pip install opencv-python vs opencv-contrib-python?
opencv-python contains the main modules. opencv-contrib-python adds extra community modules including face recognition, text detection and more. Install contrib if you need those features. Do not install both at the same time — they conflict.
DLL load failed: WinError 126 after installing
This is the most common issue on Windows. It means a dependency DLL is missing. Fix: install Visual C++ Redistributable from microsoft.com, then pip install opencv-python --force-reinstall. Full fix at opencv_iconv.dll error guide.

Jump straight to Python setup?

pip install, venv, conda and headless packages covered.

Python guide