Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

return variable output and format on OpenCV2 python

I'm having some trouble understanding retval on some function in OpenCV2, some of it will only returning one variable and another returning up to four variable.

I want to understand what type of data it returning, such as BoundingRectwill returning x,y,width, height. and cv2.useOptimized will return 1 or 0 instead. how can i determine type of output (boolean, array, image, etc) from OpenCV manual?

should i determine the output from it's C++ function?

click to hide/show revision 2
retagged

updated 2016-08-30 01:18:58 -0600

berak gravatar image

return variable output and format on OpenCV2 python

I'm having some trouble understanding retval on some function in OpenCV2, some of it will only returning one variable and another returning up to four variable.

I want to understand what type of data it returning, such as BoundingRectwill returning x,y,width, height. and cv2.useOptimized will return 1 or 0 instead. how can i determine type of output (boolean, array, image, etc) from OpenCV manual?

should i determine the output from it's C++ function?

return variable output and format on OpenCV2 python

I'm having some trouble understanding retval on some function in OpenCV2, some of it will only returning one variable and another returning up to four variable.

I want to understand what type of data it returning, such as BoundingRectwill returning x,y,width, height. and cv2.useOptimized will return 1 or 0 instead. how can i determine type of output (boolean, array, image, etc) from OpenCV manual?

should i determine the output from it's C++ function?

retval return variable output and format on OpenCV2 python

I'm having some trouble understanding retval on some function in OpenCV2, some of it will only returning one variable and another returning up to four variable.

I want to understand what type of data it returning, such as BoundingRectwill returning x,y,width, height. and cv2.useOptimized will return 1 or 0 instead. how can i determine type of output (boolean, array, image, etc) from OpenCV manual?

should i determine the output from it's C++ function?