Patent ID: 9158987
Filing Date: 2015-10-13
Classification: G06K,G06T

Abstract:
1. An image processing device comprising: a processor; and a memory storing computer-readable instructions therein, the computer-readable instructions, when executed by the processor, causing the image processing device to perform: a first separation to separate a target image represented by target image data into a plurality of regions that include a first region and a second region different from the first region; a second separation to separate the first region into a plurality of sub-regions and to separate the second region into a plurality of sub-regions; generating a consolidated region by consolidating at least two sub-regions among the plurality of sub-regions separated from the first and second regions when the at least two sub-regions satisfy at least one of prescribed consolidation conditions, irrespective of whether the at least two sub-regions include a sub-region in the first region and a sub-region in the second region; determining whether the consolidated region is a text region representing text, wherein the first separation extracts, from the target image, edge regions, each of which has a characteristic value representing a degree of edge strength that is greater than or equal to a prescribed reference value, and separates the target image into the plurality of regions, the plurality of regions being classified into non-uniform regions and uniform regions, each non-uniform region including an edge region, each uniform region including no edge region, the first region and the second region being non-uniform regions, and wherein at least one uniform region is located between the first region and the second region thereby separating the first region and the second region from each other, wherein the second separation includes: determining a first representative gradation value for the first region based on at least one of a gradation value of a uniform region surrounding the first region and a gradation value of an outer edge portion within the first region, the first representative gradation value defining a first threshold value indicative of a first background gradation range, the first background gradation range including the first representative gradation value therein; converting a gradation value of each pixel in the first region into a binary value by using the first threshold value and determining the plurality of sub-regions in the first region where each sub-region is configured of one or more pixels that are arranged contiguously and whose gradation values are out of the first background gradation range and are converted into the same binary value; determining a second representative gradation value for the second region based on at least one of a gradation value of a uniform region surrounding the second region and a gradation value of an outer edge portion within the second region, the second representative gradation value defining a second threshold value indicative of a second background gradation range, the second background gradation range including the second representative gradation value therein; and converting a gradation value of each pixel in the second region into a binary value by using the second threshold value and determining the plurality of sub-regions in the second region where each sub-region is configured of one or more pixels that are arranged contiguously and whose gradation values are out of the second background gradation range and are converted into the same binary value, wherein the at least two sub-regions include a first sub-region and a second sub-region and wherein the prescribed consolidation conditions include following prescribed conditions 1)-3); 1) sizes of the first and second sub-regions are smaller than or equal to a prescribed reference size; 2) a distance between the first and second sub-regions is smaller than or equal to a prescribed reference distance; and 3) a difference in gradation values between the first and second sub-regions is smaller than or equal to a prescribed reference gradation difference, and wherein the image processing device determines that the consolidated region is a text region when a total number of sub-regions that are consolidated into the consolidated region is greater than or equal to a prescribed reference region number.