Ask Your Question

createStereoBM, does it or does it not exist?

asked 2017-06-09 23:15:16 -0500

Bazmundi gravatar image

The usual drill, I downloaded and installed OpenCV 3.2 on windows, moved the python hooks into site-packages, ran a few simple examples to find reports such as:

Traceback (most recent call last): File "D:\python\", line 10, in <module> stereo = cv2.createStereoBM(numDisparities=16, blockSize=15) AttributeError: 'module' object has no attribute 'createStereoBM'

Example from: http://opencv-python-tutroals.readthe...

Now evidence is createStereoBM does exist given:

Is there something missing in the import statement for cv2 perhaps?

I am running on windows 10 via python 2.7.9 (stackless).

Cheers, B

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-09 23:40:43 -0500

berak gravatar image

it's still there, just ...

>>> help(cv2.StereoBM_create)

    StereoBM_create([, numDisparities[, blockSize]]) -> retval

(if you want to see the methods, use:)

>>> help(cv2.StereoBM_create()) # make an instance

also, please prefer latest docs

edit flag offensive delete link more


Cheers, that sorted it, now I go onto next problem ;)

Bazmundi gravatar imageBazmundi ( 2017-06-10 04:38:32 -0500 )edit

Question Tools

1 follower


Asked: 2017-06-09 23:15:16 -0500

Seen: 6,088 times

Last updated: Jun 09 '17