×

Character recognition method and device

  • US 9,349,062 B2
  • Filed: 01/23/2015
  • Issued: 05/24/2016
  • Est. Priority Date: 07/16/2013
  • Status: Active Grant
First Claim
Patent Images

1. A character recognition method implemented on a processor and a memory, the memory including instructions to configure the processor to perform the method comprising:

  • acquiring an image and locating a character region in the image by the processor, wherein the character region comprises a character and a local background;

    calculating, by the processor, a first ratio comprising a ratio of number of pixels corresponding to a main color of the local background and a total number of pixels of the local background;

    determining, by the processor, that the local background is a complex background in response to the first ratio being less than a first threshold;

    calculating, by the processor, a second ratio comprising a ratio of number of pixels corresponding to a main color of a whole background of the image and a total number of pixels of the whole background in response to the first ratio not being less than the first threshold;

    determining, by the processor, that the local background is a complex background in response to the second ratio being less than another threshold;

    determining, by the processor, a color of the character in response to the local background being a complex background;

    constructing, by the processor, a mask for the character by combining the color of the character and a color of the character region;

    extracting, by the processor, the character from the character region by using the mask; and

    recognizing the character and outputting the recognition result by the processor.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×