I am Working on a project which uses opencv-python. Due to few specifications I had to make few code changes in the opencv code( Received from open source). Now I want the opencv-python to use the custom opencv I created ( i have stored it in bitbucket). I am installing opencv-python using
pip install git+bitbucketurl
I have stored the opencv-python source code in my private bitbucket.
Things that i have tried are
- Delete the opencv submodule from opencv-python source code and add my private opencv repo as a submodule ( have added the username and password in bitbucket link itself)
- recursively clone the opencv-python and replace the default opencv folder with my custom opencv ( with same name)
- Doing both step 1 and step 2
- Deleting the other submodules that comes with opencv-python ( multibuild , opencv-extra , opencv-contrib)
but none of the above methods worked. Somehow when i do pip install even after changing the submodule it downloads the opensource opencv instead of custom one stored at bitbucket whose link i added while creating submodule.
I used this to delete the submodule : https://stackoverflow.com/a/1260982/7545777
to add the submodule i used git submodule add customopencvurl