Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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