# US 2020/0396368 A1 · Method and device for controlling front camera, mobile terminal and storage medium

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

- Number: US 2020/0396368 A1
- Document ID: US20200396368A1
- Status: Published application
- Kind: A1
- Application number: 16/686,487
- Filed: 2019-11-18
- Published: 2020-12-17
- Earliest claimed: 2019-06-17
- Assignees: Beijing Xiaomi Mobile Software Co., Ltd.
- Applicants: Beijing Xiaomi Mobile Software Co., Ltd.
- Inventors: Nengjin ZHU; Hai LONG
- Web page: https://patentgrep.com/patent/US20200396368A1

## CPC

- H04N 23/60: Control of cameras or camera modules
- H04N 23/73: by influencing the exposure time
- H04N 21/42204: {User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor (constructive details of casings for the remote control device H01H9/0235; user interfaces for controlling a tuning device of a television receiver through a remote control H03J9/00; remote control of peripheral devices connected to a television receiver through the remote control device of the television receiver H04B1/205)}
- H04N 23/617: Upgrading or updating of programs or applications for camera control
- H04N 23/90: Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
- H04N 21/42209: {for displaying non-command information, e.g. electronic programme guide [EPG], e-mail, messages or a second television channel}
- H04N 23/51: Housings
- Y02D 30/70: in wireless communication networks
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method for controlling the front camera includes: an operation instruction for the front camera is received from an application; a trigger message is sent to a pop-up motor service to trigger the pop-up motor service to control a pop-up or retraction of the front camera; and the front camera is controlled based on the operation instruction to perform a corresponding operation.

## Claims

### Claim 1

A method for controlling a front camera, comprising:
receiving, from an application, an operation instruction for the front camera;
sending a trigger message to a pop-up motor service to trigger the pop-up motor service to control a pop-up or retraction of the front camera; and
controlling, based on the operation instruction, the front camera to perform a corresponding operation.

### Claim 2 (depends on 1)

The method for controlling the front camera of claim 1, wherein the receiving, from the application, the operation instruction for the front camera comprises:
in a case that the front camera is to be used by the application, calling, by the application, a camera service, and sending, by the application, the operation instruction for the front camera; and
receiving, by the camera service, the operation instruction for the front camera.

### Claim 3 (depends on 2)

The method for controlling the front camera of claim 2, wherein the camera service is independent of the pop-up motor service.

### Claim 4 (depends on 3)

The method for controlling the front camera of claim 3, wherein software architecture adopted for the camera service is independent of software architecture adopted for the pop-up motor service, in an operating system of a mobile terminal.

### Claim 5 (depends on 1)

The method for controlling the front camera of claim 1, wherein the operation instruction comprises a front camera control instruction, and the front camera control instruction comprises at least one of: an image capturing control instruction, a video recording control instruction, an image capturing mode scene reference control instruction, a face recognition control instruction, a two-dimensional code scanning instruction, or a depth map capturing instruction.

### Claim 6 (depends on 1)

The method for controlling the front camera of claim 1, wherein the pop-up motor service is an application layer service.

### Claim 7 (depends on 1)

The method for controlling the front camera of claim 1, wherein the controlling the pop-up or retraction of the front camera by the pop-up motor service comprises:
calling, by the pop-up motor service, a bottom-layer motor service, wherein the bottom-layer motor service comprises a daemon process; and
calling, by the bottom-layer motor service, a motor running program to control the pop-up or retraction of the front camera.

### Claim 8 (depends on 1)

The method for controlling the front camera of claim 1, further comprising:
acquiring a position of the front camera detected by a geomagnetic sensor.

### Claim 9 (depends on 8)

The method for controlling the front camera of claim 8, wherein the acquiring the position of the front camera detected by the geomagnetic sensor comprises: calling, by the bottom-layer motor service, a sensor program to control the geomagnetic sensor to detect the position of front camera; and feeding, by the sensor program, back the position of the front camera detected by the geomagnetic sensor to the bottom-layer motor service.

### Claim 10 (depends on 8)

The method for controlling the front camera of claim 8, further comprising:
determining, based on the position of the front camera, whether the pop-up or retraction of the front camera is normal; and
sending, by the pop-up motor service, an alarm message to a user when the pop-up or retraction of the front camera is abnormal.

### Claim 11

A device for controlling a front camera, comprising:
a processor; and
a memory storing one or more instructions for execution by the processor, the one or more instructions including:
instructions for receiving, from an application, an operation instruction for the front camera;
instructions for sending a trigger message to a pop-up motor service to trigger the pop-up motor service to control a pop-up or retraction of the front camera; and
instructions for controlling, based on the operation instruction, the front camera to perform a corresponding operation.

### Claim 12 (depends on 10)

The device for controlling the front camera of claim 10, wherein the instructions for receiving, from the application, the operation instruction for the front camera comprises:
instructions for calling, by the application, a camera service when the front camera is to be used by the application, and sending, by the application, the operation instruction for the front camera; and
instructions for receiving, by the camera service, the operation instruction for the front camera.

### Claim 13 (depends on 11)

The device for controlling the front camera of claim 11, wherein the camera service is independent of the pop-up motor service.

### Claim 14 (depends on 10)

The device for controlling the front camera of claim 10, wherein the operation instruction comprises a front camera control instruction, and the front camera control instruction comprises at least one of: an image capturing control instruction, a video recording control instruction, an image capturing mode scene reference control instruction, a face recognition control instruction, a two-dimensional code scanning instruction, or a depth map capturing instruction.

### Claim 15 (depends on 10)

The device for controlling the front camera of claim 10, wherein the pop-up motor service is an application layer service.

### Claim 16 (depends on 10)

The device for controlling the front camera of claim 10, wherein the instructions for controlling the pop-up or retraction of the front camera by the pop-up motor service comprises:
instructions for calling, by the pop-up motor service, a bottom-layer motor service, wherein the bottom-layer motor service comprises a daemon process; and
instructions for calling, by the bottom-layer motor service, a motor running program to control the pop-up or retraction of the front camera.

### Claim 17 (depends on 10)

The device for controlling the front camera of claim 10, the one or more instructions further comprise:
instructions for acquiring a position of the front camera detected by a geomagnetic sensor.

### Claim 18 (depends on 17)

The device for controlling the front camera of claim 17, the one or more instructions further comprise:
instructions for determining, based on the position of the front camera, whether the pop-up or retraction of the front camera is normal; and
instructions for sending, by the pop-up motor service, an alarm message to a user when the pop-up or retraction of the front camera is abnormal.

### Claim 19 (depends on 1)

A mobile terminal implementing the method according to claim 1, the mobile terminal comprising the front camera and a controller, wherein
the front camera is capable of being popped-up or retracted; and
the controller is configured to control the front camera;
wherein the mobile terminal has a pop-up motor service separate from other application software to thereby reduce coupling between the pop-up motor service and the other application software, and reducing time delay caused by the other application software.

### Claim 20 (depends on 1)

A non-transitory computer-readable storage medium having stored thereon instructions for by a processor of a mobile terminal to cause the processor to perform the method for controlling the front camera according to claim 1.
