Patent ID: 8233094

Claim:
A method for detecting motion using a system-on-a-chip imager comprising: obtaining motion sensitive statistics data for at least first and second image frames, wherein each image frame comprises a plurality of corresponding windows and wherein the motion sensitive statistics data includes a sharpness score for each of the corresponding windows in each image frame; for each window, determining a relative difference value using the sharpness scores from the first and second image frames; determining a number of times the relative difference value is greater than a first threshold; and determining if there is motion by comparing the number of times the relative difference value is greater than the first threshold to a second threshold, wherein the first threshold represents an amount of change in sharpness scores for a single window between image frames, wherein the second threshold represents a number of windows for which the relative difference value is greater than the first threshold, wherein the relative difference value for each window is computed as an absolute value of a difference between sharpness scores associated with that window from the first and second image frames divided by a maximum of sharpness scores associated with that window from the first and second image frames, and wherein the sharpness score for each of the corresponding windows comprises a number representing a difference between intensity values of adjacent areas in that corresponding window.