Ask Your Question
1

StereoSGBM missing in 2.4.5 python binding?

asked 2013-05-22 17:23:36 -0600

mistycheney gravatar image

updated 2013-05-22 18:13:11 -0600

I just installed OpenCV 2.4.5 from trunk, along with the python binding, under Ubuntu. After "import cv2", "cv2.StereoSGBM()" gave me "AttributeError: 'module' object has no attribute 'StereoSGBM'". Did anybody else encounter this problem? Thanks.

EDIT: Never mind. The stable release works fine.

edit retag flag offensive close merge delete

Comments

+1: I have the same problem, except that the pre-compiled binaries don't work on my system. I downloaded the main branch in beginning of august 2013, I'm downloading again today to check if it has been fixed.

PhilMacKay gravatar imagePhilMacKay ( 2013-10-10 13:36:17 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-10 14:16:59 -0600

PhilMacKay gravatar image

According to the documentation here, the Python binding is cv2.StereoSGBM().

Out of luck, I found that Python'S binding is actually cv2.createStereoSGBM(). It seems to be the right one because the help() functions returns:

createStereoSGBM(...)

createStereoSGBM(minDisparity, numDisparities, blockSize[, P1[, P2[, disp12M axDiff[, preFilterCap[, uniquenessRatio[, speckleWindowSize[, speckleRange[, mod e]]]]]]]]) -> retval

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-05-22 17:23:36 -0600

Seen: 1,442 times

Last updated: Oct 10 '13