Ask Your Question

What do I do when a function exists in the C++ library but not the python library?

asked 2018-01-24 15:25:44 -0500

pluto8195 gravatar image

I'm currently working on a project involving stereo matching, in python while looking for solutions I found a tutorial containing some functions that would be useful (, but found only documentation on it for the c++ library.

What do I do in this case? Is there a way I can use these functions in python?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-01-25 01:32:49 -0500

LBerger gravatar image

updated 2018-01-25 01:36:08 -0500

First you must use last doc : your link becomes Why ? because in last documentation C++ and python function are given when you click on a link :

wls_filter = createDisparityWLSFilter(left_matcher);

you will get :

image description

If your opencv version is not 3.4 you should update it.

edit flag offensive delete link more


of course, thank you! side note will I be able to use cv2 instead of cv? if im creating a program with functions called from cv2 will there be an incompatibility?

pluto8195 gravatar imagepluto8195 ( 2018-01-29 10:52:21 -0500 )edit

I'm not python expert but you should use last version cv2. You can read this old post

LBerger gravatar imageLBerger ( 2018-01-29 11:01:59 -0500 )edit

Question Tools

1 follower


Asked: 2018-01-24 15:25:44 -0500

Seen: 80 times

Last updated: Jan 25 '18