RULES FOR MERGING BLOCKS OF CONNECTED COMPONENTS IN NATURAL IMAGES
First Claim
1. A method to determine whether to merge blocks of regions of an image, the method comprising:
- checking whether a first block and a second block that are located adjacent to one another and not overlapping one another in the image are such that a first projection of the first block on a straight line and a second projection of the second block on the straight line satisfy a test of overlap;
wherein the first block comprises a first region in the image with a first plurality of pixels that are contiguous with one another and comprising a first local extrema of intensity in the image;
wherein the second block comprises a second region in the image with a second plurality of pixels that are contiguous with one another and comprising a second local extrema of intensity in the image;
merging a first set of positions indicative of the first region in the first block with a second set of positions indicative of the second region in the second block to obtain a merged set of positions in a merged block, based at least on an outcome of the test of overlap;
wherein the first region and the second region do not contact one another in the merged block;
wherein the merged block comprises at least the first plurality of pixels in the first block and the second plurality of pixels in the second block; and
storing information related to the merged block in a memory;
wherein at least one of the checking, the merging and the storing are performed by one or more processors.
1 Assignment
0 Petitions
Accused Products
Abstract
An electronic device and method may capture an image of an environment, followed by identification of blocks of connected components in the image. A test for overlap of spans may be made, between a span of a block selected (e.g. for having a line of pixels) and another span of an adjacent block located above, or below, or to the left, or to the right of the selected block and when satisfied, these two blocks are merged. Blocks may additionally be tested, e.g., for relative heights of the two blocks, and/or aspect ratio of either or both blocks, etc. Classification of a merged block as text or non-text may use attributes of the merged block, such as location of a horizontal pixel line, number of vertical pixel lines, and number of black-white transitions and number of white-black transitions in a subset of rows located below the horizontal pixel line.
-
Citations
25 Claims
-
1. A method to determine whether to merge blocks of regions of an image, the method comprising:
-
checking whether a first block and a second block that are located adjacent to one another and not overlapping one another in the image are such that a first projection of the first block on a straight line and a second projection of the second block on the straight line satisfy a test of overlap; wherein the first block comprises a first region in the image with a first plurality of pixels that are contiguous with one another and comprising a first local extrema of intensity in the image; wherein the second block comprises a second region in the image with a second plurality of pixels that are contiguous with one another and comprising a second local extrema of intensity in the image; merging a first set of positions indicative of the first region in the first block with a second set of positions indicative of the second region in the second block to obtain a merged set of positions in a merged block, based at least on an outcome of the test of overlap; wherein the first region and the second region do not contact one another in the merged block; wherein the merged block comprises at least the first plurality of pixels in the first block and the second plurality of pixels in the second block; and storing information related to the merged block in a memory; wherein at least one of the checking, the merging and the storing are performed by one or more processors. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A mobile device comprising:
-
a camera; a memory operatively connected to the camera to receive at least an image therefrom; at least one processor operatively connected to the memory to execute a plurality of computer instructions stored in the memory, to supply information related to a merged block, the merged block being obtained by the at least one processor executing the plurality of computer instructions to merge a first block with a second block that is located adjacent to and not overlapping the first block; wherein the plurality of computer instructions cause the at least one processor to check whether a first projection of the first block on a straight line and a second projection of the second block on the straight line satisfy a test for overlap; and wherein the first block and the second block comprise a first region and a second region in the image having pixels contiguous with one another and comprising a local extrema of intensity in the image. - View Dependent Claims (19, 20)
-
-
21. One or more non-transitory computer readable storage media comprising computer instructions, which when executed in a handheld device, cause one or more processors in the handheld device to perform operations, the computer instructions comprising:
-
first instructions to check whether a first block and a second block located adjacent to one another in an image and not overlapping one another are such that a first projection of the first block on a straight line and a second projection of the second block on the straight line satisfy a test for overlap; and wherein the first block and the second block comprise a first region and a second region in the image having pixels contiguous with one another and comprising a local extrema of intensity in the image; second instructions to merge the first block and the second block to obtain a merged block, based at least on an outcome of the test; wherein pixels in the merged block comprise at least a first plurality of pixels in the first block and a second plurality of pixels in the second block; and third instructions to store information related to the merged block in a memory; wherein one or more of the first instructions, the second instructions, and the third instructions are to be executed by at least one processor among the one or more processors. - View Dependent Claims (22, 23)
-
-
24. An apparatus for identifying regions of text, the apparatus comprising:
-
a memory storing an image of an environment outside the apparatus; means, coupled to the memory, for checking whether a first block and a second block that are adjacent to one another and do not overlap are such that a first projection of the first block on a straight line and a second projection of the second block on the straight line satisfy a test for overlap; and wherein the first block and the second block comprise a first region and a second region in the image having pixels contiguous with one another and comprising a local extrema of intensity in the image; means for merging the first block and the second block to obtain a merged block, based at least on an outcome of the test; wherein pixels in the merged block comprise at least a first plurality of pixels in the first block and a second plurality of pixels in the second block; and means for storing in at least one memory, information related to the merged block. - View Dependent Claims (25)
-
Specification