# US 2021/0289130 A1 · Method for Controlling Camera Module, Electronic Device, and Computer-Readable Storage Medium

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

- Number: US 2021/0289130 A1
- Document ID: US20210289130A1
- Status: Published application
- Kind: A1
- Application number: 17/332,387
- Filed: 2021-05-27
- Published: 2021-09-16
- Earliest claimed: 2018-11-30
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Peng Zhong
- Web page: https://patentgrep.com/patent/US20210289130A1

## CPC

- H04M 1/0264: {for a camera module assembly}
- H04N 23/611: where the recognised objects include parts of the human body
- H04M 1/72454: according to context-related or environment-related conditions
- H04N 23/51: Housings
- H04N 23/57: Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
- H04N 23/631: {Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters}
- H04N 23/695: Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
- H04M 1/0237: {Sliding mechanism with one degree of freedom}
- H04M 2250/52: including functional features of a camera
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The disclosure provides a method for controlling a camera module. The camera module is removable between a first position received in a body of the electronic device and a second position exposed from the body. The method includes: driving the camera module to slide to the second position based on a call request on the camera module sent by a camera application, in response to the camera application running in a system foreground; determining whether a current application is a preset application, in response to an application in the system foreground switching from the camera application to the current application; determining whether receiving a call request on the camera module sent by the current application in response to the current application being the preset application; and maintaining the camera module in the second position within a preset duration, in response to not receiving the call request.

## Claims

### Claim 1

A method for controlling a camera module in an electronic device, wherein the camera module is removable between a first position received in a body of the electronic device and a second position exposed from the body; and the method comprises:
driving the camera module to slide to the second position based on a call request on the camera module sent by a camera application, in response to the camera application running in a system foreground;
determining whether a current application is a preset application, in response to an application in the system foreground switching from the camera application to the current application;
determining whether receiving a call request on the camera module sent by the current application in response to the current application being the preset application; and
maintaining the camera module in the second position within a preset duration, in response to not receiving the call request.

### Claim 2 (depends on 1)

The method as claimed in claim 1, further comprising:
driving the camera module to slide to the first position in response to the current application being not the preset application.

### Claim 3 (depends on 1)

The method as claimed in claim 1, further comprising:
maintaining the camera module in the second position in response to receiving the call request; and
maintaining the camera module in the second position within the preset duration in response to acquiring a release request of the current application on the camera module.

### Claim 4 (depends on 3)

The method as claimed in claim 3, wherein the current application is an album application, the call request is a face recognition request, and acquiring the release request of the current application on the camera module comprises:
obtaining a face recognition success request sent by the album application.

### Claim 5 (depends on 1)

The method as claimed in claim 1, further comprising:
before maintaining the camera module in the second position within the preset duration,
determining that the current application is not switched to run in the background within the preset duration, or the screen of the electronic device is turned on.

### Claim 6 (depends on 5)

The method as claimed in claim 5, further comprising:
driving the camera module to slide to the first position, in response to the current application being switched to run in the background within the preset duration, or the screen of the electronic device being turned off.

### Claim 7 (depends on 1)

The method as claimed in claim 1, further comprising:
obtaining operation information on the camera application;
determining an operation intention based on the operation information; and
determining the preset duration based on the operation intention.

### Claim 8 (depends on 1)

The method as claimed in claim 1, further comprising:
obtaining application characteristics of the current application; and
determining the preset duration based on the application characteristics.

### Claim 9

An electronic device, comprising:
a body,
a camera module removable between a first position received in the body of the electronic device and a second position exposed from the body,
a memory,
a processor electrically coupled to the memory, and
a computer program stored on the memory and for running on the processor,
in which the processor is configured to, execute the computer program on the memory to:
drive the camera module to slide to the second position based on a call request on the camera module sent by a camera application, in response to the camera application running in a system foreground;
determine whether a current application is a preset application, in response to an application in the system foreground switching from the camera application to the current application;
determine whether receiving a call request on the camera module sent by the current application in response to the current application being the preset application; and
maintain the camera module in the second position within a preset duration, in response to not receiving the call request.

### Claim 10 (depends on 9)

The device as claimed in claim 9, wherein the processor is configured to execute the computer program on the memory to:
drive the camera module to slide to the first position in response to the current application being not the preset application.

### Claim 11 (depends on 9)

The device as claimed in claim 9, wherein the processor is configured to execute the computer program on the memory to:
maintain the camera module in the second position in response to receiving the call request; and
maintain the camera module in the second position within the preset duration in response to acquiring a release request of the current application on the camera module.

### Claim 12 (depends on 11)

The device as claimed in claim 11, wherein the current application is an album application, the call request is a face recognition request, and the processor is configured to execute the computer program on the memory to acquire the release request of the current application on the camera module by an act of:
obtaining a face recognition success request sent by the album application.

### Claim 13 (depends on 9)

The device as claimed in claim 9, wherein the processor is configured to execute the computer program on the memory to:
before maintaining the camera module in the second position within the preset duration, determine that the current application is not switched to run in the background within the preset duration, or the screen of the electronic device is turned on.

### Claim 14 (depends on 13)

The device as claimed in claim 13, wherein the processor is configured to execute the computer program on the memory to:
drive the camera module to slide to the first position, in response to the current application being switched to run in the background within the preset duration, or the screen of the electronic device being turned off.

### Claim 15 (depends on 9)

The device as claimed in claim 9, wherein the processor is configured to execute the computer program on the memory to:
obtain operation information on the camera application;
determine an operation intention based on the operation information; and
determine the preset duration based on the operation intention.

### Claim 16 (depends on 9)

The device as claimed in claim 9, wherein the processor is configured to execute the computer program on the memory to:
obtain application characteristics of the current application; and
determine the preset duration based on the application characteristics.

### Claim 17

A non-transitory computer-readable storage medium with a computer program stored thereon, wherein in response that the computer program is executed by a processor of an electronic device, the electronic device is caused to perform a method for controlling a camera module in the electronic device, in which the camera module is removable between a first position received in a body of the electronic device and a second position exposed from the body, and the method comprises:
driving the camera module to slide to the second position based on a call request on the camera module sent by a camera application, in response to the camera application running in a system foreground;
determining whether a current application is a preset application, in response to an application in the system foreground switching from the camera application to the current application;
determining whether receiving a call request on the camera module sent by the current application in response to the current application being the preset application; and
maintaining the camera module in the second position within a preset duration, in response to not receiving the call request.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium as claimed in claim 17, wherein the method further comprises:
driving the camera module to slide to the first position in response to the current application being not the preset application.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium as claimed in claim 17, wherein the method further comprises:
maintaining the camera module in the second position in response to receiving the call request; and
maintaining the camera module in the second position within the preset duration in response to acquiring a release request of the current application on the camera module.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium as claimed in claim 19, wherein the current application is an album application, the call request is a face recognition request, and acquiring the release request of the current application on the camera module comprises:
obtaining a face recognition success request sent by the album application.
