Method, apparatus, and computer-readable storage medium for area identification
AssigneeXiaomi Inc.
InventorsFei Long, Tao Zhang, Zhijun Chen
Life of this patent
Estimating the term…
Abstract
A method for area identification includes identifying a plurality of candidate predefined edges in a document image of a document. The candidate predefined edges are edges in a predefined direction of the document. The method further includes determining one of the candidate predefined edges to be a target predefined edge and identifying at least one information area in the document image based on the target predefined edge.
Claims13
A method for area identification, comprising:
- identifying a plurality of candidate predefined edges in a document image of a document, the candidate predefined edges being edges in a predefined direction of the document;
- determining one of the candidate predefined edges to be a target predefined edge;
- and
- identifying at least one information area in the document image based on the target predefined edge,
- wherein determining one of the candidate predefined edges to be the target predefined edge includes:
- sorting the candidate predefined edges to obtain sorted candidate predefined edges;
- setting one of the sorted candidate predefined edges as a trial predefined edge;
- performing an attempted identification of a target information area in the document image using the trial predefined edge and a relative positional relation between the target predefined edge and the target information area;
- if the attempted identification using the trial predefined edge is successful:
- determining the trial predefined edge to be the target predefined edge;
- and
- if the attempted identification using the trial predefined edge is not successful:
- setting a next one of the sorted candidate predefined edge as a new trial predefined edge;
- and
- repeating the attempted identification of the target information area using the new trial predefined edge and the relative positional relation.
A device for area identification, comprising:
- a processor;
- and
- a memory storing instructions that, when executed by the processor, cause the processor to:
- identify a plurality of candidate predefined edges in a document image of a document, the candidate predefined edges being edges in a predefined direction of the document;
- determine one of the candidate predefined edges to be a target predefined edge;
- and
- identify at least one information area in the document image based on the target predefined edge,
- wherein the instructions, when executed by the processor, further cause the processor to:
- sort the candidate predefined edges to obtain sorted candidate predefined edges;
- set one of the sorted candidate predefined edges as a trial predefined edge;
- perform an attempted identification of a target information area in the document image using the trial predefined edge and a relative positional relation between the target predefined edge and the target information area;
- if the attempted identification using the trial predefined edge is successful:
- determine the trial predefined edge to be the target predefined edge;
- and
- if the attempted identification using the trial predefined edge is not successful:
- set a next one of the sorted candidate predefined edge as a new trial predefined edge;
- and
- repeat the attempted identification of the target information area using the new trial predefined edge and the relative positional relation.
A non-transitory computer readable storage medium having stored therein instructions that, when executed by a processor of a device, cause the processor to:
- identify a plurality of candidate predefined edges in a document image of a document, the candidate predefined edges being edges in a predefined direction of the document;
- determine one of the candidate predefined edges to be a target predefined edge;
- and
- identify at least one information area in the document image based on the target predefined edge,
- wherein the instructions, when executed by the processor, further cause the processor to:
- sort the candidate predefined edges to obtain sorted candidate predefined edges;
- set one of the sorted candidate predefined edges as a trial predefined edge;
- perform an attempted identification of a target information area in the document image using the trial predefined edge and a relative positional relation between the target predefined edge and the target information area;
- if the attempted identification using the trial predefined edge is successful:
- determine the trial predefined edge to be the target predefined edge;
- and
- if the attempted identification using the trial predefined edge is not successful:
- set a next one of the sorted candidate predefined edge as a new trial predefined edge;
- and
- repeat the attempted identification of the target information area using the new trial predefined edge and the relative positional relation.
Dependencies are inferred from the claim text.