WO2017071063A1 - 区域识别方法及装置 - Google Patents
区域识别方法及装置 Download PDFInfo
- Publication number
- WO2017071063A1 WO2017071063A1 PCT/CN2015/099299 CN2015099299W WO2017071063A1 WO 2017071063 A1 WO2017071063 A1 WO 2017071063A1 CN 2015099299 W CN2015099299 W CN 2015099299W WO 2017071063 A1 WO2017071063 A1 WO 2017071063A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- abscissa
- histogram
- accumulated value
- threshold
- text
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000005516 engineering process Methods 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 13
- 230000001186 cumulative effect Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 238000007781 pre-processing Methods 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/26—Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- G06V10/267—Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/14—Image acquisition
- G06V30/148—Segmentation of character regions
- G06V30/153—Segmentation of character regions using recognition of characters or words
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/40—Document-oriented image-based pattern recognition
- G06V30/41—Analysis of document content
- G06V30/414—Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/40—Image enhancement or restoration using histogram techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/50—Extraction of image or video features by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
- G06V10/507—Summing image-intensity values; Histogram projection analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/75—Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
- G06V10/758—Involving statistics of pixels or of feature values, e.g. histogram matching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/14—Image acquisition
- G06V30/146—Aligning or centring of the image pick-up or image-field
- G06V30/1475—Inclination or skew detection or correction of characters or of image to be recognised
- G06V30/1478—Inclination or skew detection or correction of characters or of image to be recognised of characters or characters lines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/28—Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet
- G06V30/287—Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet of Kanji, Hiragana or Katakana characters
Definitions
- the present disclosure relates to the field of image processing, and in particular, to an area recognition method and apparatus.
- the terminal Before the terminal recognizes the text in the image, the terminal needs to recognize the character region of the character first.
- An area recognition method provided in the related art includes: removing a background in an image by a terminal, extracting a foreground image; and then identifying an edge of the extracted foreground image by an edge enhancement technique; determining the edge of each character according to the identification The character area of each text.
- the present disclosure provides a region identification method and device.
- the technical solution is as follows:
- a region identification method comprising:
- the histogram comprising: an abscissa of each column of pixels and an accumulated value of foreground pixels in each column of pixels;
- the character area of the text in the text area is identified based on the distribution information of the accumulated values in the histogram.
- the character area of the text in the text area is identified according to the distribution information of the accumulated value in the histogram, including:
- each set of abscissas including a first abscissa and a first second abscissa located on a right side of the first abscissa; the first abscissa and the first cross
- the accumulated value corresponding to the adjacent abscissa on the right side of the coordinate is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the left side of the first abscissa is smaller than the second threshold; the second abscissa and the left side of the second abscissa
- the accumulated value corresponding to the adjacent abscissa is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa of the right side of the second abscissa is less than the second threshold;
- the pixel column in which the first abscissa is located is recognized as the left edge of one character region, and the pixel column in which the second abscissa is located is recognized as the right edge of the character region.
- determining a plurality of sets of abscissas according to the distribution information of the accumulated values in the histogram including:
- a third abscissa in the histogram wherein the third abscissa is: an abscissa corresponding to a left edge of the character region of the first valid character in the plurality of characters in the histogram, Or, the right edge of the character region of the last valid text of the plurality of characters is in the abscissa corresponding to the histogram;
- the third abscissa is used as the search starting point, and a plurality of sets of abscissas are searched based on the distribution information of the accumulated values according to the predetermined direction.
- the third abscissa is the abscissa corresponding to the left edge of the character region of the first valid character of the plurality of characters in the histogram, and the third abscissa is used as the search starting point, and the accumulated value is based on the predetermined direction.
- the distribution information searches for several sets of abscissas, including:
- the first abscissa in the i-th group abscissa in the histogram is used as the search starting point, and the first fourth abscissa, the fourth abscissa and the left side of the fourth abscissa are searched to the right.
- the accumulated value corresponding to the adjacent abscissa is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the right side of the fourth abscissa is smaller than the second threshold; 1 ⁇ i ⁇ n, i is a positive integer with an initial value of 1, n is The number of valid characters in a number of characters; the first abscissa in the first set of coordinates is the third abscissa;
- the fourth abscissa in the histogram is used as the search starting point, and the first fifth abscissa, the fifth abscissa and the accumulated value corresponding to the adjacent abscissa on the right side of the fifth abscissa are searched to the right side. Greater than the first threshold, the accumulated value corresponding to the adjacent abscissa on the left side of the fifth abscissa is smaller than the second threshold;
- the third abscissa is the abscissa corresponding to the right edge of the character region of the last valid character of the plurality of characters in the histogram, and the third abscissa is used as the search starting point, according to the predetermined direction base.
- the distribution information of the accumulated value is searched for several sets of abscissas, including:
- the second abscissa in the jth group coordinate in the histogram is used as the search starting point, and the first sixth abscissa, the sixth abscissa and the adjacent horizontal side of the sixth abscissa are searched to the left.
- the accumulated value corresponding to the coordinate is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the left side of the sixth abscissa is smaller than the second threshold; 1 ⁇ j ⁇ n, j is a positive integer with an initial value of n, and n is a plurality of The number of valid characters in the text;
- the second abscissa in the nth group coordinate is the third abscissa;
- the six horizontal coordinates in the histogram are used as the search starting point, and the first seventh horizontal coordinate is searched to the left side, and the cumulative value corresponding to the adjacent horizontal coordinate on the left side of the seventh horizontal coordinate and the seventh horizontal coordinate is greater than
- the first threshold the accumulated value corresponding to the adjacent abscissa on the right side of the seventh abscissa is smaller than the second threshold; 1 ⁇ j ⁇ n, j is a positive integer whose initial value is n;
- the third abscissa is the abscissa corresponding to the left edge of the character region of the first valid character of the plurality of characters in the histogram, and the third cross in the histogram is identified according to the distribution information of the accumulated value. Coordinates, including:
- the plurality of characters include valid text and invalid text, and the first distance between the valid text and the invalid text is greater than the second distance between the adjacent two valid characters; starting from the preset abscissa in the histogram, to the left
- the side queries the first gap whose width is greater than the second distance, and determines the abscissa whose accumulated value of the first foreground pixel located on the right side of the gap is greater than the first threshold as the third abscissa; the preset abscissa belongs to the preset interval.
- the preset interval is an interval set according to the empirical value; the accumulated value of the foreground color pixel of the gap is smaller than the second threshold;
- a plurality of characters are valid characters, and the abscissa whose accumulated value of the first foreground pixel on the left side in the histogram is greater than the first threshold is determined as the third abscissa.
- the third abscissa is the abscissa corresponding to the right edge of the character region of the last valid character in the plurality of characters in the histogram, and the third abscissa in the histogram is identified according to the distribution information of the accumulated value.
- the plurality of characters include valid text and invalid text, and the first distance between the valid text and the invalid text is greater than the second distance between the adjacent two valid characters, starting from the preset abscissa in the histogram, to the right
- the side query width is greater than the gap of the second distance, and will be located at the first foreground pixel on the left side of the gap.
- the abscissa whose accumulated value is greater than the first threshold is determined as the third abscissa;
- the preset abscissa is the coordinate belonging to the preset interval, and the preset interval is the interval set according to the empirical value;
- the accumulated value of the foreground color pixel of the gap is smaller than the Two thresholds;
- a plurality of characters are valid characters, and the abscissa whose accumulated value of the first foreground pixel on the right side of the histogram is greater than the first threshold is determined as the third abscissa.
- the method further includes:
- the horizontal histogram comprising: a vertical coordinate of each row of pixels and an accumulated value of foreground pixels in each row of pixels;
- each set of vertical coordinates including a first vertical coordinate and a second vertical coordinate located at a lower side of the first vertical coordinate; for each set of vertical coordinates, the first The pixel row where the vertical coordinate is located is recognized as the upper edge of the line of text, and the pixel row where the second vertical coordinate is located is recognized as the lower edge of the text region; the first vertical coordinate and the adjacent vertical coordinate of the lower side of the first vertical coordinate correspond to The accumulated value is greater than the first threshold, and the accumulated value corresponding to the adjacent vertical coordinate of the upper side of the first vertical coordinate is smaller than the second threshold; and the accumulated value corresponding to the adjacent vertical coordinate of the second vertical coordinate and the upper side of the second vertical coordinate is greater than the first a threshold value, and the accumulated vertical value corresponding to the adjacent vertical coordinate of the lower side of the second vertical coordinate is smaller than the second threshold;
- the step of binarizing the text area to obtain the binarized text area is performed, m ⁇ k ⁇ 1, k is a positive integer, and m is the total number of lines identified.
- an area identifying apparatus comprising:
- the first binarization module is configured to perform binarization on the text area to obtain a binarized text area, where the text area includes a plurality of characters belonging to the same line;
- a first calculating module configured to calculate a histogram according to a vertical direction of the binarized text area, the histogram comprising: an abscissa of each column of pixels and an accumulated value of foreground pixels in each column of pixels;
- the area identification module is configured to recognize the character area of the text in the text area based on the distribution information of the accumulated values in the histogram.
- the area identification module includes:
- a coordinate determination submodule configured to determine a plurality of sets of abscissas according to the distribution information of the accumulated values in the histogram, each set of abscissas including a first abscissa and a first second cross on the right side of the first abscissa
- the first abscissa and the accumulated abscissa corresponding to the adjacent abscissa on the right side of the first abscissa are greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the left side of the first abscissa is smaller than the second threshold;
- the cumulative value corresponding to the abscissa and the adjacent abscissa on the left side of the second abscissa is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the right side of the second abscissa is less than the second threshold;
- the region identification sub-module is configured to identify, for each set of abscissas, a pixel column in which the first abscissa is located as a left edge of one character region, and a pixel column in which the second abscissa is located as a right edge of the character region.
- the coordinate determination sub-module includes:
- the coordinate recognition sub-module is configured to identify a third abscissa in the histogram according to the distribution information of the accumulated value, and the third abscissa is: a left edge of the character region of the first valid character in the plurality of characters in the histogram The coordinates corresponding to the coordinates, or the coordinates of the right edge of the character region of the last valid text of the plurality of characters in the histogram;
- the coordinate search sub-module is configured to search for a plurality of sets of abscissas based on the distribution information of the accumulated values according to the predetermined direction with the third abscissa as the search starting point.
- the third abscissa is an abscissa corresponding to a left edge of a character region of the first valid text of the plurality of characters in the histogram;
- the coordinate search submodule is also configured to:
- the first abscissa in the i-th group abscissa in the histogram is used as the search starting point, and the first fourth abscissa, the fourth abscissa and the left side of the fourth abscissa are searched to the right.
- the accumulated value corresponding to the adjacent abscissa is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the right side of the fourth abscissa is smaller than the second threshold; 1 ⁇ i ⁇ n, i is a positive integer with an initial value of 1, n is The number of valid characters in a number of characters; the first abscissa in the first set of coordinates is the third abscissa;
- the fourth abscissa in the histogram is used as the search starting point, and the first fifth abscissa, the fifth abscissa and the accumulated value corresponding to the adjacent abscissa on the right side of the fifth abscissa are searched to the right side. Greater than the first threshold, the accumulated value corresponding to the adjacent abscissa on the left side of the fifth abscissa is smaller than the second threshold;
- the third abscissa is an abscissa corresponding to a right edge of a character region of a last valid text of the plurality of characters in the histogram;
- the coordinate search submodule is also configured to:
- the second abscissa in the jth group coordinate in the histogram is used as the search starting point, and the first sixth abscissa, the sixth abscissa and the adjacent horizontal side of the sixth abscissa are searched to the left.
- the accumulated value corresponding to the coordinate is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the left side of the sixth abscissa is smaller than the second threshold; 1 ⁇ j ⁇ n, j is a positive integer with an initial value of n, and n is a plurality of The number of valid characters in the text;
- the second abscissa in the nth group coordinate is the third abscissa;
- the six horizontal coordinates in the histogram are used as the search starting point, and the first seventh horizontal coordinate is searched to the left side, and the cumulative value corresponding to the adjacent horizontal coordinate on the left side of the seventh horizontal coordinate and the seventh horizontal coordinate is greater than
- the first threshold the accumulated value corresponding to the adjacent abscissa on the right side of the seventh abscissa is smaller than the second threshold; 1 ⁇ j ⁇ n, j is a positive integer whose initial value is n;
- the third abscissa is an abscissa corresponding to a left edge of a character region of the first valid text of the plurality of characters in the histogram;
- the coordinate recognition submodule is also configured to:
- the first distance between the valid text and the invalid text is greater than the second distance between the adjacent two valid characters, starting from the preset abscissa in the histogram, Querying the first gap with the width greater than the second distance to the left side, and determining the abscissa of the first foreground pixel located on the right side of the gap greater than the first threshold as the third abscissa;
- the preset abscissa is Set the coordinates of the interval, the preset interval is an interval set according to the empirical value; the accumulated value of the foreground color pixel of the gap is less than the second threshold;
- the abscissa whose accumulated value of the first foreground pixel on the left side in the histogram is greater than the first threshold is determined as the third abscissa.
- the third abscissa is an abscissa corresponding to a right edge of a character region of a last valid text of the plurality of characters in the histogram;
- the coordinate recognition submodule is also configured to:
- the first distance between the valid text and the invalid text is greater than the second distance between the adjacent two valid characters, starting from the preset abscissa in the histogram, Query the gap with the width greater than the second distance to the right side, and determine the abscissa whose accumulated value of the first foreground pixel on the left side of the gap is greater than the first threshold as the third abscissa; the preset abscissa belongs to the pre- Set the coordinates of the interval, the preset interval is an interval set according to the empirical value; the accumulated value of the foreground color pixel of the gap is less than the second threshold;
- the abscissa whose accumulated value of the first foreground pixel on the right side of the histogram is greater than the first threshold is determined as the third abscissa.
- the device further includes:
- a second binarization module configured to perform binarization on the target image region to obtain a binarized target image region
- a second calculating module configured to calculate a horizontal histogram according to a horizontal direction of the binarized target image region, the horizontal histogram comprising: a vertical coordinate of each row of pixel points and an accumulated value of the foreground color pixel points in each row of pixels ;
- An edge determining module configured to determine a plurality of sets of vertical coordinates according to the distribution information of the accumulated values in the horizontal histogram, each set of vertical coordinates including a first vertical coordinate and a second vertical coordinate located at a lower side of the first vertical coordinate; Set the vertical coordinate, identify the pixel row where the first vertical coordinate is located as the upper edge of the line of text, and identify the pixel row where the second vertical coordinate is located as the lower edge of the text region; the first vertical coordinate and the lower side of the first vertical coordinate The accumulated value corresponding to the adjacent vertical coordinate is greater than the first threshold, and the accumulated value corresponding to the adjacent vertical coordinate of the upper side of the first vertical coordinate is smaller than the second threshold; the second vertical coordinate and the adjacent vertical of the upper side of the second vertical coordinate The accumulated value corresponding to the coordinate is greater than the first threshold, and the accumulated value corresponding to the adjacent vertical coordinate of the lower side of the second vertical coordinate is smaller than the second threshold;
- the first binarization module is further configured to perform a step of binarizing the text region for the k-th character region to obtain a binarized text region, m ⁇ k ⁇ 1, k being a positive integer, m To identify the total number of rows obtained.
- an area identifying apparatus comprising:
- a memory for storing processor executable instructions
- processor is configured to:
- the histogram including: each column image The abscissa of the prime point and the accumulated value of the foreground pixel in each column of pixels;
- the character area of the text in the text area is identified based on the distribution information of the accumulated values in the histogram.
- the histogram is calculated according to the vertical direction of the binarized text area, and the character area of the text in the text area is identified according to the distribution information in the histogram; the problem of low positioning accuracy of the text area in the related art is solved; The effect of accurately locating the character region of the text can be based on the distribution information of the accumulated values of the foreground pixels in the histogram.
- FIG. 1 is a schematic diagram of a text area shown in accordance with some exemplary embodiments
- FIG. 2 is a flowchart of an area identification method according to an exemplary embodiment
- FIG. 3A is a flowchart of an area identification method according to another exemplary embodiment
- FIG. 3B is a schematic diagram of binarizing a text area according to another exemplary embodiment
- 3C is a schematic diagram of a histogram calculated in a vertical direction, according to another exemplary embodiment
- FIG. 3D is a flowchart of a method for determining a certain group of abscissas by a terminal according to another exemplary embodiment
- FIG. 3E is a schematic diagram of a third abscissa in a histogram obtained by a terminal according to another exemplary embodiment
- FIG. 3F is a schematic diagram showing each group of abscissas determined according to a histogram according to another exemplary embodiment
- FIG. 3G is a schematic diagram of a preset abscissa in a histogram according to another exemplary embodiment
- FIG. 3H is a schematic diagram showing a third abscissa determined according to a histogram according to another exemplary embodiment
- FIG. 4 is a flowchart showing a method for identifying each group of abscissas according to distribution information of a third abscissa and an accumulated value, according to an exemplary embodiment
- FIG. 5 is a flowchart showing another method for identifying each group of abscissas according to distribution information of a third abscissa and an accumulated value, according to another exemplary embodiment
- FIG. 6 is a flowchart of a method for identifying a text area obtained by a terminal according to still another exemplary embodiment
- FIG. 7 is a block diagram of an area identifying apparatus according to an exemplary embodiment
- FIG. 8 is a block diagram of an area identifying apparatus according to another exemplary embodiment.
- FIG. 9 is a block diagram of an area identification apparatus, according to an exemplary embodiment.
- the text area includes a plurality of characters belonging to the same line, and the text area may be an area in the image of the document, or may be an area in the scanned image of the article, or may be an area in the electronic document, which is not limited in this embodiment.
- the upper edge of the text area in this embodiment is between the upper edge of the text in the same line and the lower edge of the previous line of text; the lower edge of the text area is at the lower edge of the line of text and the upper edge of the next line of text. between.
- the text area is an area containing the citizenship number belonging to the same line in the second generation ID card.
- the upper edge of the text area is located between l 1 and l 2
- the lower edge is located at l Between 3 and l 4 .
- the text area is the area 11 shown in FIG.
- the text in the text area can be either a valid text or a combination of valid text and invalid text.
- the valid text is the text that needs to recognize the character area
- the invalid text is the text that does not need to recognize the character area.
- the text in the text area may include only the number ‘3 30421199012162834' may also include at least one Chinese character located on the left side of the number while including the number '330421199012162834', such as the text in the text area being 'number 330421199012162834'.
- the character area refers to the area corresponding to a single character.
- characters in the various embodiments of the present disclosure may be numbers, letters, Chinese characters, photos, or other content in the calculated histogram in which the value of the foreground color pixel is greater than a threshold.
- FIG. 2 is a flowchart of an area identification method according to an exemplary embodiment. As shown in FIG. 2, the area identification method includes the following steps.
- step 201 the text area is binarized to obtain a binarized text area including a plurality of characters belonging to the same line.
- a histogram is calculated for the binarized text region in a vertical direction, the histogram comprising: an abscissa of each column of pixels and an accumulated value of foreground pixels in each column of pixels.
- step 203 the character area of the character in the text area is identified based on the distribution information of the accumulated values in the histogram.
- the area recognition method provided in the embodiment of the present disclosure calculates a histogram according to a vertical direction of the binarized text area, and identifies a character area of the text in the text area according to the distribution information in the histogram.
- the invention solves the problem that the positioning accuracy of the text area in the related art is low; and the effect of accurately positioning the character area of the character according to the distribution information of the accumulated values of the foreground color pixel points in the histogram is solved.
- FIG. 3A is a flowchart of an area identification method according to another exemplary embodiment. As shown in FIG. 3A, the area identification method includes the following steps.
- step 301 the text area is binarized to obtain a binarized text area including a plurality of characters belonging to the same line.
- the terminal performs pre-processing on the text area, where the pre-processing may include: performing operations such as denoising, filtering, and edge-taking; and binarizing the pre-processed text area.
- Binarization refers to comparing the gray value of the pixel in the text area with the preset gray threshold, and dividing the pixel in the text area into two parts: a pixel group larger than the preset gray threshold and less than the preset gray level.
- the two partial pixel groups respectively display two different colors of black and white in the text area to obtain a binarized text area, as shown in FIG. 3B.
- a pixel of one color is located in the foreground It is called the foreground pixel, that is, the white pixel in FIG. 3B; the pixel of one color located in the background is called the background color pixel, that is, the black pixel in FIG. 3B.
- a histogram is calculated for the binarized text region in a vertical direction, the histogram comprising: an abscissa of each column of pixels and an accumulated value of foreground pixels in each column of pixels.
- the histogram is calculated in the vertical direction.
- the histogram represents the abscissa of each column of pixels in the horizontal direction, and represents the cumulative value of the foreground pixels in each column of pixels in the vertical direction; the foreground pixel refers to the white in the binarized text area.
- the pixel of the area which is relative to the background color pixel.
- the terminal calculates a histogram as shown in FIG. 3C.
- step 303 a plurality of sets of abscissas are determined based on the distribution information of the accumulated values in the histogram.
- This step may include:
- step 303a the third abscissa in the histogram is identified based on the distribution information of the accumulated values.
- the third abscissa is: the abscissa corresponding to the left edge of the character region of the first valid character of the plurality of characters in the histogram, or the character region of the last valid character of the plurality of characters.
- the third abscissa may be: the left edge of the first significant digit '3' corresponds to the histogram.
- the abscissa X 1 , or the right edge of the last significant digit '4' is the abscissa X 2 corresponding to the histogram.
- step 303b the third abscissa is used as the search starting point, and a plurality of sets of abscissas are searched based on the distribution information of the accumulated values in a predetermined direction.
- the terminal may search for a plurality of sets of abscissas based on the distribution information of the accumulated values according to the third horizontal coordinate in the histogram as the search starting point.
- the predetermined direction is the rightward direction; and the third horizontal coordinate is the character of the last valid character.
- the predetermined direction is the direction to the left.
- the number of groups of the abscissa corresponds to the number of valid characters in the text area, that is, the first abscissa corresponding to the left edge of the character area of each set of abscissas including a valid character in the histogram and the valid text
- the right edge of the character area is the second abscissa corresponding to the histogram. That is, each set of abscissa includes a first abscissa and a first second abscissa located to the right of the first abscissa.
- the cumulative value corresponding to the first abscissa and the adjacent abscissa on the right side of the first abscissa is greater than the first threshold, and the first cross
- the accumulated value corresponding to the adjacent abscissa on the left side of the coordinate is smaller than the second threshold; the accumulated value corresponding to the adjacent abscissa on the left side of the second abscissa and the second abscissa is greater than the first threshold, and the right side of the second abscissa
- the accumulated value corresponding to the adjacent abscissa is smaller than the second threshold.
- the terminal can recognize each group of abscissas shown in FIG. 3F. It should be noted that, in FIG. 3F, only a certain set of abscissas are obtained for exemplification, and the actual implementation also includes more sets of abscissas, which is not limited in this embodiment.
- the first threshold and the second threshold mentioned above may be values having a small value.
- the first threshold and the second threshold are values that are slightly greater than zero.
- the first threshold may be 0, and the second threshold may be a value close to 0.
- the accumulated value corresponding to the first abscissa and the adjacent abscissa on the right side of the first abscissa is not 0, and the accumulated value corresponding to the adjacent abscissa on the left side of the first abscissa is 0;
- the cumulative value corresponding to the adjacent abscissa of the second abscissa and the left side of the second abscissa is not 0, and the accumulated value corresponding to the adjacent abscissa of the right side of the second abscissa is 0.
- step 304 for each set of abscissas, the pixel column in which the first abscissa is located is identified as the left edge of one character region, and the pixel column in which the second abscissa is located is identified as the right edge of the character region.
- the area recognition method provided in the embodiment of the present disclosure calculates a histogram according to a vertical direction of the binarized text area, and identifies a character area of the text in the text area according to the distribution information in the histogram.
- the invention solves the problem that the positioning accuracy of the text area in the related art is low; and the effect of accurately positioning the character area of the character according to the distribution information of the accumulated values of the foreground color pixel points in the histogram is solved.
- Step 303a may include:
- the terminal starts from the preset abscissa in the histogram, and queries the left side for the first gap whose width is greater than the second distance, and the accumulated value of the first foreground pixel located on the right side of the gap is greater than the abscissa of the first threshold. Determined as the third abscissa.
- the preset abscissa is the coordinate belonging to the preset interval, and the preset interval belongs to the mapping interval corresponding to the effective text in the text region in the histogram. For example, taking the valid text as the citizenship number as an example, in conjunction with FIG. 3E, the preset interval belongs to the interval of [X 1 , X 2 ] in the figure. This preset interval is usually an interval set according to the empirical value. And the accumulated value of the foreground color pixel of the gap is less than the second threshold.
- the preset abscissa can be the level of the second-generation ID card.
- the position of half of the direction is the abscissa corresponding to the histogram.
- the preset abscissa is X 0 in the figure. The terminal can start the query from X 0 to the left.
- the terminal Since the first distance between two adjacent numbers in the citizenship number is much smaller than the second distance between the Chinese character 'code' and the first digit, the terminal queries the left side for a gap having a width greater than the second distance. That is, after the gap d in the figure, the terminal may determine the abscissa whose accumulated value of the first foreground pixel located on the right side of the gap is greater than the first threshold as the third abscissa, that is, determine the third abscissa X 1 .
- the terminal starts to query from the preset abscissa to the left side.
- the terminal can also start to query the right side from the preset abscissa, and after querying the gap with the width greater than the second distance,
- the abscissa of the first foreground pixel located on the left side of the gap is greater than the first threshold, and the abscissa is determined as the third abscissa. This embodiment is not illustrated herein.
- step 303a may include the following steps.
- the terminal calculates the histogram of the binarized text area, the accumulated value of the first foreground color pixel on the left side in the calculated histogram is greater than the first threshold.
- the abscissa is the abscissa corresponding to the first valid text in the histogram, so the terminal can determine the cumulative value of the first foreground pixel located on the left side in the histogram is greater than the abscissa of the first threshold. Is the third abscissa.
- the terminal can determine X 1 in the figure as the third abscissa.
- the terminal may determine X 2 in the figure as the third abscissa.
- step 303b may be replaced with steps 401 to 404.
- step 401 for the i-th group abscissa, the first abscissa in the i-th group abscissa in the histogram is used as the search starting point, and the first fourth abscissa is searched to the right.
- n is the number of valid characters in a number of characters. For example, taking the valid text as the citizenship number in the second-generation ID card as an example, the number n of valid characters is 18.
- the first abscissa in the first set of coordinates is the third abscissa
- the accumulated value corresponding to the adjacent abscissa on the fourth abscissa and the left side of the fourth abscissa is greater than the first threshold
- the fourth abscissa is on the right
- the accumulated value corresponding to the adjacent abscissa is smaller than the second threshold.
- the terminal can search for X 1 from the histogram and search for the left side. Determine to get the first fourth abscissa.
- step 402 the fourth abscissa is determined as the second abscissa in the i-th set of coordinates.
- step 403 if i ⁇ n, the fourth abscissa in the histogram is used as the search starting point, and the first fifth abscissa is searched to the right.
- the terminal can determine that there is a valid character on the right side of the unrecognized character area. At this time, the terminal can determine the right edge of the character area of the currently valid character in the histogram corresponding to the abscissa as the search starting point. , continue to search for the abscissa corresponding to the left edge of the character area of the next valid text in the histogram.
- the terminal may use the fourth abscissa in the histogram as the search starting point, and search for the first fifth abscissa, the fifth abscissa, and the accumulated value corresponding to the adjacent abscissa on the right side of the fifth abscissa. More than the first threshold, the accumulated value corresponding to the adjacent abscissa on the left side of the fifth abscissa is smaller than the second threshold.
- the terminal determines the abscissa obtained by the search as the abscissa corresponding to the left edge of the character region of the next valid character in the histogram.
- the terminal continues to search to the right according to the above method to determine a set of abscissas corresponding to the character regions of the respective valid characters.
- step 303b may be replaced with steps 501 to 504.
- step 501 for the jth group coordinate, the second abscissa in the jth group coordinate in the histogram is used as the search starting point, and the first sixth abscissa is searched to the left.
- the cumulative value corresponding to the adjacent abscissa on the sixth abscissa and the right side of the sixth abscissa is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the left side of the sixth abscissa is smaller than the second threshold; 1 ⁇ j ⁇ n , j is a positive integer with an initial value of n, n is the number of valid characters in a number of characters; and the second abscissa in the nth group of coordinates is the third abscissa.
- step 502 the sixth abscissa is determined as the first abscissa in the jth set of coordinates.
- step 503 if j>0, the six abscissas in the histogram are used as the search starting point, and the first seventh abscissa, the seventh abscissa and the adjacent abscissa of the left side of the seventh abscissa are searched to the left.
- the corresponding accumulated value is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the right side of the seventh abscissa is smaller than the second threshold; 1 ⁇ j ⁇ n, j is a positive integer whose initial value is n.
- steps 501 to 504 are similar to the above steps 401 to 404. The difference between the two is that the methods provided in steps 401 to 404 are from the left to the right, and the steps 501 to 504 are from Search from right to left, so this embodiment will not be described again here.
- the terminal may perform the following steps before binarizing the text area to obtain the binarized text area:
- step 601 the target image region is binarized to obtain a binarized target image region.
- the target image area may be an area including a plurality of lines of text.
- This step is similar to the step 301 in the foregoing embodiment.
- This step is similar to the step 301 in the foregoing embodiment.
- a horizontal histogram is calculated according to the horizontal direction of the binarized target image region, and the horizontal histogram includes: a vertical coordinate of each row of pixel points and an accumulated value of foreground color pixel points in each row of pixel points.
- step 302 is similar to step 302 in the above embodiment.
- the histogram is calculated according to the vertical file for the binarized text area, and the step is to level the target image area after binarization.
- the direction calculates the histogram.
- a plurality of sets of vertical coordinates are determined according to the distribution information of the accumulated values in the horizontal histogram, and each set of vertical coordinates includes a first vertical coordinate and a second vertical coordinate located at a lower side of the first vertical coordinate;
- the coordinates identify the pixel row where the first vertical coordinate is located as the upper edge of a line of text, and the pixel row where the second vertical coordinate is located as the lower edge of the text region.
- the terminal may determine a plurality of sets of vertical coordinates according to the distribution information of the accumulated values in the horizontal histogram, and then determine the area of each row according to each set of vertical coordinates.
- This step and the distribution information of the accumulated values in the histogram according to the vertical direction in the above embodiment determine a plurality of sets of abscissas, and then determine the left and right edges of the text according to each set of abscissas.
- a plurality of sets of abscissas and then determine the left and right edges of the text according to each set of abscissas.
- the accumulated value corresponding to the first vertical coordinate and the adjacent vertical coordinate of the lower side of the first vertical coordinate is greater than the first threshold, and the accumulated value corresponding to the adjacent vertical coordinate of the upper side of the first vertical coordinate is smaller than the second threshold;
- the accumulated value corresponding to the vertical coordinate and the adjacent vertical coordinate of the upper side of the second vertical coordinate is greater than the first threshold, and the accumulated value corresponding to the adjacent vertical coordinate of the lower side of the second vertical coordinate is smaller than the second threshold.
- step 604 for the k-th character area, the step of binarizing the text area to obtain the binarized character area is performed, m ⁇ k ⁇ 1, k is a positive integer, and m is the total number of lines identified. .
- the terminal can perform an operation of binarizing the text area to obtain a binarized text area.
- the terminal can recognize the character area of each valid character in each line in the target image area.
- the terminal may also determine the text area by other determining manners.
- the terminal can locate the text area by image positioning technology.
- the text area is used as the citizenship number in the second generation ID card.
- the location of the citizenship number in the second generation ID card is relatively fixed, and the distance between the citizenship number and the address and avatar above is far. Therefore, the terminal can directly locate the lower 1/5 area of the ID image, and the image area obtained by the positioning is used as the text area, which is not limited in this embodiment.
- FIG. 7 is a block diagram of an area identifying apparatus according to an exemplary embodiment.
- the area identifying apparatus includes, but is not limited to, a first binarization module 710, a first calculating module 720, and area identification. Module 730.
- the first binarization module 710 is configured to binarize the text region to obtain a binarized text region, the text region including a plurality of characters belonging to the same row.
- the first calculating module 720 is configured to calculate a histogram in the vertical direction for the binarized text region, the histogram comprising: an abscissa of each column of pixels and an accumulated value of foreground pixels in each column of pixels.
- the area identification module 730 is configured to recognize the character area of the text in the text area based on the distribution information of the accumulated values in the histogram.
- the area recognition apparatus calculates the histogram in the vertical direction by binarizing the text area, and identifies the character area of the text in the text area according to the distribution information in the histogram.
- the invention solves the problem that the positioning accuracy of the text area in the related art is low; and the effect of accurately positioning the character area of the character according to the distribution information of the accumulated values of the foreground color pixel points in the histogram is solved.
- FIG. 8 is a block diagram of an area identifying apparatus according to another exemplary embodiment.
- the area identifying apparatus includes, but is not limited to, a first binarization module 810, a first calculating module 820, and an area. Identification module 830.
- the first binarization module 810 is configured to binarize the text region to obtain a binarized text region, the text region including a plurality of characters belonging to the same row.
- the first binarization module 810 performs pre-processing on the text area, where the pre-processing may include: operations such as denoising, filtering, and edge-taking; and binarizing the pre-processed text area.
- Binarization refers to comparing the gray value of the pixel in the text area with the preset gray threshold, and dividing the pixel in the text area into two parts: a pixel group larger than the preset gray threshold and less than the preset gray level.
- the pixel group of the threshold value presents two different colors of black and white in the text area, and the binarized text area is obtained.
- the first calculating module 820 is configured to calculate a histogram in a vertical direction for the binarized text area
- the histogram includes: the abscissa of each column of pixels and the accumulated value of the foreground pixels in each column of pixels.
- the first calculation module 820 calculates the histogram in the vertical direction.
- the histogram represents the abscissa of each column of pixels in the horizontal direction, and represents the cumulative value of the foreground pixels in each column of pixels in the vertical direction; the foreground pixel refers to the white in the binarized text area.
- the pixel of the area which is relative to the background color pixel.
- the area identification module 830 is configured to recognize the character area of the text in the text area based on the distribution information of the accumulated values in the histogram.
- the area identification module 830 includes a coordinate determination sub-module 831 and an area identification sub-module 832.
- the coordinate determining sub-module 831 is configured to determine a plurality of sets of abscissas according to the distribution information of the accumulated values in the histogram, each set of abscissas including a first abscissa and a first second abscissa located on a right side of the first abscissa;
- the accumulated value corresponding to the first abscissa and the adjacent abscissa on the right side of the first abscissa is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the left side of the first abscissa is smaller than the second threshold;
- the second abscissa And the accumulated value corresponding to the adjacent abscissa on the left side of the second abscissa is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the right side of the second abscissa is smaller than the second threshold
- the region identification sub-module 832 is configured to identify, for each set of abscissas, a pixel column in which the first abscissa is located as a left edge of one character region, and a pixel column in which the second abscissa is located as a right edge of the character region.
- the coordinate determination sub-module 831 includes: a coordinate recognition sub-module 831a and a coordinate search sub-module 831b.
- the coordinate recognition sub-module 831a is configured to identify a third abscissa in the histogram according to the distribution information of the accumulated value, and the third abscissa is: the left edge of the character region of the first valid character of the plurality of characters is in the square The coordinates corresponding to the figure, or the coordinates of the right edge of the character area of the last valid text in several characters in the histogram.
- the coordinate search sub-module 831b is configured to search for a plurality of sets of abscissas based on the distribution information of the accumulated values in a predetermined direction with the third abscissa as a search starting point.
- the coordinate search sub-module 831b may search for a plurality of sets of abscissas based on the distribution information of the accumulated values in the predetermined direction using the third abscissa in the histogram as the search starting point.
- the predetermined direction is the rightward direction
- the third abscissa is When the right edge of the character region of the last valid character is in the abscissa corresponding to the histogram, the predetermined direction is the leftward direction.
- the number of groups of the abscissa corresponds to the number of valid characters in the text area, that is, the first abscissa corresponding to the left edge of the character area of each set of abscissas including a valid character in the histogram and the valid text
- the right edge of the character area is the second abscissa corresponding to the histogram. That is, each set of abscissa includes a first abscissa and a first second abscissa located to the right of the first abscissa.
- the accumulated value corresponding to the first abscissa and the adjacent abscissa on the right side of the first abscissa is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the left side of the first abscissa is smaller than the second threshold;
- the cumulative value corresponding to the adjacent abscissa of the second abscissa and the left side of the second abscissa is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa of the right side of the second abscissa is less than the second threshold.
- the first threshold and the second threshold mentioned above may be values having a small value.
- the first threshold and the second threshold are values that are slightly greater than zero.
- the first threshold may be 0, and the second threshold may be a value close to 0.
- the accumulated value corresponding to the first abscissa and the adjacent abscissa on the right side of the first abscissa is not 0, and the accumulated value corresponding to the adjacent abscissa on the left side of the first abscissa is 0;
- the cumulative value corresponding to the adjacent abscissa of the second abscissa and the left side of the second abscissa is not 0, and the accumulated value corresponding to the adjacent abscissa of the right side of the second abscissa is 0.
- the third abscissa is an abscissa corresponding to a left edge of a character region of the first valid text of the plurality of characters in the histogram;
- the coordinate search sub-module 831b is also configured to:
- the first abscissa in the i-th group abscissa in the histogram is used as the search starting point, and the first fourth abscissa, the fourth abscissa and the left side of the fourth abscissa are searched to the right.
- the accumulated value corresponding to the adjacent abscissa is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the right side of the fourth abscissa is smaller than the second threshold; 1 ⁇ i ⁇ n, i is a positive integer with an initial value of 1, n is The number of valid characters in a number of characters; the first abscissa in the first set of coordinates is the third abscissa.
- the fourth abscissa is determined as the second abscissa in the i-th group of coordinates.
- the fourth abscissa in the histogram is used as the search starting point, and the first fifth abscissa, the fifth abscissa and the accumulated value corresponding to the adjacent abscissa on the right side of the fifth abscissa are searched to the right side. More than the first threshold, the accumulated value corresponding to the adjacent abscissa on the left side of the fifth abscissa is smaller than the second threshold.
- the coordinate search sub-module 831b determines the searched abscissa as the character area of the next valid character.
- the left edge of the field is the abscissa corresponding to the histogram.
- the coordinate search sub-module 831b continues to search to the right according to the above method to determine a set of abscissas corresponding to the character regions of the respective valid characters.
- the third abscissa is an abscissa corresponding to a right edge of a character region of a last valid text of the plurality of characters in the histogram;
- the coordinate search sub-module 831b is also configured to:
- the second abscissa in the jth group coordinate in the histogram is used as the search starting point, and the first sixth abscissa, the sixth abscissa and the adjacent horizontal side of the sixth abscissa are searched to the left.
- the accumulated value corresponding to the coordinate is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa on the left side of the sixth abscissa is smaller than the second threshold; 1 ⁇ j ⁇ n, j is a positive integer with an initial value of n, and n is a plurality of The number of valid characters in the text; the second abscissa in the nth group coordinate is the third abscissa.
- the sixth abscissa is determined as the first abscissa in the jth group of coordinates.
- the six horizontal coordinates in the histogram are used as the search starting point, and the first seventh horizontal coordinate is searched to the left side, and the cumulative value corresponding to the adjacent horizontal coordinate on the left side of the seventh horizontal coordinate and the seventh horizontal coordinate is greater than
- the first threshold value, the accumulated value corresponding to the adjacent abscissa on the right side of the seventh abscissa is smaller than the second threshold; 1 ⁇ j ⁇ n, and j is a positive integer whose initial value is n.
- the third abscissa is an abscissa corresponding to a left edge of a character region of the first valid text of the plurality of characters in the histogram;
- the execution step of the coordinate search submodule 831b and the third step described above when the abscissa is the abscissa of the character area of the first valid character of the plurality of characters in the histogram, the steps performed are similar, so the embodiment will not be described herein.
- the coordinate recognition sub-module 831a is also configured to:
- the first distance between the valid text and the invalid text is greater than the second distance between the adjacent two valid characters, starting from the preset abscissa in the histogram, Querying the first gap having a width greater than the second distance to the left side, and determining the abscissa of the first foreground pixel pixel located on the right side of the gap greater than the first threshold as the third abscissa;
- the preset abscissa is the genus
- the preset interval is an interval set according to the empirical value; the accumulated value of the foreground color pixel of the gap is smaller than the second threshold.
- the abscissa whose accumulated value of the first foreground pixel on the left side in the histogram is greater than the first threshold is determined as the third abscissa.
- the coordinate recognition sub-module 831a Starting from the preset abscissa in the histogram, the first gap having the width greater than the second distance is searched to the left side, and the abscissa of the first foreground pixel located on the right side of the gap is greater than the first threshold. Is the third abscissa.
- the preset abscissa is the coordinate belonging to the preset interval, and the preset interval belongs to the mapping interval corresponding to the effective text in the text region in the histogram.
- the coordinate recognition sub-module 831a can also start from the preset abscissa to the right side, and the query width is greater than the first After the gap of the two distances, the abscissa of the first foreground pixel located on the left side of the gap is determined to be the third abscissa, which is not described herein.
- the accumulated value of the first foreground color pixel on the left side of the calculated histogram is calculated.
- the abscissa corresponding to the first threshold is the abscissa corresponding to the first valid text in the histogram, so the coordinate recognition sub-module 831a can accumulate the accumulated value of the first foreground pixel located on the left side in the histogram.
- An abscissa greater than the first threshold is determined to be the third abscissa.
- the third abscissa is an abscissa corresponding to a right edge of a character region of a last valid text of the plurality of characters in the histogram;
- the coordinate recognition sub-module 831a is also configured to:
- the first distance between the valid text and the invalid text is greater than the second distance between the adjacent two valid characters, starting from the preset abscissa in the histogram, Query the gap with the width greater than the second distance to the right side, and determine the abscissa whose accumulated value of the first foreground pixel on the left side of the gap is greater than the first threshold as the third abscissa; the preset abscissa belongs to the preset interval.
- the coordinate of the preset interval is an interval set according to the empirical value; the accumulated value of the foreground color pixel of the gap is smaller than the second threshold.
- the abscissa whose accumulated value of the first foreground pixel on the right side of the histogram is greater than the first threshold is determined as the third abscissa.
- the execution step of the coordinate recognition sub-module 831a and the third step described above When the abscissa is the abscissa of the character area of the first valid character of the plurality of characters in the histogram, the steps performed are similar, so the embodiment will not be described herein.
- the device further includes: a second binarization module 840, a second calculation module 850, and an edge determination module 860.
- the second binarization module 840 is configured to binarize the target image region to obtain a binarized target image region.
- the target image area may be an area including a plurality of lines of text.
- the second binarization module 840 is similar to the first binarization module 810. For details, refer to the first binarization module 810.
- the second binarization module 840 is not limited in this embodiment.
- the second calculating module 850 is configured to calculate a horizontal histogram according to the horizontal direction of the binarized target image region, where the horizontal histogram comprises: a vertical coordinate of each row of pixels and an accumulation of foreground pixels in each row of pixels value.
- the second calculation module 850 is similar to the first calculation module 820. The difference is that the first calculation module 820 calculates a histogram according to the vertical file for the binarized text area, and the second calculation module 850 performs binarization. The subsequent target image area calculates a histogram in the horizontal direction.
- the edge determining module 860 is configured to determine, according to the distribution information of the accumulated values in the horizontal histogram, a plurality of sets of vertical coordinates, where each set of vertical coordinates includes a first vertical coordinate and a second vertical coordinate located at a lower side of the first vertical coordinate; For each set of vertical coordinates, the pixel row where the first vertical coordinate is located is recognized as the upper edge of the line of text, and the pixel row where the second vertical coordinate is located is recognized as the lower edge of the text region; the first vertical coordinate and the first vertical coordinate The accumulated value corresponding to the adjacent abscissa of the side is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa of the left side of the first vertical coordinate is smaller than the second threshold; the second vertical coordinate and the adjacent left side of the second vertical coordinate The accumulated value corresponding to the abscissa is greater than the first threshold, and the accumulated value corresponding to the adjacent abscissa of the right side of the second vertical coordinate is smaller than
- the edge determination module 860 can be based on the level
- the distribution information of the accumulated values in the histogram determines a number of sets of vertical coordinates, and then determines the area of each line according to each set of vertical coordinates.
- the first binarization module 810 is further configured to perform a step of binarizing the text region for the k-th character region to obtain a binarized text region, m ⁇ k ⁇ 1, and k is a positive integer. m is the total number of lines identified.
- the area identifying means can recognize the character area of each valid character in each line in the target image area.
- the area recognition apparatus calculates the histogram in the vertical direction by binarizing the text area, and identifies the character area of the text in the text area according to the distribution information in the histogram.
- the invention solves the problem that the positioning accuracy of the text area in the related art is low; and the effect of accurately positioning the character area of the character according to the distribution information of the accumulated values of the foreground color pixel points in the histogram is solved.
- An exemplary embodiment of the present disclosure provides an area identifying apparatus capable of implementing the area identifying method provided by the present disclosure, the area identifying apparatus comprising: a processor, a memory for storing processor executable instructions;
- processor is configured to:
- the histogram comprising: an abscissa of each column of pixels and an accumulated value of foreground pixels in each column of pixels;
- the character area of the text in the text area is identified based on the distribution information of the accumulated values in the histogram.
- FIG. 9 is a block diagram of an area identification apparatus, according to an exemplary embodiment.
- device 900 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
- device 900 can include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
- Processing component 902 typically controls the overall operation of device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
- Processing component 902 can include one or more processors 918 to execute instructions to perform all or part of the steps of the above described methods.
- processing component 902 can include one or more modules to facilitate interaction between component 902 and other components.
- processing component 902 can include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.
- Memory 904 is configured to store various types of data to support operation at device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phone book data, messages, pictures, videos, and the like.
- the memory 904 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
- SRAM static random access memory
- EEPROM electrically erasable programmable read only memory
- EPROM Programmable Read Only Memory
- PROM Programmable Read Only Memory
- ROM Read Only Memory
- Magnetic Memory Flash Memory
- Disk Disk or Optical Disk.
- Power component 906 provides power to various components of device 900.
- Power component 906 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 900.
- the multimedia component 908 includes a screen between the device 900 and the user that provides an output interface.
- the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
- the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can sense not only the boundaries of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
- the multimedia component 908 includes a front camera and/or a rear camera. When the device 900 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
- the audio component 910 is configured to output and/or input an audio signal.
- audio component 910 includes a microphone (MIC) that is configured to receive an external audio signal when device 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
- the received audio signal can be entered
- One step is stored in memory 904 or transmitted via communication component 916.
- the audio component 910 also includes a speaker for outputting an audio signal.
- the I/O interface 912 provides an interface between the processing component 902 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
- Sensor assembly 914 includes one or more sensors for providing device 900 with various aspects of status assessment.
- sensor component 914 can detect an open/closed state of device 900, a relative positioning of components, such as a display and a keypad of device 900, and sensor component 914 can also detect a change in position of one component of device 900 or device 900, user The presence or absence of contact with device 900, device 900 orientation or acceleration/deceleration and temperature variation of device 900.
- Sensor assembly 914 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
- Sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
- the sensor component 914 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
- Communication component 916 is configured to facilitate wired or wireless communication between device 900 and other devices.
- the device 900 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof.
- communication component 916 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
- communication component 916 also includes a near field communication (NFC) module to facilitate short range communication.
- NFC near field communication
- the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- device 900 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the above-described region identification method.
- ASICs application specific integrated circuits
- DSPs digital signal processors
- DSPDs digital signal processing devices
- PLDs programmable logic devices
- FPGA field programmable A gate array
- controller microcontroller, microprocessor or other electronic component implementation for performing the above-described region identification method.
- non-transitory computer readable storage medium comprising instructions, such as a memory 904 comprising instructions executable by processor 918 of apparatus 900 to perform the area identification method described above.
- the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- Geometry (AREA)
- Computer Graphics (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Character Input (AREA)
- Image Analysis (AREA)
Abstract
Description
Claims (17)
- 一种区域识别方法,其特征在于,所述方法包括:对文字区域进行二值化,得到二值化后的文字区域,所述文字区域包括属于同一行的若干个文字;对所述二值化后的文字区域按照竖直方向计算直方图,所述直方图包括:每列像素点的横坐标和所述每列像素点中前景色像素点的累加值;根据所述直方图中的所述累加值的分布信息,识别所述文字区域中的所述文字的字符区域。
- 根据权利要求1所述的方法,其特征在于,所述根据所述直方图中的所述累加值的分布信息,识别所述文字区域中的所述文字的字符区域,包括:根据所述直方图中的所述累加值的分布信息确定若干组横坐标,每组所述横坐标包括第一横坐标以及位于所述第一横坐标右侧的首个第二横坐标;所述第一横坐标以及所述第一横坐标右侧的相邻横坐标对应的所述累加值大于第一阈值,且所述第一横坐标左侧的相邻横坐标对应的所述累加值小于第二阈值;所述第二横坐标以及所述第二横坐标左侧的相邻横坐标对应的所述累加值大于所述第一阈值,且所述第二横坐标右侧的相邻横坐标对应的所述累加值小于所述第二阈值;对于每组所述横坐标,将所述第一横坐标所在的像素列识别为一个字符区域的左边缘,将所述第二横坐标所在的像素列识别为所述字符区域的右边缘。
- 根据权利要求2所述的方法,其特征在于,所述根据所述直方图中的所述累加值的分布信息确定若干组横坐标,包括:根据所述累加值的分布信息,识别所述直方图中的第三横坐标,所述第三横坐标为:所述若干个文字中的第一个有效文字的字符区域的左边缘在所述直方图中所对应的横坐标,或者,所述若干个文字中的最后一个有效文字的字符区域的右边缘在所述直方图中所对应的横坐标;以所述第三横坐标为搜索起点,按照预定方向基于所述累加值的分布信息搜索出所述若干组横坐标。
- 根据权利要求3所述的方法,其特征在于,所述第三横坐标为所述若干个文字中的第一个有效文字的字符区域的左边缘在所述直方图中所对应的横坐标;所述以所述第三横坐标为搜索起点,按照预定方向基于所述累加值的分布信息搜索出所述若干组横坐标,包括:对于第i组横坐标,以所述直方图中的所述第i组横坐标中的所述第一横坐标为搜索起点,向右搜索首个第四横坐标,所述第四横坐标以及所述第四横坐标左侧的相邻横坐标对应的所述累加值大于所述第一阈值,所述第四横坐标右侧的相邻横坐标对应的所述累加值小于所述第二阈值;1≤i≤n,i为初始值为1的正整数,n为所述若干个文字中的有效文字的个数;所述第1组坐标中的所述第一横坐标为所述第三横坐标;将所述第四横坐标确定为所述第i组坐标中的所述第二横坐标;若i<n,则以所述直方图中的所述第四横坐标为搜索起点,向右侧搜索首个第五横坐标,所述第五横坐标以及所述第五横坐标右侧的相邻横坐标对应的所述累加值大于所述第一阈值,所述第五横坐标左侧的相邻横坐标对应的所述累加值小于所述第二阈值;令i=i+1,将所述第五横坐标确定为所述第i组坐标中的所述第一横坐标。
- 根据权利要求3所述的方法,其特征在于,所述第三横坐标为所述若干个文字中的最后一个有效文字的字符区域的右边缘在所述直方图中所对应的横坐标;所述以所述第三横坐标为搜索起点,按照预定方向基于所述累加值的分布信息搜索出所述若干组横坐标,包括:对于第j组坐标,以所述直方图中的所述第j组坐标中的所述第二横坐标为搜索起点,向左搜索首个第六横坐标,所述第六横坐标以及所述第六横坐标右侧的相邻横坐标对应的所述累加值大于所述第一阈值,所述第六横坐标左侧的相邻横坐标对应的所述累加值小于所述第二阈值;1≤j≤n,j是初始值为n的正整数,n为所述若干个文字中的有效文字的个数;所述第n组坐标中的所述第二横坐标为所述第三横坐标;将所述第六横坐标确定为所述第j组坐标中的所述第一横坐标;若j>0,则以所述直方图中的所述六横坐标为搜索起点,向左侧搜索首个第七横坐标,所述第七横坐标以及所述第七横坐标左侧的相邻横坐标对应的所述累加值大于所述第一阈值,所述第七横坐标右侧的相邻横坐标对应的所述累加值小于所述第二阈值;1≤j≤n,j为初始值为n的正整数;将令j=j-1,将所述第七横坐标确定为所述第j组坐标中的所述第二横坐标。
- 根据权利要求3所述的方法,其特征在于,所述第三横坐标为所述若干个文字中的第一个有效文字的字符区域的左边缘在所述直方图中所对应的横坐标;所述根据所述累加值的分布信息,识别所述直方图中的第三横坐标,包括:所述若干个文字中包括有效文字和无效文字,所述有效文字与所述无效文字之间的第一距离大于相邻两个有效文字之间的第二距离;从所述直方图中的预设横坐标处开始,向左侧查询首个宽度大于所述第二距离的间隙,将位于所述间隙右侧的首个前景色像素点的累加值大于所述第一阈值的横坐标确定为所述第三横坐标;所述预设横坐标为属于预设区间的坐标,所述预设区间为根据经验值设置的区间;所述间隙的前景色像素点的累加值小于所述第二阈值;或者,所述若干个文字中均为有效文字,将位于所述直方图中的左侧的首个前景色像素点的累加值大于所述第一阈值的横坐标确定为所述第三横坐标。
- 根据权利要求3所述的方法,其特征在于,所述第三横坐标为:所述若干个文字中的最后一个有效文字的字符区域的右边缘在所述直方图中所对应的横坐标;所述根据所述累加值的分布信息,识别所述直方图中的第三横坐标,包括:所述若干个文字中包括有效文字和无效文字,所述有效文字与所述无效文字之间的第一距离大于相邻两个有效文字之间的第二距离,从所述直方图中的预设横坐标处开始,向右侧查询宽度大于所述第二距离的间隙,将位于所述间隙左侧的首个前景色像素点的累加值大于所述第一阈值的横坐标确定为所述第三横坐标;所述预设横坐标为属于预设区间的坐标,所述预设区间为根据经验 值设置的区间;所述间隙的前景色像素点的累加值小于所述第二阈值;或者,所述若干个文字中均为有效文字,将位于所述直方图右侧的首个前景色像素点的累加值大于所述第一阈值的横坐标确定为所述第三横坐标。
- 根据权利要求1至7任一所述的方法,其特征在于,所述方法还包括:对目标图像区域进行二值化,得到二值化后的目标图像区域;对所述二值化后的目标图像区域按照水平方向计算水平直方图,所述水平直方图包括:每行像素点的竖坐标和所述每行像素点中前景色像素点的累加值;根据所述水平直方图中的所述累加值的分布信息,确定若干组竖坐标,每组竖坐标包括第一竖坐标和位于所述第一竖坐标下侧的第二竖坐标;对于每组竖坐标,将所述第一竖坐标所在的像素行识别为一行文字区域的上边缘,将所述第二竖坐标所在的像素行识别为所述文字区域的下边缘;所述第一竖坐标以及所述第一竖坐标下侧的相邻竖坐标对应的所述累加值大于第一阈值,且所述第一竖坐标上侧的相邻竖坐标对应的所述累加值小于第二阈值;所述第二竖坐标以及所述第二竖坐标上侧的相邻竖坐标对应的所述累加值大于所述第一阈值,且所述第二竖坐标下侧的相邻竖坐标对应的所述累加值小于所述第二阈值;对于第k行文字区域,执行所述对文字区域进行二值化,得到二值化后的文字区域的步骤,m≥k≥1,k为正整数,m为识别得到的总行数。
- 一种区域识别装置,其特征在于,所述装置包括:第一二值化模块,被配置为对文字区域进行二值化,得到二值化后的文字区域,所述文字区域包括属于同一行的若干个文字;第一计算模块,被配置为对所述二值化后的文字区域按照竖直方向计算直方图,所述直方图包括:每列像素点的横坐标和所述每列像素点中前景色像素点的累加值;区域识别模块,被配置为根据所述直方图中的所述累加值的分布信息,识别所述文字区域中的所述文字的字符区域。
- 根据权利要求9所述的装置,其特征在于,所述区域识别模块,包括:坐标确定子模块,被配置为根据所述直方图中的所述累加值的分布信息确定若干组横坐标,每组所述横坐标包括第一横坐标以及位于所述第一横坐标右侧的首个第二横坐标;所述第一横坐标以及所述第一横坐标右侧的相邻横坐标对应的所述累加值大于第一阈值,且所述第一横坐标左侧的相邻横坐标对应的所述累加值小于第二阈值;所述第二横坐标以及所述第二横坐标左侧的相邻横坐标对应的所述累加值大于所述第一阈值,且所述第二横坐标右侧的相邻横坐标对应的所述累加值小于所述第二阈值;区域识别子模块,被配置为对于每组所述横坐标,将所述第一横坐标所在的像素列识别为一个字符区域的左边缘,将所述第二横坐标所在的像素列识别为所述字符区域的右边缘。
- 根据权利要求10所述的装置,其特征在于,所述坐标确定子模块,包括:坐标识别子模块,被配置为根据所述累加值的分布信息,识别所述直方图中的第三横坐标,所述第三横坐标为所述若干个文字中的第一个有效文字的字符区域的左边缘在所述直方图中所对应的坐标,或者,所述若干个文字中的最后一个有效文字的字符区域的右边缘在所述直方图中所对应的坐标;坐标搜索子模块,被配置为以所述第三横坐标为搜索起点,按照预定方向基于所述累加值的分布信息搜索出所述若干组横坐标。
- 根据权利要求11所述的装置,其特征在于,所述第三横坐标为所述若干个文字中的第一个有效文字的字符区域的左边缘在所述直方图中所对应的横坐标;所述坐标搜索子模块,还被配置为:对于第i组横坐标,以所述直方图中的所述第i组横坐标中的所述第一横坐标为搜索起点,向右搜索首个第四横坐标,所述第四横坐标以及所述第四横坐标左侧的相邻横坐标对应的所述累加值大于所述第一阈值,所述第四横坐标右侧的相邻横坐标对应的所述累加值小于所述第二阈值;1≤i≤n,i为初始值为1的正整数,n为所述若干个文字中的有效文字的个数;所述第1组坐标中的所述第一横坐标为所述第三横坐标;将所述第四横坐标确定为所述第i组坐标中的所述第二横坐标;若i<n,则以所述直方图中的所述第四横坐标为搜索起点,向右侧搜索首个第五横坐标,所述第五横坐标以及所述第五横坐标右侧的相邻横坐标对应的所述累加值大于所述第一阈值,所述第五横坐标左侧的相邻横坐标对应的所述累加值小于所述第二阈值;令i=i+1,将所述第五横坐标确定为所述第i组坐标中的所述第一横坐标。
- 根据权利要求11所述的装置,其特征在于,所述第三横坐标为所述若干个文字中的最后一个有效文字的字符区域的右边缘在所述直方图中所对应的横坐标;所述坐标搜索子模块,还被配置为:对于第j组坐标,以所述直方图中的所述第j组坐标中的所述第二横坐标为搜索起点,向左搜索首个第六横坐标,所述第六横坐标以及所述第六横坐标右侧的相邻横坐标对应的所述累加值大于所述第一阈值,所述第六横坐标左侧的相邻横坐标对应的所述累加值小于所述第二阈值;1≤j≤n,j是初始值为n的正整数,n为所述若干个文字中的有效文字的个数;所述第n组坐标中的所述第二横坐标为所述第三横坐标;将所述第六横坐标确定为所述第j组坐标中的所述第一横坐标;若j>0,则以所述直方图中的所述六横坐标为搜索起点,向左侧搜索首个第七横坐标,所述第七横坐标以及所述第七横坐标左侧的相邻横坐标对应的所述累加值大于所述第一阈值,所述第七横坐标右侧的相邻横坐标对应的所述累加值小于所述第二阈值;1≤j≤n,j为初始值为n的正整数;将令j=j-1,将所述第七横坐标确定为所述第j组坐标中的所述第二横坐标。
- 根据权利要求11所述的装置,其特征在于,所述第三横坐标为所述若干个文字中的第一个有效文字的字符区域的左边缘在所述直方图中所对应的横坐标;所述坐标识别子模块,还被配置为:当所述若干个文字中包括有效文字和无效文字,所述有效文字与所述无效文字之间的第一距离大于相邻两个有效文字之间的第二距离时,从所述直方图 中的预设横坐标处开始,向左侧查询首个宽度大于所述第二距离的间隙,将位于所述间隙右侧的首个前景色像素点的累加值大于所述第一阈值的横坐标确定为所述第三横坐标;所述预设横坐标为属于预设区间的坐标,所述预设区间为根据经验值设置的区间;所述间隙的前景色像素点的累加值小于所述第二阈值;或者,当所述若干个文字中均为有效文字时,将位于所述直方图中的左侧的首个前景色像素点的累加值大于所述第一阈值的横坐标确定为所述第三横坐标。
- 根据权利要求11所述的装置,其特征在于,所述第三横坐标为所述若干个文字中的最后一个有效文字的字符区域的右边缘在所述直方图中所对应的横坐标;所述坐标识别子模块,还被配置为:当所述若干个文字中包括有效文字和无效文字,所述有效文字与所述无效文字之间的第一距离大于相邻两个有效文字之间的第二距离时,从所述直方图中的预设横坐标处开始,向右侧查询宽度大于所述第二距离的间隙,将位于所述间隙左侧的首个前景色像素点的累加值大于所述第一阈值的横坐标确定为所述第三横坐标;所述预设横坐标为属于预设区间的坐标,所述预设区间为根据经验值设置的区间;所述间隙的前景色像素点的累加值小于所述第二阈值;或者,当所述若干个文字中均为有效文字时,将位于所述直方图右侧的首个前景色像素点的累加值大于所述第一阈值的横坐标确定为所述第三横坐标。
- 根据权利要求9至15任一所述的装置,其特征在于,所述装置还包括:第二二值化模块,被配置为对目标图像区域进行二值化,得到二值化后的目标图像区域;第二计算模块,被配置为对所述二值化后的目标图像区域按照水平方向计算水平直方图,所述水平直方图包括:每行像素点的竖坐标和所述每行像素点中前景色像素点的累加值;边缘确定模块,被配置为根据所述水平直方图中的所述累加值的分布信息,确定若干组竖坐标,每组竖坐标包括第一竖坐标和位于所述第一竖坐标下侧的 第二竖坐标;对于每组竖坐标,将所述第一竖坐标所在的像素行识别为一行文字区域的上边缘,将所述第二竖坐标所在的像素行识别为所述文字区域的下边缘;所述第一竖坐标以及所述第一竖坐标下侧的相邻竖坐标对应的所述累加值大于第一阈值,且所述第一竖坐标上侧的相邻竖坐标对应的所述累加值小于第二阈值;所述第二竖坐标以及所述第二竖坐标上侧的相邻竖坐标对应的所述累加值大于所述第一阈值,且所述第二竖坐标下侧的相邻竖坐标对应的所述累加值小于所述第二阈值;所述第一二值化模块,还被配置为对于第k行文字区域,执行所述对文字区域进行二值化,得到二值化后的文字区域的步骤,m≥k≥1,k为正整数,m为识别得到的总行数。
- 一种区域识别装置,其特征在于,所述装置包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为:对文字区域进行二值化,得到二值化后的文字区域,所述文字区域包括属于同一行的若干个文字;对所述二值化后的文字区域按照竖直方向计算直方图,所述直方图包括:每列像素点的横坐标和所述每列像素点中前景色像素点的累加值;根据所述直方图中的所述累加值的分布信息,识别所述文字区域中的所述文字的字符区域。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
RU2016110434A RU2639668C2 (ru) | 2015-10-30 | 2015-12-29 | Способ и устройство для идентификации области |
JP2017547046A JP6392468B2 (ja) | 2015-10-30 | 2015-12-29 | 領域認識方法及び装置 |
MX2016003679A MX2016003679A (es) | 2015-10-30 | 2015-12-29 | Metodo y dispositivo para identificacion de region. |
KR1020167005567A KR101805090B1 (ko) | 2015-10-30 | 2015-12-29 | 영역 인식 방법 및 장치 |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510726153.9 | 2015-10-30 | ||
CN201510726153.9A CN105528606B (zh) | 2015-10-30 | 2015-10-30 | 区域识别方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017071063A1 true WO2017071063A1 (zh) | 2017-05-04 |
Family
ID=55770820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/099299 WO2017071063A1 (zh) | 2015-10-30 | 2015-12-29 | 区域识别方法及装置 |
Country Status (8)
Country | Link |
---|---|
US (1) | US10157326B2 (zh) |
EP (1) | EP3163502A1 (zh) |
JP (1) | JP6392468B2 (zh) |
KR (1) | KR101805090B1 (zh) |
CN (1) | CN105528606B (zh) |
MX (1) | MX2016003679A (zh) |
RU (1) | RU2639668C2 (zh) |
WO (1) | WO2017071063A1 (zh) |
Families Citing this family (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7873200B1 (en) | 2006-10-31 | 2011-01-18 | United Services Automobile Association (Usaa) | Systems and methods for remote deposit of checks |
US8708227B1 (en) | 2006-10-31 | 2014-04-29 | United Services Automobile Association (Usaa) | Systems and methods for remote deposit of checks |
US9058512B1 (en) | 2007-09-28 | 2015-06-16 | United Services Automobile Association (Usaa) | Systems and methods for digital signature detection |
US9159101B1 (en) | 2007-10-23 | 2015-10-13 | United Services Automobile Association (Usaa) | Image processing |
US10380562B1 (en) | 2008-02-07 | 2019-08-13 | United Services Automobile Association (Usaa) | Systems and methods for mobile deposit of negotiable instruments |
US10504185B1 (en) | 2008-09-08 | 2019-12-10 | United Services Automobile Association (Usaa) | Systems and methods for live video financial deposit |
US8452689B1 (en) | 2009-02-18 | 2013-05-28 | United Services Automobile Association (Usaa) | Systems and methods of check detection |
US10956728B1 (en) | 2009-03-04 | 2021-03-23 | United Services Automobile Association (Usaa) | Systems and methods of check processing with background removal |
US9779392B1 (en) | 2009-08-19 | 2017-10-03 | United Services Automobile Association (Usaa) | Apparatuses, methods and systems for a publishing and subscribing platform of depositing negotiable instruments |
US8977571B1 (en) | 2009-08-21 | 2015-03-10 | United Services Automobile Association (Usaa) | Systems and methods for image monitoring of check during mobile deposit |
US9129340B1 (en) | 2010-06-08 | 2015-09-08 | United Services Automobile Association (Usaa) | Apparatuses, methods and systems for remote deposit capture with enhanced image detection |
US10380565B1 (en) | 2012-01-05 | 2019-08-13 | United Services Automobile Association (Usaa) | System and method for storefront bank deposits |
US9286514B1 (en) * | 2013-10-17 | 2016-03-15 | United Services Automobile Association (Usaa) | Character count determination for a digital image |
US10506281B1 (en) | 2015-12-22 | 2019-12-10 | United Services Automobile Association (Usaa) | System and method for capturing audio or video data |
US11030752B1 (en) | 2018-04-27 | 2021-06-08 | United Services Automobile Association (Usaa) | System, computing device, and method for document detection |
CN109145891B (zh) * | 2018-06-27 | 2022-08-02 | 上海携程商务有限公司 | 客户端及其识别身份证的方法、识别身份证的系统 |
CN109635807A (zh) * | 2018-10-16 | 2019-04-16 | 深圳壹账通智能科技有限公司 | 信息录入方法、装置、设备及计算机可读存储介质 |
CN111104940A (zh) * | 2018-10-26 | 2020-05-05 | 深圳怡化电脑股份有限公司 | 图像旋转校正方法、装置、电子设备及存储介质 |
CN111223104B (zh) * | 2018-11-23 | 2023-10-10 | 杭州海康威视数字技术股份有限公司 | 一种包裹提取及跟踪方法、装置及电子设备 |
CN110533030B (zh) * | 2019-08-19 | 2023-07-14 | 三峡大学 | 基于深度学习的太阳胶片图像时间戳信息提取方法 |
CN111291750B (zh) * | 2020-01-21 | 2023-03-24 | 河南大学 | 一种基于空间近邻关系的甲骨文自动标注方法 |
CN111898602B (zh) * | 2020-08-10 | 2024-04-16 | 赞同科技股份有限公司 | 一种图像中的凭证号码区域识别方法、装置及设备 |
US11900755B1 (en) | 2020-11-30 | 2024-02-13 | United Services Automobile Association (Usaa) | System, computing device, and method for document detection and deposit processing |
CN113723301B (zh) * | 2021-08-31 | 2024-08-30 | 广州新丝路信息科技有限公司 | 一种进口货物报关单ocr识别分行处理方法及装置 |
CN117351438B (zh) * | 2023-10-24 | 2024-06-04 | 武汉无线飞翔科技有限公司 | 一种基于图像识别的车辆实时位置跟踪方法及系统 |
CN117274267B (zh) * | 2023-11-22 | 2024-04-05 | 合肥晶合集成电路股份有限公司 | 掩膜版图的自动检测方法、装置、处理器以及电子设备 |
CN117727059B (zh) * | 2024-02-18 | 2024-05-03 | 蓝色火焰科技成都有限公司 | 汽车金融发票信息核验方法、装置、电子设备及存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101408933A (zh) * | 2008-05-21 | 2009-04-15 | 浙江师范大学 | 基于粗网格特征提取和bp神经网络的车牌字符识别方法 |
CN102184399A (zh) * | 2011-03-31 | 2011-09-14 | 上海名图信息技术有限公司 | 基于水平投影和连通域分析的字符分割方法 |
CN103310435A (zh) * | 2012-03-21 | 2013-09-18 | 华中科技大学 | 将垂直投影和最优路径相结合对车牌字符进行分割的方法 |
CN104156704A (zh) * | 2014-08-04 | 2014-11-19 | 胡艳艳 | 一种新的车牌识别方法及系统 |
US9158986B2 (en) * | 2013-02-06 | 2015-10-13 | Nidec Sankyo Corporation | Character segmentation device and character segmentation method |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR0186172B1 (ko) | 1995-12-06 | 1999-05-15 | 구자홍 | 문자 인식장치의 접촉문자 분리 및 특징 추출방법 |
JP3452774B2 (ja) * | 1997-10-16 | 2003-09-29 | 富士通株式会社 | 文字認識方法 |
WO2003051031A2 (en) * | 2001-12-06 | 2003-06-19 | The Trustees Of Columbia University In The City Of New York | Method and apparatus for planarization of a material by growing and removing a sacrificial film |
RU2234126C2 (ru) * | 2002-09-09 | 2004-08-10 | Аби Софтвер Лтд. | Способ распознавания текста с применением настраиваемого классификатора |
US7302098B2 (en) * | 2004-12-03 | 2007-11-27 | Motorola, Inc. | Character segmentation method and apparatus |
JP2007206985A (ja) * | 2006-02-01 | 2007-08-16 | Sharp Corp | 文字列抽出装置、文字列抽出方法、そのプログラムおよび記録媒体 |
JP4991411B2 (ja) * | 2006-07-28 | 2012-08-01 | キヤノン株式会社 | 画像処理方法 |
JP5334042B2 (ja) * | 2008-11-23 | 2013-11-06 | 日本電産サンキョー株式会社 | 文字列認識方法及び文字列認識装置 |
KR20110087620A (ko) | 2010-01-26 | 2011-08-03 | 광주과학기술원 | 레이아웃 기반의 인쇄매체 페이지 인식방법 |
JP5591578B2 (ja) * | 2010-04-19 | 2014-09-17 | 日本電産サンキョー株式会社 | 文字列認識装置および文字列認識方法 |
JP6161484B2 (ja) * | 2013-09-19 | 2017-07-12 | 株式会社Pfu | 画像処理装置、画像処理方法及びコンピュータプログラム |
-
2015
- 2015-10-30 CN CN201510726153.9A patent/CN105528606B/zh active Active
- 2015-12-29 WO PCT/CN2015/099299 patent/WO2017071063A1/zh active Application Filing
- 2015-12-29 MX MX2016003679A patent/MX2016003679A/es unknown
- 2015-12-29 RU RU2016110434A patent/RU2639668C2/ru active
- 2015-12-29 JP JP2017547046A patent/JP6392468B2/ja active Active
- 2015-12-29 KR KR1020167005567A patent/KR101805090B1/ko active IP Right Grant
-
2016
- 2016-10-20 US US15/298,270 patent/US10157326B2/en active Active
- 2016-10-21 EP EP16195027.4A patent/EP3163502A1/en not_active Ceased
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101408933A (zh) * | 2008-05-21 | 2009-04-15 | 浙江师范大学 | 基于粗网格特征提取和bp神经网络的车牌字符识别方法 |
CN102184399A (zh) * | 2011-03-31 | 2011-09-14 | 上海名图信息技术有限公司 | 基于水平投影和连通域分析的字符分割方法 |
CN103310435A (zh) * | 2012-03-21 | 2013-09-18 | 华中科技大学 | 将垂直投影和最优路径相结合对车牌字符进行分割的方法 |
US9158986B2 (en) * | 2013-02-06 | 2015-10-13 | Nidec Sankyo Corporation | Character segmentation device and character segmentation method |
CN104156704A (zh) * | 2014-08-04 | 2014-11-19 | 胡艳艳 | 一种新的车牌识别方法及系统 |
Non-Patent Citations (1)
Title |
---|
XIONG, ZHEYUAN ET AL.: "Segmentation Algorithm of License Plate Characters Based on Mathematical Morphology Edge Detection", COMPUTER SYSTEMS & APPLICATIONS, vol. 19, no. 9, 30 September 2010 (2010-09-30) * |
Also Published As
Publication number | Publication date |
---|---|
JP6392468B2 (ja) | 2018-09-19 |
JP2018500705A (ja) | 2018-01-11 |
EP3163502A1 (en) | 2017-05-03 |
US20170124414A1 (en) | 2017-05-04 |
KR20170061631A (ko) | 2017-06-05 |
RU2639668C2 (ru) | 2017-12-21 |
RU2016110434A (ru) | 2017-09-26 |
MX2016003679A (es) | 2018-06-22 |
CN105528606B (zh) | 2019-08-06 |
US10157326B2 (en) | 2018-12-18 |
CN105528606A (zh) | 2016-04-27 |
KR101805090B1 (ko) | 2017-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017071063A1 (zh) | 区域识别方法及装置 | |
US10127471B2 (en) | Method, device, and computer-readable storage medium for area extraction | |
US20150332439A1 (en) | Methods and devices for hiding privacy information | |
KR101782633B1 (ko) | 영역 인식 방법 및 장치 | |
JP6392467B2 (ja) | 領域識別方法及び装置 | |
US10007841B2 (en) | Human face recognition method, apparatus and terminal | |
EP3125135A1 (en) | Picture processing method and device | |
WO2017071064A1 (zh) | 区域提取方法、模型训练方法及装置 | |
US10216976B2 (en) | Method, device and medium for fingerprint identification | |
CN105631803B (zh) | 滤镜处理的方法和装置 | |
CN106557759B (zh) | 一种标志牌信息获取方法及装置 | |
CN112927122A (zh) | 水印去除方法、装置及存储介质 | |
CN104899588A (zh) | 识别图像中的字符的方法及装置 | |
CN111797746B (zh) | 人脸识别方法、装置及计算机可读存储介质 | |
CN105956633B (zh) | 搜索引擎类别的识别方法和装置 | |
CN106227505A (zh) | 图像检测方法、装置和用于图像检测的装置 | |
CN110619257B (zh) | 一种文字区域确定方法和装置 | |
CN109002493A (zh) | 指纹数据库更新方法、装置、终端及存储介质 | |
CN110929548B (zh) | 指纹识别方法、装置、设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
ENP | Entry into the national phase |
Ref document number: 2017547046 Country of ref document: JP Kind code of ref document: A |
|
WWE | Wipo information: entry into national phase |
Ref document number: MX/A/2016/003679 Country of ref document: MX |
|
ENP | Entry into the national phase |
Ref document number: 2016110434 Country of ref document: RU Kind code of ref document: A |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15907124 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15907124 Country of ref document: EP Kind code of ref document: A1 |