Ask Your Question

how to understand which functions available in python bindings?

asked 2012-08-21 01:25:32 -0500

mrgloom gravatar image

updated 2012-08-21 04:22:42 -0500

How to understand which functions are available in python bindings? I only found old documentation. For example which functions can be used for keypoint extraction(cv2.FeatureDetector_create and cv2.GridAdaptedFeatureDetector only)?

For example if I have c++ code I just can look in header files to understand which functions I can use, but I don't know how to do this in python bindings.

edit retag flag offensive close merge delete


Please rephrase your question. It's difficult to tell what is being asked here. Make some clear statements, and use proper punctuation.

sammy gravatar imagesammy ( 2012-08-21 02:03:59 -0500 )edit

Documentation at says which functions are C++ or Python. The problem is the site has been down for me for several days.

Rui Marques gravatar imageRui Marques ( 2012-08-21 05:51:54 -0500 )edit

for example if we go to there is only 1 line about python, where is another infromation?

mrgloom gravatar imagemrgloom ( 2012-08-21 06:30:33 -0500 )edit

OpenCV python bindings are not complete nor fully documented. If you need a specific functionality which is not yet available, you can use C++ or write your own bindings/docs and contribute them to OpenCV. After all, this is why OpenCV is opensource - everyone can contribute. You can also help development by donating at

sammy gravatar imagesammy ( 2012-08-21 07:45:27 -0500 )edit

Also I found documentation to opencv 2.1. But I still don't understand how to find functions that are already exist in python bindings. It seems the only way is to have a deeper look at source of python module.

mrgloom gravatar imagemrgloom ( 2012-08-22 02:03:59 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2013-04-11 04:55:22 -0500

berak gravatar image

updated 2013-04-11 04:57:30 -0500

  1. start the local pydoc server:

    python/lib/ -p 1234

  2. open a browser window at localhost:1234

  3. look for cv2 in lib or lib/site-packages

it won't give you the maths or an explanation how to, but at least the function signatures and the flags are there

edit flag offensive delete link more

answered 2013-04-10 23:19:49 -0500

cb20130410 gravatar image

I use dir(cv) or dir(cv2) after importing them. Anyone has a better solution since the documentation is incomplete?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2012-08-21 01:25:32 -0500

Seen: 361 times

Last updated: Apr 11 '13