opencv - How to detect shift in static camera? -
i'm looking in solving problem. have static camera, focus on 1 place. download current view @ every 1 second.
i write program detects when moves camera in different direction. after generate image shift. come solution:
- create base frame, compare future frames.
- generate edge canny edge algorithm.
- then generate corner points harris algorithm.
- then want compare current frame base frame (picture, corner points on black background) calcopticalflowpyrlk (lucas-kanade method).
unfortunately have problems, because depending on lighting, number of people, etc., edges , corners change. because of don't know if there shift or not.
can give me advices solution how detect shift?
thanks :)
see opencv's standard example:
opencv/samples/cpp/phase_corr.cpp
i think looking for.
Comments
Post a Comment