Patent ID: 8154604

Claim:
A process for detecting a camera's motion during shooting, comprising the steps of: a. providing an image data comprising consecutive first image frame and second image frame shot by the camera, wherein each of the first and second image frames comprises M number of macroblocks along a horizontal x axis and N number of macroblocks along a vertical y axis, thereby constituting a total number of MxN marcoblocks; b. comparing a marcoblock of the first image frame with a corresponding marcroblock of the second image frame to determine a motion vector MV having a component vector MVx along the x axis and a component vector MVy along the y axis; and c. calculating camera motion parameters of pan, tilt and zoom for the image data according to the following equations: pan 1 = ∑ j = 1 M / 2 ⁢ ∑ i = 1 N / 2 ⁢ MVx ⁡ ( 2 ⁢ j , 2 ⁢ i + 1 ) ⁢ ⁢ tilt 1 = ∑ j = 1 M / 2 ⁢ ∑ i = 1 N / 2 ⁢ MVy ⁡ ( 2 ⁢ j + 1 , i ) pan 2 = ∑ j = 1 M / 2 ⁢ ∑ i = 1 N / 2 ⁢ MVx ⁡ ( 2 ⁢ j , 2 ⁢ i ) ⁢ ⁢ tilt 2 = ∑ j = 1 M / 2 ⁢ ∑ i = 1 N / 2 ⁢ MVy ⁡ ( 2 ⁢ j , i ) pan = pan 1 + pan 2 ⁢ ⁢ tilt = tilt 1 + tilt 2 zoom = ⁢ ∫ ∇ · MV ⁢ ⅆ v = ⁢ ∑ j = 1 M / 2 ⁢ ∑ i = 1 N / 2 ⁢ ( ( MVx ⁡ ( 2 ⁢ j , 2 ⁢ i + 1 ) - MVx ⁡ ( 2 ⁢ j , 2 ⁢ i ) ) + ⁢ ( MVy ⁡ ( 2 ⁢ j + 1 , 2 ⁢ i ) - MVy ⁡ ( 2 ⁢ j , 2 ⁢ i ) ) ) = ⁢ ( pan 1 - pan 2 ) + ( tilt 1 - tilt 2 ) wherein the camera motion parameter pan represents the camera's motion along the x axis, the camera motion parameter tilt represents the camera's motion along the y axis, and the camera motion parameter zoom represents the camera's motion of pulling away or closing on.