bgslibrary icon indicating copy to clipboard operation
bgslibrary copied to clipboard

Opencv compilation

Open mitesh741 opened this issue 2 years ago • 1 comments

Hey Do we need to compile with opencv_contrib?

Do you have list of cmake flags needed to compile opencv for bgslib ?

Also,

After installing opencv on Windows, is it okay if i install bgslib with only these commands:

python setup.py build & python setup.py install

I want to use only python wrappers. Will these commands compile and install backend C++ algorithms and create python wrappers?

Please guide me.

mitesh741 avatar Jun 01 '23 06:06 mitesh741

Hi @mitesh741 ,

To compile the C++ code for BGSLibrary successfully, it is essential to build and install the official OpenCV library, even if you only need the Python Wrapper. Please note that the opencv_contrib python package does not include the necessary C++ libraries for compiling OpenCV apps.

Once you have built the BGSLibrary, you can utilize the opencv_contrib package to run the demo scripts. However, it's important to mention that the opencv_contrib package is optional. During the compilation of the official OpenCV library, you have the option to generate the Python wrappers (also known as the cv2 package).

andrewssobral avatar Jun 01 '23 09:06 andrewssobral