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:

  1. create base frame, compare future frames.
  2. generate edge canny edge algorithm.
  3. then generate corner points harris algorithm.
  4. 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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -