Ask Your Question

MisterZylinder's profile - activity

2015-06-16 04:04:20 -0600 commented question Similar function to python module 'inspect'?

Thanks for your answer. The __doc__ or help function only return a single string providing me parameter names. What I need are the types of the input arguments. For example, I want to build a QSpinBox with PyQt if the type is integer to embed this in my widget. For this cause gen2.py seems quite promising, as it builds python lists containing the needed information. If I get to catch those lists, I will post my solution.

2015-06-11 08:13:32 -0600 asked a question Similar function to python module 'inspect'?

Hey There, python provides a module called 'inspect' which gives possibilities to retrieve function information, like number of arguments, type of arguments, and more. Unfortunately this doesn't cover imported modules implemeted in C. Parameters of a to-be-parsed C module can't be read. See python issues like http://bugs.python.org/issue1748064

My question is: Does OpenCV itself provide a similar function? I need to read arguments, eg. of cv2.Canny(...), to generate a GUI for user-friendly setting it's parameters.

Thank You