Ask Your Question

MisterZylinder's profile - activity

2015-06-16 04:04:20 -0500 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 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 -0500 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

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