Ask Your Question
0

createOptFlow_DeepFlow function in python opencv?

asked 2015-12-10 00:03:24 -0600

Goutham gravatar image

Is there a function like createOptFlow_DeepFlow in opencv python for optical flow calculation?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-12-10 00:14:28 -0600

berak gravatar image

yes, there is createOptFlow_DeepFlow in opencv3 / python.

you will need to build with the opencv_contrib repo , then it is in cv2.optflow:

>>> help(cv2.optflow)
Help on module cv2.optflow in cv2:

NAME
    cv2.optflow

FILE
    (built-in)

FUNCTIONS
    calcOpticalFlowSF(...)
        calcOpticalFlowSF(from, to, layers, averaging_block_size, max_flow[, fl
w]) -> flow  or  calcOpticalFlowSF(from, to, layers, averaging_block_size, max_
low, sigma_dist, sigma_color, postprocess_window, sigma_dist_fix, sigma_color_f
x, occ_thr, upscale_averaging_radius, upscale_sigma_dist, upscale_sigma_color,
peed_up_thr[, flow]) -> flow

    calcOpticalFlowSparseToDense(...)
        calcOpticalFlowSparseToDense(from, to[, flow[, grid_step[, k[, sigma[,
se_post_proc[, fgs_lambda[, fgs_sigma]]]]]]]) -> flow

    createOptFlow_DeepFlow(...)
        createOptFlow_DeepFlow() -> retval

    createOptFlow_Farneback(...)
        createOptFlow_Farneback() -> retval

    createOptFlow_SimpleFlow(...)
        createOptFlow_SimpleFlow() -> retval

    createOptFlow_SparseToDense(...)
        createOptFlow_SparseToDense() -> retval

    readOpticalFlow(...)
        readOpticalFlow(path) -> retval

    writeOpticalFlow(...)
        writeOpticalFlow(path, flow) -> retval
edit flag offensive delete link more

Comments

How it is possible in opencv 2.4.10.1?? How can i build using opencv_contrib? I am new to this, please help.

Goutham gravatar imageGoutham ( 2015-12-10 00:33:52 -0600 )edit

no, it is not possible with opencv2.4, you need opencv3 + contrib

berak gravatar imageberak ( 2015-12-10 00:44:51 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-12-10 00:03:24 -0600

Seen: 1,359 times

Last updated: Dec 10 '15