Text detection method and apparatus, and storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorYafei Wen
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure provide a text detection method and apparatus, and a storage medium. The method includes: obtaining edge information of a to-be-detected image; and determining candidate text pixels in the to-be-detected image according to the edge information of the to-be-detected image by using a preset candidate text pixel determining strategy. The method also includes performing projection based segmentation on the candidate text pixels to obtain a projection based segmentation result. The method also includes determining one or more text regions in the to-be-detected image according to the projection based segmentation result.
Claims18
A text detection method, comprising:
- collecting, by a computing device, statistics on distribution of pixel values in a gray level histogram of an image;
- determining, by the computing device, an image type of the image according to statistics on the distribution of pixel values;
- obtaining, by the computing device, edge information of the image according to the image type of the image;
- determining, by the computing device, candidate text pixels in the image according to the edge information of the image by using a preset candidate text pixel determining strategy;
- performing, by the computing device, projection based segmentation on the candidate text pixels to obtain a projection based segmentation result;
- and
- determining, by the computing device, one or more text regions in the image according to the projection based segmentation result.
A text detection apparatus, comprising:
- a memory configured to store an executable program;
- and a processor coupled to the memory and configured to:
- collect statistics on distribution of pixel values in a gray level histogram of an image;
- determine an image type of the image according to statistics on the distribution of pixel values;
- obtain edge information of the image;
- determine candidate text pixels in the to-be-detected image according to the edge information of the image by using a preset candidate text pixel determining strategy;
- perform projection based segmentation on the candidate text pixels to obtain a projection based segmentation result;
- and
- determine one or more text regions in the to-be-detected image according to the projection based segmentation result.
A non-transitory storage medium, storing an executable program, when being executed by a processor, the program cause the processor to:
- collect statistics on distribution of pixel values in a gray level histogram of an image;
- determine an image type of the image according to statistics on the distribution of pixel values;
- obtain edge information of the image;
- determine candidate text pixels in the image according to the edge information of the image by using a preset candidate text pixel determining strategy;
- perform projection based segmentation on the candidate text pixels to obtain a projection based segmentation result;
- and
- determine one or more text regions in the image according to the projection based segmentation result.
Dependencies are inferred from the claim text.