Closed gasparramoa closed 3 years ago
Hi, Is there a specific reason you are building this yourself? If there is no specific reason for that then please use the code which was integrated into OpenCV
Hello @sagi-z,
I'm building it because if I use the method in python3 I get this error:
File "algorithm.py", line 93, in <module> fgbg = cv2.createBackgroundSubtractorCNT() AttributeError: module 'cv2.cv2' has no attribute 'createBackgroundSubtractorCNT'
For what I learn, in python you have to do import bgsubcnt
but you can only have access to this library if you build using the git repo right ?
Maybe I am doing something wrong that is missing me. I am using OpenCV 4.4.0 but I also have a virtual environment with OpenCV 4.5.1-pre.
opencv-contrib
installed.fgbg = cv2.bgsegm.createBackgroundSubtractorCNT()
Hello, I'm using WSL (Windows subsystem Linux), I have OpenCV installed correctly but I am not able to install the python wrapper.
I'm using Python 3.8.5 I'm using OpenCV 4.4.0 (Maybe that's because of this?)
I can successfully do the
cmake ..
command but I cannot go further than that.These are the commands that I used:
cmake -DBUILD_SHARED_LIBS=ON -DPYTHON_EXTENSION=ON -DCMAKE_BUILD_TYPE=DEBUG -DPYTHON=/usr/bin/python3 ..
output:and them I simply do:
make
output:Thanks in advance!
Gaspar