# US 2017/0371844 A1 · Method, device and terminal for implementing regional screen capture

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

- Number: US 2017/0371844 A1
- Document ID: US20170371844A1
- Status: Published application
- Kind: A1
- Application number: 15/544,111
- Filed: 2015-06-10
- Published: 2017-12-28
- Earliest claimed: 2015-01-15
- Assignees: Zte Corporation
- Applicants: Zte Corporation
- Inventors: Junying YAO
- Web page: https://patentgrep.com/patent/US20170371844A1

## CPC

- G06F 40/106: Display of layout of documents; Previewing
- G06F 3/0484: for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F 3/04842: Selection of displayed objects or displayed text elements (G06F3/0482 takes precedence)
- G06F 3/04883: for inputting data by handwriting, e.g. gesture or text
- G06F 8/38: for implementing user interfaces
- G06F 9/45512: {Command shells}
- G06F 40/205: Parsing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, device and terminal for implementing regional screen capture are described. The method includes: capturing a full content of a current screen interface according to a screen capture instruction and generating a picture; parsing layout information of the current screen interface, and mark various controls in the generated picture by using the acquired layout information; determining a capture region according to a control selected based on a mark, and capturing the content displayed on one or more determined capture regions; when the capture is required, capturing the full content of the current screen interface and generating picture data; parsing the layout information of the current screen interface, and marking various controls on the generated picture according to the acquired layout information; and determining the capture region according to the selected controls.

## Claims

### Claim 1

A method for implementing regional screen capture, comprising:
capturing a full content of a current screen interface according to a screen capture instruction and generating a picture;
parsing layout information of the current screen interface, and marking a control in the picture by using the acquired layout information;
selecting one or more controls required to be captured according to a mark; and
determining a capture region according to the selected control/controls, and capturing a content displayed on the capture region.

### Claim 2 (depends on 1)

The method for implementing regional screen capture according to claim 1, wherein, the step of parsing layout information of the current screen interface comprises:
acquiring a layout file of the current screen interface through a function interface; and
parsing the layout file, and acquiring coordinate position information of each control.

### Claim 3 (depends on 2)

The method for implementing regional screen capture according to claim 2, wherein, the step of marking a control in the picture by using the acquired layout information comprises:
determining a boundary position of each control on the screen according to the coordinate position information respectively; and
along the determined boundary position, marking parsed boundary of each control in the picture in a preset delimitation manner.

### Claim 4 (depends on 3)

The method for implementing regional screen capture according to claim 3, wherein, the boundary position of each control on the screen refers to a border of a rectangular region determined by values of an X coordinate and a Y coordinate of an upper left corner of the control and values of an X coordinate and a Y coordinate of a lower right corner of the control.

### Claim 5 (depends on 3)

The method for implementing regional screen capture according to claim 3, further comprising: buffering information about all controls of which boundaries were marked in a memory by a manner of a control tree.

### Claim 6 (depends on 5)

The method for implementing regional screen capture according to claim 5, wherein, the step of along the determined boundary position, marking parsed boundary of each control in the picture in a preset delimitation manner comprises:
for a control which is located at an outermost layer as a root node in the control tree, not marking; and
for a control of which a width and height are less than a preset threshold, using the control as a part of a parent control of the control, that is, an attached child control, not marking.

### Claim 7 (depends on 6)

The method for implementing regional screen capture according to claim 6, wherein, the step of selecting one or more controls required to be captured according to a mark comprises:
when one parent control is selected, the attached child control of the parent control being also selected; and
when one parent control is selected, a non-attached child control of the parent control being not selected, wherein the non-attached child control of the parent control refers to a child control that is marked with a boundary in the parent control.

### Claim 8 (depends on 1)

The method for implementing regional screen capture according to claim 1, wherein, the step of capturing the content displayed on one or more determined capture regions comprises:
retaining the content of the capture region, and retaining a picture pixel value of the capture region unchanged at the same time; displaying a picture of an unselected region as a black or white, or displaying the picture of the unselected region as other set background color.

### Claim 9 (depends on 1)

The method for implementing regional screen capture according to claim 1, further comprising: performing the step of selecting on the capture region again to cancel the capture region.

### Claim 10

A device for implementing regional screen capture, comprising a first processing module and a second processing module; wherein,
the first processing module is configured to receive a screen capture instruction, capture a full content of a current screen interface and generate a picture; parse layout information of the current screen interface, and output the parsed layout information and the picture information to the second processing module; and
the second processing module is configured to mark a control in the picture by using the acquired layout information; receive a selection instruction, and select one or more controls required to be captured according to a mark; determine a capture region according to the selected control/controls, and capture the content displayed on the capture region.

### Claim 11 (depends on 10)

The device for implementing regional screen capture according to claim 10, wherein, the first processing module is configured to parse layout information of the current screen interface in the following manner: acquiring a layout file of the current screen interface through a function interface; parsing the layout file, and acquiring coordinate position information of each control.

### Claim 12 (depends on 10)

The device for implementing regional screen capture according to claim 10, wherein, the second processing module is configured to mark a control in the picture by using the acquired layout information in the following manner: determining a boundary position of each control on the screen according to the coordinate position information respectively; along the determined boundary position, marking parsed boundary of each control in the picture in a preset delimitation manner.

### Claim 13 (depends on 12)

The device for implementing regional screen capture according to claim 12, wherein, the boundary position of each control on the screen refers to a border of a rectangular region determined by values of an X coordinate and a Y coordinate of an upper left corner of the control and values of an X coordinate and a Y coordinate of a lower right corner of the control.

### Claim 14 (depends on 12)

The device for implementing regional screen capture according to claim 12, the second processing module is further configured to buffer information about all controls of which the boundaries were marked in a memory by a manner of a control tree.

### Claim 15 (depends on 14)

The device for implementing regional screen capture according to claim 14, the second processing module is configured to, along the determined boundary position, mark parsed boundary of each control in the picture in a preset delimitation manner in the following manner:
for a control which is located at the outermost layer as a root node in the control tree, not marking; and
for a control of which a width and height are less than a preset threshold, using the control as a part of a parent control of the control, that is, an attached child control, not marking.

### Claim 16 (depends on 15)

The device for implementing regional screen capture according to claim 15, wherein, the second processing module is configured to select one or more controls required to be captured according to a mark in the following manner:
when one parent control is selected, an attached child control of the parent control is also selected; and
when one parent control is selected, a non-attached child control of the parent control is not selected, wherein the non-attached child control of the parent control refers to a child control that is marked with a boundary in the parent control.

### Claim 17 (depends on 10)

The device for implementing regional screen capture according to claim 10, wherein, the second processing module is configured to capture the content displayed on one or more determined capture regions in the following manner:
receiving the selection instruction, retaining the content of the capture region, and retaining a picture pixel value of the capture region unchanged at the same time; displaying a picture of an unselected region as a black or white or other set background color.

### Claim 18 (depends on 10)

The device for implementing regional screen capture according to claim 10, wherein, the second processing module is further configured to,
when receiving an instruction of performing the selection again on the capture region, cancel the selection for the capture region.

### Claim 19

A terminal, comprising a display screen and a processor, wherein:
the processor is configured to capture a full content of a current screen interface according to a screen capture instruction and generate a picture; parse layout information of the current screen interface; and mark a control in the picture by using the acquired layout information; select one or more controls required to be captured according to a mark; determine a capture region according to the selected control, and capture a content displayed on the capture region; and
the display screen is configured to display the captured content.
