Abstract:
An electronic device and method use a camera to capture an image of an environment outside the electronic device followed by identification of regions, based on pixel intensities in the image. At least one processor automatically computes multiple values of an indicator of skew in multiple regions in the image respectively. The multiple values are specific to the multiple regions, and thereafter used to determine whether unacceptable skew is present across the regions, e.g. globally in the image as a whole. When skew is determined to be unacceptable, user input is requested to correct the skew, e.g. by displaying on a screen, a symbol and receiving user input (e.g. by rotating an area of touch or rotating the electronic device) to align a direction of the symbol with a direction of the image, and then the process may repeat (e.g. capture image, detect skew, and if necessary request user input).
Abstract:
An electronic device and method use a camera to capture an image of an environment outside the electronic device followed by identification of regions, based on pixel intensities in the image. At least one processor automatically computes multiple values of an indicator of skew in multiple regions in the image respectively. The multiple values are specific to the multiple regions, and thereafter used to determine whether unacceptable skew is present across the regions, e.g. globally in the image as a whole. When skew is determined to be unacceptable, user input is requested to correct the skew, e.g. by displaying on a screen, a symbol and receiving user input (e.g. by rotating an area of touch or rotating the electronic device) to align a direction of the symbol with a direction of the image, and then the process may repeat (e.g. capture image, detect skew, and if necessary request user input).
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.