# US 2019/0356861 A1 · Processing Method and Mobile Device

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

- Number: US 2019/0356861 A1
- Document ID: US20190356861A1
- Status: Published application
- Kind: A1
- Application number: 16/332,561
- Filed: 2016-09-12
- Published: 2019-11-21
- Earliest claimed: 2016-09-12
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xiaojuan Li; Chao Qin; Wenmei Gao
- Web page: https://patentgrep.com/patent/US20190356861A1

## CPC

- H04N 1/387: Composing, repositioning or otherwise {geometrically} modifying originals
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/80: Geometric correction
- G06T 7/13: Edge detection
- G06V 10/10: Image acquisition (document image scanning and transmission H04N1/00; control of digital cameras H04N23/60)
- H04N 1/3873: {defined only by a limited number of coordinate points or parameters, e.g. corners, centre; for trimming}
- H04N 1/3878: {Skew detection or correction}
- H04N 23/675: {comprising setting of focusing regions}
- G06T 2207/20221: Image fusion; Image merging
- G06T 2207/30176: Document
- H04W 88/02: Terminal devices
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A processing method, which includes receiving a photographing instruction in order to trigger a camera to photograph a target document, identifying four sides of a document image corresponding to the target document, determining a first included angle corresponding to the document image, where the first included angle represents an inclination degree of the document image relative to the target document, triggering the camera to reset a focus location in a direction of far-end content in the document image, and taking n pictures when the first included angle is greater than a preset threshold, applying geometric correction to the pictures obtained through photographing, outputting one of the pictures to which geometric correction has been applied. Hence, the method significantly increase definition of the far-end content in the document image, and improve correction quality of the document image.

## Claims

### Claim 1

A processing method, applied to an electronic device, the processing method comprising:
receiving a photographing instruction;
determining, through edge detection, four sides of a document image corresponding to a target document in a preview box of the electronic device;
determining, based on the four sides, a first included angle corresponding to the document image, wherein the first included angle represents an inclination degree of the document image relative to the target document, and wherein the first included angle is positively correlated with an inclination angle of an image plane of a camera relative to the target document;
triggering the camera to reset a focus location in a direction of far-end content in the document image and taking n pictures when the first included angle is greater than a preset threshold, wherein n is an integer greater than or equal to one;
applying geometric correction to at least one of the n pictures; and
outputting, in response to the photographing instruction, one of the at least one picture to which geometric correction has been applied.

### Claim 2 (depends on 1)

The processing method of claim 1, wherein determining the first included angle comprises:
obtaining lengths of k1, k2, k3, and k4 of the four sides, wherein k1 and k3 correspond to opposite sides, wherein k1/k3≥one, wherein k2 and k4 correspond to opposite sides, and wherein k2/k4≥one;
calculating side ratios of two pairs of opposite sides, wherein side ratios are k1/k3 and k2/k4;
determining either k1 as a main side when k1/k3 is greater than k2/k4 or k2 as the main side when k2k4 is greater than k1/k3; and
determining, as the first included angle, an included angle formed by intersection of two lateral sides of the main side.

### Claim 3 (depends on 1)

The processing method of claim 1, wherein determining the first included angle comprises:
obtaining lengths k1, k2, k3, and k4 of the four sides, wherein k1 and k3 correspond to opposite sides, and wherein k2 and k4 correspond to opposite sides;
calculating a second included angle formed between k1 and k3 and a third included angle formed between k2 and k4; and
determining, as the first included angle, a larger of the second included angle and the third included angle.

### Claim 4 (depends on 3)

The processing method of claim 3, wherein n≥two, and wherein triggering the camera to reset the focus location in the direction of the far-end content in the document image and taking the n pictures comprises:
moving a photographing focus in the direction of the far-end content in the document image; and
obtaining the n pictures through photographing.

### Claim 5 (depends on 3)

The processing method of claim 3, wherein n≥two, and wherein triggering the camera to reset the focus location in a direction of the far-end content in the document image and taking the n pictures comprises:
moving a photographing focus t times in the direction of the far-end content in the document image; and
taking at least one picture each time after moving the photographing focus, wherein t is an integer greater than or equal to one and less than or equal to n.

### Claim 6 (depends on 5)

The processing method of claim 5, wherein before triggering the camera to reset the focus location in the direction of the far-end content in the document image, the processing method further comprises taking at least one picture.

### Claim 7 (depends on 6)

The processing method of claim 6, wherein triggering the camera to reset the focus location in the direction of the far-end content in the document image comprises:
calculating an angle difference between the first included angle and the preset threshold;
determining a moving distance of the photographing focus based on the angle difference; and
moving the photographing focus in the direction of the far-end content in the document image by the moving distance.

### Claim 8

A processing method, applied to a mobile device, the processing method comprising:
receiving a photographing instruction;
determining, through edge detection, four sides of a document image corresponding to a target document in a preview box of the mobile device;
determining, based on the four sides, a first included angle corresponding to the document image, wherein the first included angle represents an inclination degree of the document image relative to the target document, and wherein the first included angle is positively correlated, with an inclination angle of an image plane of a camera relative to the target document;
triggering the camera to take k pictures when the first included angle is grater than a preset threshold, wherein k≥two, and wherein k is a positive integer;
applying image correction to the k pictures obtained through photographing; and
outputting, in response to the photographing instruction, one picture obtained through image correction, wherein far-end content in the picture obtained through image correction is clearer than far-end content in the document image.

### Claim 9 (depends on 8)

The processing method of claim 8, wherein determining the first included angle comprises:
obtaining lengths k1, k2, k2, k3, and k4 of the four sides, wherein k1 and k3 correspond to opposite sides, wherein k1/k3≥one, wherein k2 and k4 correspond to opposite sides, and wherein k2/k4≥one;
calculating side ratios of two pairs of opposite sides, wherein side ratios are k1/k3 and k2/k3;
determining either k1 as a main side when k1/k3 is greater than k2/k4 or k2 as the main side when k2/k1 is greater than k1/k3; and
determining, as the first included angle, an included angle formed by intersection of two lateral sides of the main side.

### Claim 10 (depends on 8)

The processing method if claim 8, wherein determining the first included angle comprises:
obtaining lengths k1, k2, k3, and k4 of the four sides, wherein k1 and k3 correspond to opposite sides, and wherein k2 and k4 correspond to opposite sides;
calculating a second included angle formed between k1 and k3 and a third included angle formed between k2 and k4; and
determining, as the first included angle, a larger of the second included angle and the third included angle.

### Claim 11 (depends on 10)

The processing method of claim 10, wherein the applying image correction to the k pictures comprises:
applying geometric correction to at least two of the k pictures;
dividing, into m image blocks, each of the at least two of the k pictures to which geometric correction has been applied, wherein m≥two, and wherein m is a positive integer;
selecting, with respect to a same image block from the at least two of the k pictures, an image block with a highest definition as a to-be-spliced image block;
performing image splicing on m selected to-be-spliced image blocks; and
setting, as an output, one picture obtained through splicing.

### Claim 12 (depends on 1)

The processing method of claim 1, wherein applying image correction to the k pictures comprises:
dividing each of at least two of the k pictures into m image blocks, wherein m≥two, and wherein m is a positive integer;
selecting, with respect to a same image block from the at least two of the k pictures, an image block with highest definition as a to-be-spliced image block;
performing image splicing on m selected to-be-spliced image blocks;
obtaining one picture through splicing;
applying geometric correction to the one picture; and
outputting the picture to which geometric correction has been applied in response to the photographing instruction.

### Claim 13

A mobile device, comprising:
a user input apparatus configured to receive a photographing instruction;
a camera coupled to the user input apparatus and configured to obtain a document image of a target document; and
a processor coupled to the user input apparatus and the camera and configured to:
determine, through edge detection, four sides of the document image corresponding to the target document in a preview box of the mobile device;
determine, based on the four sides, a first included angle corresponding to the document image, wherein the first included angle represents an inclination degree of the document image relative to the target document, and wherein the first included angle is positively correlated with an inclination angle of an image plane of the camera relative to the target document;
determine whether the first included angle is greater than a preset threshold;
trigger the camera to reset a focus location in a direction of far-end content in the document image and take n pictures, wherein the first included angle is greater than the preset threshold, and wherein n is an integer greater than or equal to one;
apply geometric correction to at least one of the n pictures obtained through photographing; and
output, in response to the photographing instruction, one of the at least one picture to which geometric correction has been applied.

### Claim 14 (depends on 13)

The mobile device of claim 13, wherein the n≥two, and wherein the camera is further configured to:
move a photographing focus in the direction of the far-end content in the document image; and
obtain the n pictures through photographing.

### Claim 15 (depends on 13)

The mobile device of claim 13, wherein n≥two, and wherein the camera is further configured to:
move a photographing focus t times in the direction of the far-end content in the document image; and
take at least one picture each time after moving the photographing focus, wherein t is an integer greater than or equal to one and less than or equal to n.

### Claim 16 (depends on 15)

The mobile device of claim 15, wherein the camera is further configured to take at least one picture before resetting the focus location in a direction of the far-end content in the document image.

### Claim 17

A mobile device, comprising:
a user input apparatus configured to receive a photographing instruction;
a camera coupled to the user input apparatus configured to obtain a document image of a target document;
a processor coupled to the user input apparatus and the camera and configured to:
determine, through edge detection, four sides of the document image corresponding to the target document in a preview box of the mobile device;
determine, based on the four sides, a first included angle corresponding to the document image, wherein the first included angle represents an inclination degree of the document image relative to the target document, and wherein the first included angle is positively correlated with an inclination angle of an image plane of the camera relative to the target document;
determine whether the first included angle is greater than a preset threshold;
trigger the camera to take k pictures, wherein the first included angle is greater than the preset threshold, wherein k≥two, and wherein k is a positive integer;
apply image correction to the k pictures; and
output, in response to the photographing instruction, one picture obtained through the image correction, wherein far-end content in the picture obtained through image correction is clearer than far-end content in the document image.

### Claim 18 (depends on 17)

The mobile device of claim 17, wherein the processor is further configured to:
apply geometric correction to the k pictures;
divide, into m image blocks, each of the k pictures to which geometric correction has been applied, wherein m≥two, and wherein m is a positive integer;
select, with respect to a same image block from the k pictures, an image block with highest definition as a to-be-spliced image block;
perform image splicing on m selected to-be-spliced image blocks; and
set, as the output, one picture obtained through splicing.

### Claim 19 (depends on 17)

The mobile device of claim 17, wherein the processor is further configured to:
divide each of the k pictures into m image blocks, wherein m≥two, and wherein m is a positive integer;
select, with respect to a same image block from the k pictures, an image block with highest definition as a to-be-spliced image block;
perform image splicing on m selected to-be-spliced image blocks;
obtain one picture obtained through splicing;
apply geometric correction to the one picture; and
output the picture to which geometric correction has been applied.

### Claim at position 20

-22. (canceled)
