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

Ubuntu 16.04 Python after install OpenCV 3.2 and OpenCV_contrib 3.2, some extra modules are missing like Tracking and sfm #8719

Closed
JohnTurnbullDai opened this issue May 11, 2017 · 3 comments
Labels
category: build/install incomplete question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org

Comments

@JohnTurnbullDai
Copy link

System information (version)
Detailed description

After installed OpenCV 3.2 and OpenCV_contrib 3.2, some extra modules are missing like Tracking and sfm, but some can be used like Xfeatures2d.
When I try to use command in python 2.7:
import cv2
help(cv2)

Help on module cv2:

NAME
cv2

FILE
/opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so

SUBMODULES
Error
aruco
bgsegm
bioinspired
cuda
datasets
detail
face
fisheye
flann
ft
hdf
instr
line_descriptor
ml
motempl
multicalib
ocl
ogl
omnidir
optflow
plot
ppf_match_3d
rgbd
saliency
structured_light
text
videostab
viz
xfeatures2d
ximgproc
xphoto

There is no Tracking module and some others. And also when I try to use command:

import cv2

tracker = cv2.Tracker_create("MIL")
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'Tracker_create'

cv2.Tracker_create
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'Tracker_create'

sift = cv2.xfeatures2d
cv2.xfeatures2d
<module 'cv2.xfeatures2d' (built-in)>

@alalek
Copy link
Member

alalek commented May 12, 2017

These (and some other) modules were disabled during build (explicitly or due missing external 3rdparty dependencies).

Usage questions should go to Users OpenCV Q/A forum: http://answers.opencv.org

@leslie-wang
Copy link

it happens in 3.3 again. Make output does show tracking is built. Header file tracking.h and tracking folder are also installed, but python doesn't have it. Same as above result. How do I tell python binding is built or not.

--   OpenCV modules:
--     To be built:                 core flann imgproc ml objdetect phase_unwrapping photo plot reg surface_matching video xphoto bgsegm dnn face freetype fuzzy img_hash imgcodecs shape videoio xobjdetect highgui superres ts bioinspired dpm features2d line_descriptor saliency text calib3d ccalib datasets rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow stitching python2

@soulslicer
Copy link
Contributor

SFM seem to be not compiled. Why is this the case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build/install incomplete question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org
Projects
None yet
Development

No branches or pull requests

5 participants