IP Library › Granted Patent US 10,602,055
Granted Patent B2
US 10,602,055 · App. 16/008,322 · Granted Mar 24, 2020

Method of focusing, terminal, and computer-readable storage medium

Inventor: Xiaopeng Li (Guangdong, CN)
Assignee: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
H04N5/23219H04N5/23245H04N5/23254H04N5/232122H04N5/232123H04N5/232127H04N5/232945
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,602,055
App. No.
16/008,322
Granted
Mar 24, 2020
Kind
B2
Abstract

A method of focusing, a terminal, and computer-readable storage medium are disclosed. The method includes obtaining a facial region of interest in an image in a photographing preview mode, focusing on the facial region of interest in a first focusing mode, determining whether the facial region of interest in the first focusing mode is stable, and triggering a second focusing mode to refocus on the facial region of interest in response to the determination that the facial region of interest in the first focusing mode is stable, the first focusing mode being different from the second focusing mode.

Claims (54)

1. A method of focusing, comprising:

obtaining a facial region of interest in an image in a photographing preview mode;

focusing on the facial region of interest in a first focusing mode;

determining whether the facial region of interest in the first focusing mode is stable; and

triggering a second focusing mode to refocus on the facial region of interest in response to a determination that the facial region of interest in the first focusing mode is stable, wherein the first focusing mode is different from the second focusing mode;

wherein determining whether the facial region of interest in the first focusing mode is stable comprises:

obtaining position information of the facial region of interest in a first frame, the first frame being a frame in which the facial region of interest has been focused on in the first focusing mode;

obtaining position information of the facial region of interest in consecutive N−1 frames counting from a second frame, and determining whether a difference between the position information of the facial region of interest in each of the consecutive N−1 frames and the position information of the facial region of interest in the first frame exceeds a preset threshold, where 3≤N≤5;

if the difference between the position information of the facial region of interest in each of the consecutive N−1 frames and the first frame does not exceed a preset threshold, determining that the position information of the facial region of interest in the consecutive N frames does not change,

if the difference between the position information of the facial region of interest in each of the consecutive N−1 frames and the first frame exceeds a preset threshold, determining that the position information of the facial region of interest in the consecutive N frames changes;

in response to the determination that the position information of the facial region of interest does not change, determining that the facial region of interest in the first focusing mode is stable; and

in response to the determination that the position information of the facial region of interest changes, determining that the facial region of interest in the first focusing mode is not stable.

2. The method according to claim 1 , wherein the position information of the facial region of interest in the first focusing mode is border coordinate parameter information of the facial region of interest.

3. The method according to claim 1 , further comprising:

focusing on the facial region of interest in the first focusing mode continuously until the facial region of interest in the first focusing mode is stable.

4. The method according to claim 1 , wherein the first focusing mode is a Phase Detection Auto Focus mode, and the second focusing mode is a contrast focusing mode or a laser focusing mode.

5. The method according to claim 3 , wherein the focusing on the facial region of interest in the first focusing mode continuously until the facial region of interest is stable comprises:

when the difference between the position information of the facial region of interest in an n th frame of the consecutive N−1 frames and the first frame exceeds a preset threshold, focusing on the facial region of interest in the n th frame in the first focusing mode, and obtaining the position information of the facial region of interest in the n th frame; and

obtaining position information of the facial region of interest in consecutive N−1 frames counting from the n th frame, and determining whether a difference between the position information of the facial region of interest in each of the consecutive N−1 frames and the position information of the facial region of interest in the n th frame exceeds a preset threshold.

6. A terminal comprising an imaging device, a display device, a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement one or more actions, the one or more actions comprising:

obtaining a facial region of interest in an image in a photographing preview mode;

focusing on the facial region of interest in a first focusing mode;

determining whether the facial region of interest in the first focusing mode is stable; and

triggering a second focusing mode to refocus on the facial region of interest in response to a determination that the facial region of interest in the first focusing mode is stable, wherein the first focusing mode is different from the second focusing mode;

wherein determining whether the facial region of interest in the first focusing mode is stable comprises:

obtaining position information of the facial region of interest in a first frame, the first frame being a frame in which the facial region of interest has been focused on in the first focusing mode;

obtaining position information of the facial region of interest in consecutive N−1 frames counting from a second frame, and determining whether a difference between the position information of the facial region of interest in each of the consecutive N−1 frames and the position information of the facial region of interest in the first frame exceeds a preset threshold, where 3≤N≤5;

if the difference between the position information of the facial region of interest in each of the consecutive N−1 frames and the first frame does not exceed a preset threshold, determining that the position information of the facial region of interest in the consecutive N frames does not change,

if the difference between the position information of the facial region of interest in each of the consecutive N−1 frames and the first frame exceeds a preset threshold, determining that the position information of the facial region of interest in the consecutive N frames changes;

in response to the determination that the position information of the facial region of interest does not change, determining that the facial region of interest in the first focusing mode is stable; and

in response to the determination that the position information of the facial region of interest changes, determining that the facial region of interest in the first focusing mode is not stable.

7. The terminal according to claim 6 , wherein the position information of the facial region of interest in the first focusing mode is border coordinate parameter information of the facial region of interest.

8. The terminal according to claim 6 , further comprising:

focusing on the facial region of interest in the first focusing mode continuously until the facial region of interest in the first focusing mode is stable.

9. The terminal according to claim 6 , wherein the first focusing mode is a Phase Detection Auto Focus mode, and the second focusing mode is a contrast focusing mode or a laser focusing mode.

10. The terminal according to claim 8 , wherein the focusing on the facial region of interest in the first focusing mode continuously until the facial region of interest is stable comprises:

when the difference between the position information of the facial region of interest in an n th frame of the consecutive N−1 frames and the first frame exceeds a preset threshold, focusing on the facial region of interest in the n th frame in the first focusing mode, and obtaining the position information of the facial region of interest in the n th frame;

obtaining position information of the facial region of interest in consecutive N−1 frames counting from the n th frame, and determining whether a difference between the position information of the facial region of interest in each of the consecutive N−1 frames and the position information of the facial region of interest in the n th frame exceeds a preset threshold.

11. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program is configured to be executed by a processor to implement one or more actions, the one or more actions comprising:

obtaining a facial region of interest in an image in a photographing preview mode;

focusing on the facial region of interest in a first focusing mode;

determining whether the facial region of interest in the first focusing mode is stable; and

triggering a second focusing mode to refocus on the facial region of interest in response to the determination that the facial region of interest in the first focusing mode is stable, wherein the first focusing mode is different from the second focusing mode;

wherein determining whether the facial region of interest in the first focusing mode is stable comprises:

obtaining position information of the facial region of interest in a first frame, the first frame being a frame in which the facial region of interest has been focused on in the first focusing mode;

obtaining position information of the facial region of interest in consecutive N−1 frames counting from a second frame, and determining whether a difference between the position information of the facial region of interest in each of the consecutive N−1 frames and the position information of the facial region of interest in the first frame exceeds a preset threshold, where 3≤N≤5;

if the difference between the position information of the facial region of interest in each of the consecutive N−1 frames and the first frame does not exceed a preset threshold, determining that the position information of the facial region of interest in the consecutive N frames does not change,

if the difference between the position information of the facial region of interest in each of the consecutive N−1 frames and the first frame exceeds a preset threshold, determining that the position information of the facial region of interest in the consecutive N frames changes;

in response to the determination that the position information of the facial region of interest does not change, determining that the facial region of interest in the first focusing mode is stable; and

in response to the determination that the position information of the facial region of interest changes, determining that the facial region of interest in the first focusing mode is not stable.

12. The non-transitory computer readable storage medium according to claim 11 , wherein the position information of the facial region of interest in the first focusing mode is border coordinate parameter information of the facial region of interest.

13. The non-transitory computer readable storage medium according to claim 11 , further comprising:

focusing on the facial region of interest in the first focusing mode continuously until the facial region of interest in the first focusing mode is stable.

14. The non-transitory computer readable storage medium according to claim 11 , wherein the first focusing mode is a Phase Detection Auto Focus mode, and the second focusing mode is a contrast focusing mode or a laser focusing mode.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 14, 2018
From: LI, XIAOPENG
To: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Reel/Frame 046087/0565 →
Priority Claims (1)
CN 2017 1 0459606 · Jun 16, 2017 · national
Continuity (1)
Related Publication 20180367725A1 · Dec 20, 2018
Cited By (1)
US 12,294,784