K K
K K

Reputation: 363

python: Find camera shift angle using a reference image and current image from the camera

I have a reference image captured from a cc-camera and need to capture current image from the cc-camera to check if the camera is shifted or not at regular intervals. If shifted, the shift angle must also be needed. How can I achieve this using python? Is the cv2.phaseCorrelate() function be helpful for this. Please give me some suggestions. Thank you.

Upvotes: 1

Views: 550

Answers (1)

bitbrain 003
bitbrain 003

Reputation: 107

Use of hanning window will be more accurate for getting the phase values. Use phase correlate function with the window will give you a right phase shift.

Upvotes: 1

Related Questions