# US 2010/0166055 A1 · Face Detection System for Video Encoders

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

- Number: US 2010/0166055 A1
- Document ID: US20100166055A1
- Status: Published application
- Kind: A1
- Application number: 12/347,927
- Filed: 2008-12-31
- Published: 2010-07-01
- Earliest claimed: 2008-12-31
- Assignees: Advanced Micro Devices, Inc.
- Inventors: Michael L. Schmit; Raja Koduri; Carrell Ray Killebrew
- Web page: https://patentgrep.com/patent/US20100166055A1

## CPC

- H04N 19/115: Selection of the code volume for a coding unit prior to coding
- H04N 19/124: Quantisation
- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/17: the unit being an image region, e.g. an object
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/61: in combination with predictive coding
- H04N 19/85: using pre-processing or post-processing specially adapted for video compression
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Embodiments include a codec for use in a videoconferencing or similar system includes a video encoder pipeline that has a pre-processor component that is optimized to detect faces and compress the facial video data in an optimum manner. The codec has a pre-processing step that analyzes each frame on a per macroblock basis to determine the mathematical activity level per block. The activity level calculation is used as a parameter to the bitrate control module of the encoder to control the quantization, and thus the fine grained quality of the output data. An object detection module (e.g., a face detector) is placed in the pre-processing step. The object detection data is then combined with the activity level and object detection certainty value through a combinatorial algorithm comprising a weighted average or normalized multiplication process.

## Claims

### Claim 1

A method comprising:
receiving digital video frames of an image including one or more objects in a scene, wherein the frames comprise a plurality of blocks defined by an encoding scheme;
detecting an object of the one or more objects through an object detection process to derive object detection data;
determining a mathematical activity level for each block of each frame;
combining the object detection data with the mathematical activity level to determine bit allocation value; and
using the bit allocation value to determine a number of bits to encode the detected object.

### Claim 2 (depends on 1)

The method of claim 1 wherein the object is a face of a person in the scene, and wherein the object detection process comprises a face detection process.

### Claim 3 (depends on 2)

The method of claim 2 wherein the face detection process provides face data comprising location data for the face within the scene as one of spatial coordinate data or bitmap data.

### Claim 4 (depends on 3)

The method of claim 3 wherein the face data further comprises the level of object detection certainty of the face.

### Claim 5 (depends on 1)

The method of claim 1 wherein the mathematical activity level is provided as an activity map indicating an amount of change among pixels in each block of the plurality of blocks.

### Claim 6 (depends on 5)

The method of claim 5 wherein a region of relatively high activity in the activity map corresponds to a block containing an area of high contrast between pixels within the block.

### Claim 7 (depends on 5)

The method of claim 5 wherein the combining step comprises multiplying the activity map data with the face data and applying a normalization factor to produce a bitrate allocation parameter.

### Claim 8 (depends on 7)

The method of claim 7 further comprising:
performing a motion estimation process on the digital video frames to produce one or more motion vectors that represent a degree of change of pixels from a first frame to a second frame in the consecutive frames of the image; and
combining the motion vectors with the face data and activity map data.

### Claim 9 (depends on 1)

The method of claim 1 wherein the plurality of blocks comprises macroblocks, and the encoding scheme comprises the MPEG-4 AVC (Advanced Video Coding) scheme.

### Claim 10 (depends on 9)

The method of claim 9 wherein the macroblocks are of a size corresponding to one of 16×16 pixels, 8×8 pixels, or 4×4 pixels.

### Claim 11

An apparatus comprising:
an input stage receiving digital video data consisting of image frames depicting one or more objects in a scene;
an object detector coupled to the input stage and detecting the presence of a defined object of the one or more objects to generate object data comprising location information of the object within the scene;
a pre-processor coupled to the object detector and analyzing the image frames to determine an amount of mathematical activity in each of a defined number of blocks of the image frames to generate activity data;
a combinatorial logic circuit combining the object data and the activity data to generate a bitrate allocation parameter; and
a bitrate control module coupled to the combinatorial logic circuit assigning a number of bits to encode the object using the bitrate allocation parameter.

### Claim 12 (depends on 11)

The apparatus of claim 11 wherein the digital video data comprises video data generated in a videoconference system, the system comprising:
a video capture device;
a video encoder system receiving data from the video capture device and compressing the data according to an encoding specification;
a transmission link coupled to the video encoder system; and
a video decoder system receiving the compressed data over the transmission link and decoding the compressed data in accordance with the encoding specification.

### Claim 13 (depends on 12)

The apparatus of claim 12 encoding specification comprises the MPEG-4 AVC (Advanced Video Coding) scheme.

### Claim 14 (depends on 13)

The apparatus of claim 13 wherein the object is a face of a person in the scene, and wherein the object detector comprises a face detector, and further wherein the face detector provides face data comprising location data for the face within the scene as one of spatial coordinate data or bitmap data, and a level of object detection certainty of the face.

### Claim 15 (depends on 11)

The apparatus of claim 11 wherein the amount of mathematical activity in each of a defined number of blocks is provided as an activity map indicating an amount of change among pixels in each block of the plurality of blocks.

### Claim 16 (depends on 15)

The apparatus of claim 15 wherein the combinatorial logic circuit multiplies the activity map data with the face data and applying a normalization factor to produce a bitrate allocation parameter.

### Claim 17 (depends on 16)

The apparatus method of claim 16 further comprising a motion estimation component receiving the digital video frames and producing one or more motion vectors that represent a degree of change of pixels from a first frame to a second frame in the consecutive frames of the image, and providing the motion vectors to the combinatorial logic circuit for combination with the face data and activity map data.

### Claim 18

A method of allocating bits for compression of a video image including a plurality of frames depicting a scene containing one or more objects, comprising:
detecting the presence of a defined object of the one or more objects;
determining spatial location data for the defined object;
generating an activity map for a defined number of macroblocks for each frame of the plurality of frames;
combining the activity map data with the spatial location data to define a bitrate allocation parameter; and
compressing the video image using a defined encoder specification, using the bitrate allocation parameter to control the quantization of an output bitstream, wherein the defined object is allocated a greater number of bits relative to other objects of the one or more objects.

### Claim 19 (depends on 18)

The method of claim 18 wherein the defined object is a face of a person in the scene, and wherein the object detection process comprises a face detection process for use in a videoconference application.

### Claim 20 (depends on 19)

The method of claim 19 further comprising characterizing the defined object as a face and the other objects as non-face, and mapping the face data and non-face data along a scale indicating the relative importance of the face and non-face objects.

### Claim 21 (depends on 20)

The method of claim 20 wherein an equal ratio assigned to the face and non-face objects corresponds to no importance being assigned to the face.
