Ask Your Question
1

what opencv constants are available

asked 2013-03-10 12:06:23 -0600

zetah gravatar image

updated 2013-03-10 12:06:43 -0600

Hi there

I use opencv 2.4.4 from Python, and wonder what constants are used throughout cv2 functions.

I couldn't find in my source and Google pointed me to this link: https://code.ros.org/trac/opencv/browser/trunk/opencv/interfaces/swig/filtered/constants.h?rev=277

While that might be the answer, code seems 8 years old and maybe I shouldn't rely on it for reference. Is there better one?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-03-12 03:40:00 -0600

craastad gravatar image

updated 2013-03-12 08:10:22 -0600

I still have not been able to find a good comprehensive list of which constants map to which (other than reading the names). There are some constants that the names are just mapped slightly differently and some that have not even been ported yet.

I would recommend the official code samples and also this set of examples for how to use these constants in typical functions.

Update: Found the file in the github with all the constants for the cv interface. Source was here. It's still a mystery how the cv2 are generated (maybe a regex in one of these cv2 files?)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-03-10 12:06:23 -0600

Seen: 2,168 times

Last updated: Mar 12 '13