Character recognition method and apparatus, electronic device, and storage medium
AssigneesBeijing Xiaomi Mobile Software Co., Ltd., Beijing Xiaomi Pinecone Electronics Co., Ltd.
InventorDong Wang
Life of this patent
Estimating the term…
Abstract
A method, apparatus, electronic device, and storage medium for character recognition are provided. The method may perform image processing on an acquired original image to obtain a region to be recognized. The region may include a character. The method may determine an area ratio of the region to be recognized on the original image. The method may determine an angle between the region to be recognized and a preset direction. The method may determine a character density of the region to be recognized. The method may perform character recognition on the character in the region to be recognized in response to determining that the area ratio is greater than a ratio threshold, the angle is less than an angle threshold, and the character density is less than a density threshold.
Claims20
A method for character recognition, comprising:
- performing image processing on an acquired original image to obtain a region to be recognized, wherein the region comprises a character;
- determining an area ratio of the region to be recognized on the original image;
- determining an angle between the region to be recognized and a preset direction;
- determining a character density of the region to be recognized;
- and
- performing character recognition on the character in the region to be recognized in response to determining that the area ratio is greater than a ratio threshold, the angle is less than an angle threshold, and the character density is less than a density threshold.
An apparatus, comprising:
- one or more processors;
- and
- a non-transitory computer-readable storage medium storing instructions executable by the one or more processors;
- wherein the one or more processors are configured to:
- perform image processing on an acquired original image to obtain a region to be recognized, wherein the region comprises a character;
- determine an area ratio of the region to be recognized on the original image;
- determine an angle between the region to be recognized and a preset direction;
- determine a character density of the region to be recognized;
- and
- perform character recognition on the character in the region to be recognized in response to the area ratio being greater than a ratio threshold, the angle being less than an angle threshold, and the character density being less than a density threshold.
A non-transitory computer-readable storage medium storing instructions for execution by a computing device having one or more processors, wherein the instructions, when executed by one or more processors, cause the computing device to perform acts comprising:
- performing image processing on an acquired original image to obtain a region to be recognized, wherein the region comprises a character;
- determining an area ratio of the region to be recognized on the original image;
- determining an angle between the region to be recognized and a preset direction;
- determining a character density of the region to be recognized;
- and
- performing character recognition on the character in the region to be recognized in response to determining that the area ratio is greater than a ratio threshold, the angle is less than an angle threshold, and the character density is less than a density threshold.
Dependencies are inferred from the claim text.