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

AttributeError: 'module' object has no attribute 'bgsegm' #42

Closed
nidhinkk opened this issue Feb 20, 2018 · 4 comments
Closed

AttributeError: 'module' object has no attribute 'bgsegm' #42

nidhinkk opened this issue Feb 20, 2018 · 4 comments

Comments

@nidhinkk
Copy link

nidhinkk commented Feb 20, 2018

This error was generated when I run the file

Running entirely on CPU
2018-02-20 11:13:14.834956: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
Finished in 5.81529521942s
Traceback (most recent call last):
File "run.py", line 30, in
tfnet.camera()
File "/home/itsme/Documents/Tracking-with-darkflow-master/Tracking-with-darkflow/darkflow/darkflow/net/help.py", line 88, in camera
fgbg = cv2.bgsegm.createBackgroundSubtractorMOG()
AttributeError: 'module' object has no attribute 'bgsegm'

Can anybody tell whats the issue?

@seovchinnikov
Copy link

seovchinnikov commented Feb 20, 2018

whats your version of opencv? bgsegm was in contrib module of opencv but im not sure what is situation now

@nidhinkk
Copy link
Author

nidhinkk commented Feb 20, 2018 via email

@seovchinnikov
Copy link

if you have not built contrib module,
pip install opencv-contrib-python

@nidhinkk
Copy link
Author

nidhinkk commented Feb 20, 2018 via email

@nidhinkk nidhinkk reopened this Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants