i want find motion vector previous 10 frames dividing frames 8x8 subblocks , compare each block of current frame neighboring blocks of previous 10 frames.
i manipulation single frame feel difficult work n number of frames.
i need of others if knows need code of module in opencv/c++.
thanks in advance
i believe you're asking optical flow.
there two quick , easy methods optical flow in python. it's not c++, can start there , see if want to.
- lucas-kanade, uses feature descriptors found algorithm of choice (sift, surf, orb, brisk, brief, etc, etc). example linked uses shi-tomasi. of these points tracked frame frame.
- dense optical flow, farneback, gives motion of every single pixel in image. algorithm gives more information, takes longer compute.
if either of algorithms seem work, can find example code (probably googling "opencv c++ optical flow example") , working there.
Comments
Post a Comment