Skip to content

Motion and tracking

All modules / video

BackgroundSubtractorclass

Base class for background/foreground segmentation. :

BackgroundSubtractorKNNclass

K-nearest neighbours - based Background/Foreground Segmentation Algorithm.

BackgroundSubtractorMOG2class

Gaussian Mixture-based Background/Foreground Segmentation Algorithm.

buildOpticalFlowPyramidfunction

Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.

calcOpticalFlowFarnebackfunction

example: samples/python/snippets/opt_flow.py

calcOpticalFlowPyrLKfunction

example: samples/cpp/lkdemo.cpp

CamShiftfunction

Finds an object center, size, and orientation.

computeECCfunction

Computes the Enhanced Correlation Coefficient (ECC) value between two images

createBackgroundSubtractorKNNfunction

Creates KNN Background Subtractor

createBackgroundSubtractorMOG2function

Creates MOG2 Background Subtractor

DenseOpticalFlowclass

example: samples/python/snippets/dis_opt_flow.py

detail_TrackerSamplerCSC_MODEclass

TrackerSampler based on CSC (current state centered), used by MIL algorithm TrackerMIL

DISOpticalFlowclass

DIS optical flow algorithm.

DISOpticalFlow_createfunction

Creates an instance of DISOpticalFlow

ECCParametersclass

struct ECCParameters is used by findTransformECCMultiScale

FarnebackOpticalFlowclass

Class computing a dense optical flow using the Gunnar Farneback's algorithm.

FarnebackOpticalFlow_createfunction

Create an owned FarnebackOpticalFlow instance with the supplied configuration.

findTransformECCfunction

example: samples/cpp/image_alignment.cpp

findTransformECC1function

example: samples/cpp/image_alignment.cpp

findTransformECCMultiScalefunction

Finds the geometric transform (warp) between two images in terms of the ECC criterion [EP08]. Uses pyramids.

findTransformECCWithMaskfunction

Finds the geometric transform (warp) between two images in terms of the ECC criterion [EP08]

KalmanFilterclass

example: samples/cpp/snippets/kalman.cpp

meanShiftfunction

example: samples/cpp/snippets/camshiftdemo.cpp

readOpticalFlowfunction

Read a .flo file

SparseOpticalFlowclass

Base interface for sparse optical flow algorithms.

SparsePyrLKOpticalFlowclass

Class used for calculating a sparse optical flow.

SparsePyrLKOpticalFlow_createfunction

Create an owned SparsePyrLKOpticalFlow instance with the supplied configuration.

Trackerclass

Base abstract class for the long-term tracker

TrackerDaSiamRPNclass

tracker da siam rpn value in the OpenCV API.

TrackerDaSiamRPN_createfunction

TrackerDaSiamRPN_create: Constructor

TrackerDaSiamRPN_create1function

TrackerDaSiamRPN_create1: Constructor

TrackerDaSiamRPN_Paramsclass

tracker da siam rpn params value in the OpenCV API.

TrackerMILclass

The MIL algorithm trains a classifier in an online manner to separate the object from the

TrackerMIL_createfunction

Create MIL tracker instance

TrackerMIL_Paramsclass

tracker mil params value in the OpenCV API.

TrackerNanoclass

the Nano tracker is a super lightweight dnn-based general object tracking.

TrackerNano_createfunction

TrackerNano_create: Constructor

TrackerNano_create1function

TrackerNano_create1: Constructor

TrackerNano_Paramsclass

tracker nano params value in the OpenCV API.

TrackerVitclass

the VIT tracker is a super lightweight dnn-based general object tracking.

TrackerVit_createfunction

TrackerVit_create: Constructor

TrackerVit_create1function

TrackerVit_create1: Constructor

TrackerVit_Paramsclass

tracker vit params value in the OpenCV API.

VariationalRefinementclass

Variational optical flow refinement

VariationalRefinement_createfunction

Creates an instance of VariationalRefinement

writeOpticalFlowfunction

Write a .flo to disk

Constants

Use the named constant from cv. In particular, OpenCV 5 matrix type codes differ from OpenCV 4.

OPTFLOW_USE_INITIAL_FLOW

optflow use initial flow constant (4), defined by OpenCV for cv.

OPTFLOW_LK_GET_MIN_EIGENVALS

optflow lk get min eigenvals constant (8), defined by OpenCV for cv.

OPTFLOW_FARNEBACK_GAUSSIAN

optflow farneback gaussian constant (256), defined by OpenCV for cv.

MOTION_TRANSLATION

motion translation constant (0), defined by OpenCV for cv.

MOTION_EUCLIDEAN

motion euclidean constant (1), defined by OpenCV for cv.

MOTION_AFFINE

motion affine constant (2), defined by OpenCV for cv.

MOTION_HOMOGRAPHY

motion homography constant (3), defined by OpenCV for cv.

DISOpticalFlow_PRESET_ULTRAFAST

disoptical flow preset ultrafast constant (0), defined by OpenCV for cv::DISOpticalFlow.

DISOPTICAL_FLOW_PRESET_ULTRAFAST

disoptical flow preset ultrafast constant (0), defined by OpenCV for cv::DISOpticalFlow.

DISOpticalFlow_PRESET_FAST

disoptical flow preset fast constant (1), defined by OpenCV for cv::DISOpticalFlow.

DISOPTICAL_FLOW_PRESET_FAST

disoptical flow preset fast constant (1), defined by OpenCV for cv::DISOpticalFlow.

DISOpticalFlow_PRESET_MEDIUM

disoptical flow preset medium constant (2), defined by OpenCV for cv::DISOpticalFlow.

DISOPTICAL_FLOW_PRESET_MEDIUM

disoptical flow preset medium constant (2), defined by OpenCV for cv::DISOpticalFlow.

detail_TrackerSamplerCSC_MODE_INIT_POS

mode for init positive samples

detail_TRACKER_SAMPLER_CSC_MODE_INIT_POS

mode for init positive samples

detail_TrackerSamplerCSC_MODE_INIT_NEG

mode for init negative samples

detail_TRACKER_SAMPLER_CSC_MODE_INIT_NEG

mode for init negative samples

detail_TrackerSamplerCSC_MODE_TRACK_POS

mode for update positive samples

detail_TRACKER_SAMPLER_CSC_MODE_TRACK_POS

mode for update positive samples

detail_TrackerSamplerCSC_MODE_TRACK_NEG

mode for update negative samples

detail_TRACKER_SAMPLER_CSC_MODE_TRACK_NEG

mode for update negative samples

detail_TrackerSamplerCSC_MODE_DETECT

mode for detect samples

detail_TRACKER_SAMPLER_CSC_MODE_DETECT

mode for detect samples