# US 2021/0333988 A1 · Method and device for switching interface, touch 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 2021/0333988 A1
- Document ID: US20210333988A1
- Status: Published application
- Kind: A1
- Application number: 17/138,620
- Filed: 2020-12-30
- Published: 2021-10-28
- Earliest claimed: 2020-04-26
- Assignees: Beijing Dajia Internet Information Technology Co., Ltd.
- Applicants: Beijing Dajia Internet Information Technology Co., Ltd.
- Inventors: Yu Zhao; Qiang Xu
- Web page: https://patentgrep.com/patent/US20210333988A1

## CPC

- G06F 3/04883: for inputting data by handwriting, e.g. gesture or text
- G06F 3/0486: Drag-and-drop
- H04N 23/62: Control of parameters via user interfaces
- H04N 23/63: by using electronic viewfinders
- H04N 23/631: {Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The disclosure relates to a method for switching an interface, which is applied to a touch terminal capable of presenting a graphical user interface. The method can include: displaying a shooting interface; receiving a sliding operation performed by a user on the shooting interface; and switching the shooting interface to an album interface in response to the sliding operation in response to determining that the sliding operation is a present sliding operation.

## Claims

### Claim 1

A method for switching an interface, applied to a touch terminal capable of presenting a graphical user interface, the method comprising:
displaying a shooting interface;
receiving a sliding operation performed by a user on the shooting interface; and
switching the shooting interface to an album interface in response to the sliding operation being a predetermined sliding operation.

### Claim 2 (depends on 1)

The method according to claim 1, wherein said switching the shooting interface to the album interface comprises:
obtaining a touch point of the sliding operation;
determining whether the sliding operation is the predetermined sliding operation based on a movement trend of the touch point; and
switching the shooting interface to the album interface in response to the sliding operation being the predetermined sliding operation.

### Claim 3 (depends on 2)

The method according to claim 2, wherein said determining whether the sliding operation is the predetermined sliding operation comprises:
obtaining a touch point movement distance of the touch point;
determining a sliding start position and a sliding end position of the touch point in response to the touch point movement distance being greater than a distance threshold; and
determining that the sliding operation is the predetermined sliding operation based on a relative position between the sliding start position and the sliding end position.

### Claim 4 (depends on 3)

The method according to claim 3, in response to the predetermined sliding operation being an upward sliding operation, said determining that the sliding operation is the predetermined sliding operation comprises:
obtaining a longitudinal movement value of the touch point by obtaining a difference between an ordinate of the sliding end position and an ordinate of the sliding start position;
obtaining a lateral movement value of the touch point by obtaining a difference between an abscissa of the sliding end position and an abscissa of the sliding start position; and
determining that the sliding operation is the upward sliding operation in response to the longitudinal movement value of the touch point being greater than the lateral movement value of the touch point.

### Claim 5 (depends on 1)

The method according to claim 1, in response to a starting point of the sliding operation being located in a viewfinder area of the shooting interface, said switching the shooting interface to the album interface comprises:
obtaining a sliding duration of the sliding operation; and
determining that the sliding operation is the predetermined sliding operation in response to the sliding duration being greater than a time threshold.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the touch terminal is further configured to respond to a gesture control operation performed by the user on the shooting interface, and the method further comprises:
stopping responding to the gesture control operation performed by the user on the shooting interface in response to the sliding operation being the predetermined sliding operation.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising:
reading a predetermined number of album images in an album gallery of the touch terminal;
generating an album preview image based on the predetermined number of album images; and
determining an initial frame image of the album interface based on the album preview image.

### Claim 8

A touch terminal capable of presenting a graphical user interface, comprising:
one or more processors; and
a memory for storing instructions executable by the processor,
wherein, the one or more processors are configured to execute the instructions to perform operations comprising:
displaying a shooting interface;
receiving a sliding operation performed by a user on the shooting interface; and
switching the shooting interface to an album interface in response to the sliding operation being a predetermined sliding operation.

### Claim 9 (depends on 8)

The touch terminal according to claim 8, wherein said switching the shooting interface to the album interface comprises:
obtaining a touch point of the sliding operation;
determining whether the sliding operation is the predetermined sliding operation based on a movement trend of the touch point; and
switching the shooting interface to the album interface in response to the sliding operation being the predetermined sliding operation.

### Claim 10 (depends on 9)

The touch terminal according to claim 9, wherein said determining whether the sliding operation is the predetermined sliding operation comprises:
obtaining a touch point movement distance of the touch point;
determining a sliding start position and a sliding end position of the touch point in response to the touch point movement distance being greater than a distance threshold; and
determining that the sliding operation is the predetermined sliding operation based on a relative position between the sliding start position and the sliding end position.

### Claim 11 (depends on 10)

The touch terminal according to claim 10, in response to the predetermined sliding operation being an upward sliding operation, said determining that the sliding operation is the predetermined sliding operation comprises:
obtaining a longitudinal movement value of the touch point by obtaining a difference between an ordinate of the sliding end position and an ordinate of the sliding start position;
obtaining a lateral movement value of the touch point by obtaining a difference between an abscissa of the sliding end position and an abscissa of the sliding start position; and
determining that the sliding operation is the upward sliding operation in response to the longitudinal movement value of the touch point being greater than the lateral movement value of the touch point.

### Claim 12 (depends on 8)

The touch terminal according to claim 8, in response to a starting point of the sliding operation is located in a viewfinder area of the shooting interface, said switching the shooting interface to the album interface comprises:
obtaining a sliding duration of the sliding operation; and
determining that the sliding operation is the predetermined sliding operation in response to the sliding duration being greater than a time threshold.

### Claim 13 (depends on 8)

The touch terminal according to claim 8, wherein the touch terminal is further configured to respond to a gesture control operation performed by the user on the shooting interface, and said operations further comprises:
stopping responding to the gesture control operation performed by the user on the shooting interface in response to the sliding operation being the predetermined sliding operation.

### Claim 14 (depends on 8)

The touch terminal according to claim 8, wherein said operations further comprises:
reading a predetermined number of album images in an album gallery of the touch terminal;
generating an album preview image based on the predetermined number of album images; and
determining an initial frame image of the album interface based on the album preview image.

### Claim 15

A non-transitory computer-readable storage medium storing thereon instructions, when being executed by one or more processors of a touch terminal capable of presenting a graphical user interface, cause the touch terminal to perform operations comprising:
displaying a shooting interface;
receiving a sliding operation performed by a user on the shooting interface; and
switching the shooting interface to an album interface in response to the sliding operation being a predetermined sliding operation.

### Claim 16 (depends on 15)

The storage medium according to claim 15, wherein said switching the shooting interface to the album interface comprises:
obtaining a touch point of the sliding operation;
determining whether the sliding operation is the predetermined sliding operation based on a movement trend of the touch point; and
switching the shooting interface to the album interface in response to the sliding operation being the predetermined sliding operation.

### Claim 17 (depends on 16)

The storage medium according to claim 16, wherein said determining whether the sliding operation is the predetermined sliding operation comprises:
obtaining a touch point movement distance of the touch point;
determining a sliding start position and a sliding end position of the touch point in response to the touch point movement distance being greater than a distance threshold; and
determining that the sliding operation is the predetermined sliding operation based on a relative position between the sliding start position and the sliding end position.

### Claim 18 (depends on 17)

The storage medium according to claim 17, in response to the predetermined sliding operation being an upward sliding operation, said determining that the sliding operation is the predetermined sliding operation comprises:
obtaining a longitudinal movement value of the touch point by obtaining a difference between an ordinate of the sliding end position and an ordinate of the sliding start position;
obtaining a lateral movement value of the touch point by obtaining a difference between an abscissa of the sliding end position and an abscissa of the sliding start position; and
determining that the sliding operation is the upward sliding operation in response to the longitudinal movement value of the touch point being greater than the lateral movement value of the touch point.

### Claim 19 (depends on 15)

The storage medium according to claim 15, in response to a starting point of the sliding operation being located in a viewfinder area of the shooting interface, said switching the shooting interface to the album interface comprises:
obtaining a sliding duration of the sliding operation; and
determining that the sliding operation is the predetermined sliding operation in response to the sliding duration being greater than a time threshold.

### Claim 20 (depends on 15)

The storage medium according to claim 15, wherein the touch terminal is further configured to respond to a gesture control operation performed by the user on the shooting interface, and the operations further comprises:
stopping responding to the gesture control operation performed by the user on the shooting interface in response to the sliding operation being the predetermined sliding operation.
