Reputation: 629
I am using python and have used anaconda to install opencv.
I am attempting to stitch three images and need to modify the stitching module for stitch function to tailor it to my need. How would I modify the opencv source code, specifically the stitching module, since it is in C++ and I only have the hpp files on my computer?
Upvotes: 1
Views: 1924
Reputation: 1098
You should be able do it as follows: 1) Download the opencv C++ sources from here: https://opencv.org/releases.html Be careful to download the exact version that is present in your python installation. 2) Make your changes to the source. 3) Build as usual. 4) Copy the .dll or .so files to you python packages directory, where your environment copied the original opencv files. Overwrite the old opencv .so/.dll files. It would be a good idea to backup the old .dll/.so files just in case!
Upvotes: 1