Ask Your Question

The correct way to contribute code to OpenCV

asked 2013-01-16 10:18:43 -0500

artanis gravatar image

I am sorry to ask such a "stupid" question because I am confused by the offical documents.

Currently I have some algorithms and I want to contribute them to OpenCV. However I cannot find out a clear way to sumbit my code. Here are some ways I found from the web.

  1. Send code to (From
  2. Create a patch in Opencv DevZone and share the code (From
  3. Fork the OpenCV and provide pull requests (From

Could you please tell me which of the above ways is correct ? Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-01-16 13:11:00 -0500

The preferable way is the 3rd method. You need to fork OpenCV on Github, make changes and create pull request. Such contribution is simpler for development and integration. If you does not add OpenCV API changes use master branch as base for your request. Master branch is used for next OpenCV generation development. It is not binary compatible with 2.4. I case of incremental changes 2.4 is the better target. Only binary compatible changes are added to 2.4, because it is used for 2.4 releases.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-01-16 10:18:43 -0500

Seen: 335 times

Last updated: Jan 16 '13