First time here? Check out the FAQ!

Ask Your Question
0

Opencv Python codes

asked Apr 9 '16

Goutham gravatar image

Hi all, In which folder Opencv python stores the source files of built in functions. I am using OS X.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Apr 9 '16

berak gravatar image

updated Apr 9 '16

the python wrappers are generated during the build phase, the output ends up in

build/modules/python2

or, for python3:

build/modules/python

there you will see:

pyopencv_generated_funcs.h
pyopencv_generated_include.h
pyopencv_generated_ns_reg.h
pyopencv_generated_types.h
pyopencv_generated_type_reg.h
Preview: (hide)

Comments

Actually i need source code for cv2.calcopticalflowfarneback function.

Goutham gravatar imageGoutham (Apr 9 '16)edit

again, opencv is a c++ library (with python wrappers). for the c++ code behind that, look at the github src

berak gravatar imageberak (Apr 9 '16)edit

well, if you expected, that you could just c/p some lines of python for this - not so.

berak gravatar imageberak (Apr 9 '16)edit

Question Tools

1 follower

Stats

Asked: Apr 9 '16

Seen: 367 times

Last updated: Apr 09 '16