Ask Your Question
0

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

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

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 (https://docs.opencv.org/3.1.0/d3/d14/...), 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
2

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

LBerger gravatar image

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

First you must use last doc : your link becomes https://docs.opencv.org/master/d3/d14.... 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

Comments

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 -0600 )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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 246 times

Last updated: Jan 25 '18