# US 11,119,638 B2 · Using face detection to update user interface orientation

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

- Number: US 11,119,638 B2
- Document ID: US11119638B2
- Status: Granted
- Kind: B2
- Application number: 16/427,702
- Filed: 2019-05-31
- Published: 2020-04-02
- Granted: 2021-09-14
- Earliest claimed: 2018-09-28
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Kelsey Y. Ho; Eric J. Blumberg; Benjamin Biron; Colin C. Terndrup
- Web page: https://patentgrep.com/patent/US11119638B2

## CPC

- G06F 1/1694: {the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer}
- G06F 3/04845: for image manipulation, e.g. dragging, rotation, expansion or change of colour
- G06F 3/011: {Arrangements for interaction with the human body, e.g. for user immersion in virtual reality (blind teaching G09B21/00)}
- G06F 3/012: {Head tracking input arrangements}
- G06F 3/017: {Gesture based interaction, e.g. based on a set of recognized hand gestures (interaction based on gestures traced on a digitiser G06F3/04883)}
- G06F 21/32: using biometric data, e.g. fingerprints, iris scans or voiceprints
- G06V 40/172: {Classification, e.g. identification}
- H04N 23/56: provided with illuminating means
- G06F 2200/1614: Image rotation following screen orientation, e.g. switching from landscape to portrait mode
- G06F 2221/2149: Restricted operating environment
- G06V 40/161: {Detection; Localisation; Normalisation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An orientation of an application user interface (e.g., text and/or content) on a display of a device may be determined by an orientation of the device relative to gravity. In situations where the orientation of the device relative to gravity does not provide a confident or accurate orientation for the application user interface, orientation of the application user interface may be determined from face orientation data. Face orientation data may be obtained from a face detection process operating on images of the user captured during a facial recognition process or during an attention detection process.

## Claims

### Claim 1

A method, comprising:
detecting an orientation of a user interface on a display of a device, the device comprising a computer processor and a memory;
in response to a user generated request for the device to perform a face detection process, capturing an image of a face of a user using a camera located on the device, wherein the captured image comprises an image captured while illuminating the user's face with an infrared illuminator located on the device, and wherein the face detection process determines data for an orientation of the user's face from the captured image when the user's face is detected in the captured image;
determining an orientation of the device relative to gravity;
in response to determining the orientation of the device relative to gravity is the device is lying flat, accessing the data for the orientation of the user's face determined by the face detection process;
in response to determining the face of the user is detected in the captured image, updating the orientation of the user interface on the display of the device using the data for the orientation of the user's face determined by the face detection process; and
in response to determining the face of the user is not detected in the captured image, determining the orientation of the user interface on the display of the device remains at a previous orientation of the user interface.

### Claim 2 (depends on 1)

The method of claim 1, further comprising updating the orientation of the user interface on the display of the device using the data for the orientation of the user's face from the captured image in response to determining the orientation of the device relative to gravity is ambiguous.

### Claim 3 (depends on 1)

The method of claim 1, wherein the orientation of the user interface on the display of the device comprises one of a portrait mode or a landscape mode for displaying the user interface.

### Claim 4 (depends on 1)

The method of claim 1, wherein the face detection process comprises:
encoding the captured image to generate feature vectors for the captured image;
assessing the feature vectors to detect the face in the captured image; and
providing an output indicating that the face has been detected or has not been detected in the captured image, wherein the output includes the data for the orientation of the user's face for the output indicating that the face has been detected.

### Claim 5 (depends on 1)

The method of claim 1, wherein the updated orientation is determined using an orientation of the device relative to the orientation of the user's face in the captured image.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining the orientation of the device relative to gravity comprises assessing motion of the device using at least one of an accelerometer and a gyroscope.

### Claim 7 (depends on 1)

The method of claim 1, wherein, in response to the orientation of the device relative to gravity being determined to be not lying flat, the orientation of the user interface is updated using the orientation of the device relative to gravity.

### Claim 8 (depends on 1)

The method of claim 1, wherein the face detection process is operated in response to the user generated request corresponding to either a facial recognition authentication process or an attention detection process.

### Claim 9

A device, comprising:
a computer processor;
a memory;
a display;
a camera;
at least one illuminator providing infrared illumination;
circuitry coupled to the camera and the illuminator, wherein the circuitry is configured to:
detect an orientation of a user interface on the display;
in response to a user generated request for the device to perform a face detection process, capture an image of a face of a user using a camera located on the device, wherein the captured image comprises an image captured while illuminating the user's face with an infrared illuminator located on the device, and wherein the face detection process determines data for an orientation of the user's face from the captured image when the user's face is detected in the captured image;
determine an orientation of the device relative to gravity;
in response to determining the orientation of the device relative to gravity is the device is lying flat, access the data for the orientation of the user's face determined by the face detection process;
in response to determining the face of the user is detected in the captured image, update the orientation of the user interface on the display using the data for the orientation of the user's face determined by the face detection process; and
in response to determining the face of the user is not detected in the captured image, determine the orientation of the user interface on the display of the device remains at a previous orientation of the user interface.

### Claim 10 (depends on 9)

The device of claim 9, wherein the at least one illuminator comprises a flood infrared illuminator.

### Claim 11 (depends on 9)

The device of claim 9, further comprising one or more inertial sensors on the device, wherein the orientation of the device relative to gravity is determined using at least one of the inertial sensors.

### Claim 12 (depends on 11)

The device of claim 11, wherein at least one of the inertial sensors comprises an accelerometer.

### Claim 13 (depends on 11)

The device of claim 11, wherein at least one of the inertial sensors comprises a gyroscope.

### Claim 14 (depends on 9)

The device of claim 9, wherein the orientation comprises one of a portrait mode or a landscape mode for displaying the user interface.

### Claim 15

A method, comprising:
capturing an image of a subject using a camera located on a device in response to a user generated request, the device comprising a computer processor, a memory, and a display, wherein the captured image comprises an image captured while illuminating the subject with an illuminator located on the device;
operating, in response to the user generated request and using the computer processor, a face detection process on the captured image, wherein the face detection process is operated to detect a face of the subject illuminated by the illuminator in the captured image, and wherein the face detection process determines an orientation of the face detected in the capture image when the user's face is detected in the captured image;
determining an orientation of the device relative to gravity based on motion of the device;
in response to the orientation of the device relative to gravity being determined to be the device is lying flat and in response to determining the face of the user is detected in the captured image, determining a selected orientation for a user interface to be displayed on the display of the device based on the determined orientation of the face detected in the captured image;
in response to determining the face of the user is not detected in the captured image, determining the selected orientation for the user interface to be displayed on the display of the device remains at a previous orientation of the user interface; and
displaying the user interface on the display of the device with the selected orientation.

### Claim 16 (depends on 15)

The method of claim 15, wherein the selected orientation comprises one of a portrait mode or a landscape mode for displaying the user interface.

### Claim 17 (depends on 15)

The method of claim 15, further comprising determining the selected orientation for the user interface based on the orientation of the face detected in the captured image in response to the orientation of the device relative to gravity being determined to be ambiguous based on motion of the device.

### Claim 18 (depends on 15)

The method of claim 15, wherein the selected orientation is determined using an orientation of the device relative to the orientation of the face detected in the captured image.

### Claim 19 (depends on 15)

The method of claim 15, further comprising authenticating the subject in the captured image to be an authorized user of the device using a facial recognition authentication process operating on the captured image in response to the face being detected in the captured image.

### Claim 20 (depends on 15)

The method of claim 15, further comprising determining attention of the subject in the captured image using an attention detection process operating on the captured image in response to the face being detected in the captured image.
