Method and apparatus for recognizing imaged information-bearing medium, computer device and medium
AssigneeBoe Technology Group Co., Ltd.
InventorsGuangwei Huang, Ruibin Xue, Bingchuan Shi, Yue Li, Jibo Zhao
Life of this patent
Estimating the term…
Abstract
A method and apparatus for recognizing an imaged information-bearing medium, a computer-readable storage device and a computer device are provided. The method comprising: acquiring a first image of the imaged information-bearing medium; performing text recognition on the first image to acquire a text content of the imaged information-bearing medium; classifying the imaged information-bearing medium to acquire a type of the imaged information-bearing medium; and archiving the text content according to the type.
Claims14
A method for recognizing an imaged information-bearing medium, including:
- acquiring a first image of the imaged information-bearing medium comprising:
- performing target detection and correction on the imaged information-bearing medium in an original image based on the acquired original image to acquire the first image;
- performing text recognition on the first image to acquire a text content of the imaged information-bearing medium;
- classifying the imaged information-bearing medium to acquire a type of the imaged information-bearing medium;
- and
- archiving the text content according to the type,
- wherein performing text recognition on the first image to acquire a text content of the imaged information-bearing medium includes:
- performing text detection on the first image to acquire multiple second images;
- and
- recognizing the multiple second images with a preset text recognition network model to acquire the text content of the imaged information-bearing medium;
- wherein performing target detection and correction on the imaged information-bearing medium in an original image based on the acquired original image to acquire the first image comprises:
- performing image binarization based on the acquired original image;
- performing edge detection to acquire an outline of the largest rectangle in the original image, or performing straight line detection to acquire groups of a horizontal straight line set and a vertical straight line set, and merging approximate parallel lines to determine an optimal boundary and vertices of the imaged information-bearing medium;
- segmenting the first image from the original image by perspective transformation.
An apparatus for recognizing an imaged information-bearing medium, comprising:
- a distortion correction module configured to acquire a first image of the imaged information-bearing medium, wherein in order to acquire a first image of the imaged information-bearing medium, the distortion correction module is configured to:
- perform target detection and correction on the imaged information-bearing medium in an original image based on the acquired original image to acquire the first image;
- a text recognition module configured to perform text recognition on the first image to acquire a text content of the imaged information-bearing medium;
- an imaged information-bearing medium classification module configured to classify the imaged information-bearing medium to acquire a type of the imaged information-bearing medium;
- and
- a text archiving module configured to archive the text content according to the type,
- wherein the text recognition module is further configured to:
- perform text detection on the first image to acquire multiple second images;
- and
- recognize the multiple second images with a preset text recognition network model to acquire the text content of the imaged information-bearing medium;
- wherein in order to perform target detection and correction on the imaged information-bearing medium in an original image based on the acquired original image to acquire the first image, the distortion correction module is further configured to:
- perform image binarization based on the acquired original image;
- perform edge detection to acquire an outline of the largest rectangle in the original image, or perform straight line detection to acquire groups of a horizontal straight line set and a vertical straight line set, and merge approximate parallel lines to determine an optimal boundary and vertices of the imaged information-bearing medium;
- segment the first image from the original image by perspective transformation.
Dependencies are inferred from the claim text.