Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opencv compilation #222

Open
mitesh741 opened this issue Jun 1, 2023 · 1 comment
Open

Opencv compilation #222

mitesh741 opened this issue Jun 1, 2023 · 1 comment
Assignees
Labels

Comments

@mitesh741
Copy link

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.

@andrewssobral andrewssobral self-assigned this Jun 1, 2023
@andrewssobral
Copy link
Owner

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants