Skip to content

Contributing to OpenCV

OpenCV is maintained on GitHub at github.com/opencv/opencv and accepts contributions via pull requests. The opencv_contrib repository (github.com/opencv/opencv_contrib) holds extra and experimental modules — new algorithms typically start there before being promoted to the main repo. The official CONTRIBUTING.md in the main repository is a redirect to the GitHub wiki at github.com/opencv/opencv/wiki/How_to_contribute.

General Contribution Rules

Fork workflow, PR checklist, issue templates, review process, and GitHub labels.

Read more →

Code Style & PR Guidelines

C++ naming conventions, clang-format configuration, and Doxygen documentation.

Read more →

Local Testing Guide

Run accuracy and performance tests from the build folder without installing OpenCV.

Read more →

Most contributors work with three repositories:

RepositoryPurpose
github.com/opencv/opencvCore library — the main repository
github.com/opencv/opencv_contribExtra modules — new algorithms start here
github.com/opencv/opencv_extraTest data — required for running the test suite

When adding a new algorithm, it must be submitted to opencv_contrib first. After proving stability and community interest, it may be promoted to the main repository.