# US 2021/0289129 A1 · Method for Controlling Camera Module, Electronic Device, 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 2021/0289129 A1
- Document ID: US20210289129A1
- Status: Published application
- Kind: A1
- Application number: 17/331,566
- Filed: 2021-05-26
- 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/US20210289129A1

## CPC

- H04N 23/611: where the recognised objects include parts of the human body
- G06F 21/32: using biometric data, e.g. fingerprints, iris scans or voiceprints
- H04M 1/0264: {for a camera module assembly}
- H04M 1/72454: according to context-related or environment-related conditions
- 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
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)

## Abstract

The disclosure provides a method for controlling a camera module in an electronic device. 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 in response to receiving a first face recognition request; maintaining the camera module in the second position for a first duration in response to acquiring a release request on the camera module; and driving the camera module to slide to the first position in response to not receiving a second face recognition request within the first duration.

## 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 in response to receiving a first face recognition request;
maintaining the camera module in the second position for a first duration in response to acquiring a release request on the camera module; and
driving the camera module to slide to the first position in response to not receiving a second face recognition request within the first duration.

### Claim 2 (depends on 1)

The method as claimed in claim 1, further comprising:
returning the maintaining the camera module in the second position for the first duration in response to receiving the second face recognition request within the first duration.

### Claim 3 (depends on 1)

The method as claimed in claim 1, wherein driving the camera module comprises:
driving a sliding component hard-wired to the camera module by controlling a driving component in the electronic device, to drive the camera module.

### Claim 4 (depends on 2)

The method as claimed in claim 2,
wherein driving the camera module to slide to the first position in response to not receiving the second face recognition request within the first duration comprises: driving the camera module to slide to the first position in response to detecting that a count value of a counter maintains 0 within the first duration, in which an initial value of the counter is 0, and after the face recognition request is obtained, the counter is incremented by one, and after the release request on the camera module is obtained, the counter is decremented by one; or
wherein returning the maintaining the camera module in the second position for the first duration in response to receiving the second face recognition request within the first duration comprises: returning the maintaining the camera module in the second position for the first duration in response to detecting that the count value of the counter changes from 0 to 1 within the first duration in which an initial value of the counter is 0, and after the face recognition request is obtained, the counter is incremented by one, and after the release request on the camera module is obtained, the counter is decremented by one.

### Claim 5 (depends on 1)

The method as claimed in claim 1, further comprising:
before driving the camera module to slide to the first position in response to not receiving the second face recognition request within the first duration,
determining that an application currently running in a foreground of a system is not a face recognition application, or a screen of the electronic device is turned off.

### Claim 6 (depends on 5)

The method as claimed in claim 5, further comprising:
returning the maintaining the camera module in the second position for the first duration in response to determining that the application currently running in the foreground of the system is the face recognition application, and the screen of the electronic device is turned on.

### Claim 7 (depends on 5)

The method as claimed in claim 5, further comprising:
driving the camera module by a screen-locking application in response to the face recognition application being the screen-locking application.

### Claim 8 (depends on 1)

The method as claimed in claim 1, wherein acquiring the release request on the camera module comprises:
acquiring a face recognition success response; or,
determining that a duration of occupying the camera module by an application sending the first face recognition request is more than a second duration after acquiring a face recognition success response or a face recognition failure response; or
acquiring a number of times of receiving face recognition failure responses is more than a preset number of times.

### Claim 9

An electronic device comprising:
a body,
a camera module removable between a first position received in the body 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 in response to receiving a first face recognition request;
maintain the camera module in the second position for a first duration in response to acquiring a release request on the camera module; and
drive the camera module to slide to the first position in response to not receiving a second face recognition request within the first duration.

### Claim 10 (depends on 9)

The electronic 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 for the first duration in response to receiving the second face recognition request within the first duration.

### Claim 11 (depends on 9)

The electronic device as claimed in claim 9, further comprising:
a sliding component hard-wired to the camera module; and
a driving component, configured to drive the sliding component to drive the camera module,
wherein the processor is configured to, execute the computer program on the memory to drive the camera module by:
driving the sliding component by controlling the driving component, to drive the camera module.

### Claim 12 (depends on 10)

The electronic device as claimed in claim 10, 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 detecting that a count value of a counter maintains 0 within the first duration, in which an initial value of the counter is 0, and after the face recognition request is obtained, the counter is incremented by one, and after the release request on the camera module is obtained, the counter is decremented by one; or
maintain the camera module in the second position for the first duration in response to detecting that the count value of the counter changes from 0 to 1 within the first duration, in which an initial value of the counter is 0, and after the face recognition request is obtained, the counter is incremented by one, and after the release request on the camera module is obtained, the counter is decremented by one.

### Claim 13 (depends on 9)

The electronic device as claimed in claim 9, wherein the processor is configured to, before driving the camera module to slide to the first position in response to not receiving the second face recognition request within the first duration, execute the computer program on the memory to:
determine that an application currently running in a foreground of a system is not a face recognition application, or a screen of the electronic device is turned off.

### Claim 14 (depends on 13)

The electronic device as claimed in claim 13, wherein the processor is configured to, execute the computer program on the memory to:
maintain the camera module in the second position for the first duration in response to determining that the application currently running in the foreground of the system is the face recognition application, and the screen of the electronic device is turned on.

### Claim 15 (depends on 9)

The electronic device as claimed in claim 9, wherein the processor is configured to, execute the computer program on the memory to acquire the release request on the camera module by any act of:
acquiring a face recognition success response; or,
determining that a duration of occupying the camera module by an application sending the first face recognition request is more than a second duration after acquiring a face recognition success response or a face recognition failure response; or
acquiring a number of times of receiving face recognition failure responses is more than a preset number of times.

### Claim 16

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 in response to receiving a first face recognition request;
maintaining the camera module in the second position for a first duration in response to acquiring a release request on the camera module; and
driving the camera module to slide to the first position in response to not receiving a second face recognition request within the first duration.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium as claimed in claim 16, wherein the method further comprises:
returning the maintaining the camera module in the second position for the first duration in response to receiving the second face recognition request within the first duration.

### Claim 18 (depends on 16)

The non-transitory computer-readable storage medium as claimed in claim 16, wherein driving the camera module comprising:
driving a sliding component hard-wired to the camera module by controlling a driving component in the electronic device, to drive the camera module.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium as claimed in claim 17, wherein driving the camera module to slide to the first position in response to not receiving the second face recognition request within the first duration comprises: driving the camera module to slide to the first position in response to detecting that a count value of a counter maintains 0 within the first duration, in which an initial value of the counter is 0, and after the face recognition request is obtained, the counter is incremented by one, and after the release request on the camera module is obtained, the counter is decremented by one; or
wherein returning the maintaining the camera module in the second position for the first duration in response to receiving the second face recognition request within the first duration comprises: returning the maintaining the camera module in the second position for the first duration in response to detecting that the count value of the counter changes from 0 to 1 within the first duration, in which an initial value of the counter is 0, and after the face recognition request is obtained, the counter is incremented by one, and after the release request on the camera module is obtained, the counter is decremented by one.

### Claim 20 (depends on 16)

The non-transitory computer-readable storage medium as claimed in claim 16, before driving the camera module to slide to the first position in response to not receiving the second face recognition request within the first duration, the method further comprises:
determining that an application currently running in a foreground of a system is not a face recognition application, or a screen of the electronic device is turned off.
