# US 2015/0146022 A1 · Rapid shake detection using a cascade of quad-tree motion detectors

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0146022 A1
- Document ID: US20150146022A1
- Status: Published application
- Kind: A1
- Application number: 14/551,581
- Filed: 2014-11-24
- Published: 2015-05-28
- Earliest claimed: 2013-11-25
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: QUANG TUAN PHAM; AMIT KUMAR GUPTA
- Web page: https://patentgrep.com/patent/US20150146022A1

## CPC

- H04N 23/6811: {based on the image signal}
- G06T 7/207: for motion estimation over a hierarchy of resolutions (multi-resolution motion estimation or hierarchical motion estimation for coding, decoding, compressing or decompressing digital video signals H04N19/53)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method of determining stability of a camera comprises capturing an image with the camera and then (A) determining a magnitude of motion for each region of a current sub-division of the image. A step (B) then determines a number of the magnitudes of motion not larger than a magnitude threshold associated with the current sub-division, and where the determined number is greater than or equal to a region threshold associated with the number of regions in the current sub-division, (i) determining the camera to be stable, or otherwise (ii) dividing the current sub-division of the image into a further sub-division and repeating steps (A) and (B) upon the further sub-division.

## Claims

### Claim 1

A method of detecting shake of a camera, comprising:
capturing an image with the camera;
determining a magnitude of a motion from at least the image;
where the determined magnitude of motion is not larger than a first threshold, determining the camera to be stable;
where the determined magnitude of motion is larger than the first threshold, determining if a magnitude of motion for each of a number of blocks of the image is larger than at least one further threshold; and
determining the shake of camera based on a number of the motions having a magnitude exceeding the at least one further threshold.

### Claim 2 (depends on 1)

A method according to claim 1, wherein the at least one further threshold comprises a second threshold associated with a quadtree level 2 number of blocks, and a third threshold associated with a quadtree level 3 number of blocks.

### Claim 3 (depends on 1)

A method according to claim 1, wherein the first threshold is smaller than the at least one further threshold.

### Claim 4 (depends on 1)

A method according to claim 1, wherein the motion between corresponding blocks in the image is computed from correlation of image projection profiles.

### Claim 5 (depends on 4)

A method according to claim 4, wherein the image projection profiles comprise a sum of image intensities along a projection direction of the image projection profiles.

### Claim 6 (depends on 4)

A method according to claim 4, wherein the image projection profiles comprise a sum of image gradient magnitudes along a projection direction of the image projection profiles.

### Claim 7 (depends on 4)

A method according to claim 4, wherein the image projection profiles are complex with a real component and an imaginary component being one of (i) a sum of image intensities along a projection direction of the image projection profiles, and (ii) a sum of image gradient magnitudes along the projection direction.

### Claim 8 (depends on 4)

A method according to claim 4, wherein the image projection profiles are pre-computed for quadtree blocks at a finest level, from which image projection profiles for quadtree blocks at coarser levels are derived.

### Claim 9

A method of detecting shake of a camera, comprising:
segmenting a previous image captured by the camera into a foreground region and a background region;
estimating a background region of a current image using tracking of the foreground region of the previous image;
determining an amount of motion in the current image from the estimated background region of the current image and the background region of the previous image; and
determining the shake of camera based on the determined amount of motion from the background region of the current image.

### Claim 10 (depends on 9)

A method according to claim 9, wherein the determining the shake of the camera comprises using the determined amount of motion to warp the current image into alignment with the previous image, and detecting change in the aligned current image.

### Claim 11 (depends on 10)

A method according to claim 10 further comprising updating the background region with the detected change for application to a subsequent image.

### Claim 12

A method of detecting changed regions in a video, comprising:
determining whether a current frame of the video is a shaky frame or a non-shaky frame;
detecting changed regions using one set of parameters where the current frame is a non-shaky frame; and
detecting changed regions using a different set of parameters where the current frame is a shaky frame.

### Claim 13

A method of detecting changed pixels in a video using a background model, comprising:
obtaining a previously detected foreground mask from a previous frame of the video;
tracking the foreground mask from the previous frame to a probable foreground region in a current frame of the video;
selecting a plurality of image blocks in the current frame outside the probable foreground region;
determining a plurality of motion vectors from the selected plurality of image blocks of the current frame and corresponding image blocks of a reference frame;
determining a global motion of the current frame with respect to the reference frame using the determined motion vectors;
warping the current frame using the determined global motion to correct for misalignment between the current frame and the reference frame;
performing change detection of the current frame using the warped frame and the background model; and
updating the background model using change detection results of the current frame.

### Claim 14 (depends on 13)

A method according to claim 13 wherein the reference frame comprises a background model of a previous frame of the video.

### Claim 15

A method of determining stability of a camera, comprising:
capturing an image with the camera;
(A) determining a magnitude of motion for each region of a current sub-division of the image;
(B) determining a number of the magnitudes of motion not larger than a magnitude threshold associated with the current sub-division, and where the determined number is greater than or equal to a region threshold associated with the number of regions in the current sub-division, (i) determining the camera to be stable, or otherwise (ii) dividing the current sub-division of the image into a further sub-division, and repeating steps (A) and (B) upon the further sub-division.

### Claim 16 (depends on 15)

A method according to claim 15 wherein step (A) is performed at least twice.

### Claim 17 (depends on 15)

A method according to claim 15 wherein the sub-division is a global cascading quad-tree sub-division.

### Claim 18 (depends on 17)

A method according to claim 17 wherein, where, after three traversals of step (B) the camera is not determined to be stable, the camera is deemed to be unstable.

### Claim 19

Apparatus for detecting shake of a camera, the apparatus comprising:
an input for an image captured with the camera;
a processor coupled to the input and configured to:
determine a magnitude of a motion from at least the image, and where the determined magnitude of motion is not larger than a first threshold, determining the camera to be stable; and
where the determined magnitude of motion is larger than the first threshold, determining if a magnitude of motion for each of a number of blocks of the image is larger than at least one further threshold, and determining the shake of camera based on the number of motions having a magnitude exceeding the at least one further threshold.

### Claim 20 (depends on 19)

Apparatus according to claim 19 wherein the apparatus is one of (i) formed within the camera, (ii) a computing device to which the camera can be coupled, and (iii) a server computer to which the camera couples via a network, and the input includes a memory into which the image captured from the camera is stored.
