Ask Your Question
0

how to understand which functions available in python bindings?

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

mrgloom gravatar image

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

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

Comments

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

Documentation at docs.opencv.org 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 -0600 )edit

for example if we go to http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_feature_detectors.html there is only 1 line about python, where is another infromation?

mrgloom gravatar imagemrgloom ( 2012-08-21 06:30:33 -0600 )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 http://opencv.org/

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

Also I found documentation to opencv 2.1. http://opencv.willowgarage.com/documentation/python/index.html 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 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

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

berak gravatar image

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

  1. start the local pydoc server:

    python/lib/pydoc.py -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
0

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

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

Stats

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

Seen: 373 times

Last updated: Apr 11 '13