USPatent applicationPatented

Image processing device generating character image and background image on the basis of connected pixel group

Granted 20 Oct 2015 · 1 office action

Assignee: Kyocera

Law firm: Law firm · Log in to unlock

Attorney: Attorney · Log in to unlock

Inventors: Masaki Baba, Toshiaki Mutsuo · Examiner: Bhavesh Mehta · AU 2665 · TC 2600

Life of the application

8 dated events
⤢ drag to zoom20142016201820202022202420262028203020322034ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

In an image processing device, an edge image generation part detects an edge in an original image and generates an edge image constituted from the detected edge. A connected pixel extraction part extracts connected pixel groups in the edge image. A binary image generation part classifies the connected pixel groups under respective colors of the connected pixel groups, and generates a character image for each color. A background image generation part generates a background image of the original image based on the character image so that a pixel value at the position of the character image in the original image is set by an average value of the pixel values in the original image with regard to at least a portion of pixels around a rectangle circumscribing the connected pixel groups. An image compression part compresses respective image data of the character image and background image by different compression manners.

Description

7 parts
›INCORPORATION BY REFERENCE

This application is based on and claims the benefit of priority from Japanese Patent application No. 2012-258798 filed on Nov. 27, 2012, the entire contents of which are incorporated herein by reference.

›BACKGROUND

The present disclosure relates to an image processing device.

When a character and a background image are separated from an original image and then image data of the character and image data of the background image are separately compressed, in a certain image processing device, the character and the background image are separated from the original image by region analysis processing. Then, a pixel value at the position of the character in the background image is determined by values of pixels around the character (i.e., pixels in contact with the outer periphery of the character).

Another image processing device identifies the position of a predetermined region containing a character portion in the background image by layout information, such as the line of a sentence, and fills the region with a color based on a color around the region.

However, in the technique of the former image processing device mentioned above, a processing speed is comparatively reduced due to the use of the region analysis processing. Further, because the values of the pixels around the character are used, when the color of the character runs to the pixels around the character in the original image, image quality after the compression will be degraded.

The technique described in the latter image processing device mentioned above cannot be used when the layout information is not present. Further, because the entire region is filled with the color around the region, image quality of the region filled with the color will be degraded.

›SUMMARY

In accordance with an embodiment of the present disclosure, an image processing device includes an edge image generation part, a connected pixel extraction part, a binary image generation part, a background image generation part, and an image compression part. The edge image generation part detects an edge in an original image and then generates an edge image constituted from the detected edge. The connected pixel extraction part extracts connected pixel groups in the edge image. The binary image generation part classifies the connected pixel groups under respective colors of the connected pixel groups, and generates a character image being a binary image, for each of the colors. The background image generation part generates a background image of the original image on the basis of the character image. The image compression part respectively compresses image data of the character image and image data of the background image by compression manners that are different from each other. The background image generation part generates the background image in which a pixel value at the position of the character image in the original image is set by an average value of the pixel values in the original image with regard to at least a portion of pixels around a rectangle circumscribing the connected pixel groups.

The above and other objects, features, and advantages of the present disclosure will become more apparent from the following description when taken in conjunction with the accompanying drawings in which a preferred embodiment of the present disclosure is shown by way of illustrative example.

›BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing a configuration of an image processing device according to an embodiment of the present disclosure.

FIGS. 2A to 2C are diagrams respectively illustrating examples of connected pixel groups extracted by the image processing device according to the embodiment of the present disclosure.

FIGS. 3A to 3C are diagrams respectively illustrating other examples of connected pixel groups extracted by the image processing device according to the embodiment of the present disclosure.

›DETAILED DESCRIPTION · 1 of 3

In the following, the embodiment of the present disclosure will be described with reference to the drawings.

FIG. 1 is a block diagram showing a configuration of an image processing device according to the embodiment of the disclosure. The image processing device shown in FIG. 1 is implemented by an ASIC (Application Specific Integrated Circuit), a computer or the like, for example. Image data of various images, such as an original image, are appropriately stored in a RAM (Random Access Memory), a non-volatile memory or the like. Then, the following processing parts are implemented by a processor in the ASIC or computer.

An edge image generation part 1 detects an edge in the original image and then generates an edge image constituted from the detected edge. In this embodiment, the edge image is an image indicating positions of pixels at a high-density side in the detected edge, and is a binary image. That is, the pixels at the high-density side in the detected edge have a pixel value of 1, and other pixels have a pixel value of 0.

In this embodiment, the original image is a multi-valued color image. The edge image generation part 1 generates an image having a brightness component of the original image, detects the edge in that image, and then generates the edge image constituted from the detected edge.

A connected pixel extraction part 2 extracts connected pixel groups within the edge image, and identifiably manages a string of connected pixels as one group. That is, when one connected pixel group and another connected pixel group are not connected, those connected pixel groups are respectively and identifiably managed as two groups. The connected pixel group is constituted from one single pixel or a plurality of pixels connected to each other, out of the above-mentioned pixels (pixels having the pixel value of 1) at the high-density side.

The connected pixel combining part 3 detects a plurality of the connected pixel groups whose circumscribing rectangles are close to each other, and groups those connected pixel groups as one connected pixel group. That is, when two connected pixel groups are grouped, those grouped connected pixel groups are managed as one connected pixel group. For example, in a case where the rectangles circumscribing the connected pixel groups partly overlap to each other, when a predetermined condition is established, those connected pixel groups are grouped. As the predetermined condition, a distance between the rectangles circumscribing the connected pixel groups being shorter than a predetermined value and the others may be pointed out.

A binary image generation part 4 classifies each of the connected pixel groups under respective colors (i.e., the respective colors in the original image) of the connected pixel groups, and then generates the image of a character for each of the colors. The character image is a binary image. At that time, the character image is generated on the basis of the connected pixel groups excluding the connected pixel groups being not correspondent to the character.

For example, a case where five connected pixel groups A to E are present is considered. Herein, It is assumed that the connected pixel groups A and B in the original image have a first color, that the connected pixel group C in the original image has a second color (different color from the first color), and that the connected pixel groups D and E in the original image have a third color (different color from the first and second colors). With respect to the first color, a character image is generated so that each pixel value at the positions of the connected pixel groups A and B is 1 and each pixel value at the other positions is 0. With respect to the second color, a character image is generated so that each pixel value at the position of the connected pixel group C is 1 and each pixel value at the other positions is 0. With respect to the third color, a character image is generated so that each pixel value at the positions of the connected pixel groups D and E is 1 and each pixel value at the other positions is 0.

A background image generation part 5 generates the background image of the original image on the basis of the above-mentioned character image. Specifically, the background image generation part 5 identifies, on the basis of the character image, the position of the character (i.e., positions of pixels having pixel values of 1) in the above-mentioned character image, and then, replaces the pixel value at the identified position in the original image in the following, thereby generating the background image.

The background image generation part 5 generates the background image in which the pixel value at the position of the character image (i.e. positions of pixels having pixel values of 1 in the character image) in the original image is set by the average value of the pixel values in the original image with regard to at least a portion of pixels around a rectangle circumscribing the connected pixel groups.

FIGS. 2A to 2C are diagrams respectively illustrating examples of connected pixel groups extracted by the image processing device shown in FIG. 1 .

The example shown in FIG. 2A illustrates a case where a Japanese Katakana character of “e” is present in an original image. In this example, a connected pixel group 101 is detected, and a rectangle 102 circumscribing the connected pixel group 101 is identified. In this example, based on pixel values in the original image with regard to pixels indicated by star marks around the rectangle 102 , a pixel value at the position of this connected pixel group 101 in a background image is determined.

The example shown in FIG. 2B illustrates a case where an alphabet character of “E” is present in an original image. In this example, a connected pixel group 111 is detected, and a rectangle 112 circumscribing the connected pixel group 111 is identified. In this example, based on pixel values in the original image with regard to pixels indicated by star marks around the rectangle 112 , a pixel value at the position of this connected pixel group 111 in a background image is determined.

›DETAILED DESCRIPTION · 2 of 3

The example shown in FIG. 2C illustrates a case where a Japanese Hiragana character of “tsu” is present in an original image. In this example, a connected pixel group 121 is detected, and a rectangle 122 circumscribing the connected pixel group 121 is identified. In this example, based on pixel values in the original image with regard to pixels indicated by star marks around the rectangle 122 , a pixel value at the position of this connected pixel group 121 in a background image is determined.

The background image generation part 5 may generate the background image in which a pixel value at the position of the character image in the original image is set by the average value of the pixel values in the original image with regard to all pixels around the above-mentioned rectangle.

The background image generation part 5 may generate the background image in which a pixel value at the position of the character image in the original image is set by the average value of the pixel values in the original image with regard to four pixels (pixels indicated by black star marks in each of FIGS. 2A to 2C ) positioned at four vertices of the above-mentioned rectangle.

When grouped connected pixel groups are present, the binary image generation part 4 classifies the grouped connected pixel groups under respective colors of the grouped connected pixel groups, and then generates a character image for each of the colors. At that time, when the color of not-grouped connected pixel group and the color of the grouped connected pixel groups are the same, those connected pixel groups are included in a same character image. Then, the background image generation part 5 generates, with respect to the grouped connected pixel group, a background image in which a pixel value at the position of the character image in the original image is set by the average value of the pixel values in the original image with regard to at least a portion of pixels around a rectangle circumscribing the entire grouped connected pixel group.

An image compression part 6 compresses image data of the above-mentioned character image and image data of background image by respective compression manners that are different from each other. For example, the image data of the character image is compressed by an MMR (Modified Modified READ) manner, while the image data of the background image is compressed by a JPEG (Join Photographic Experts Group) manner. The number of the image data of the character images is the same as the number of the colors, and each of the image data is compressed. The value of each color is managed, in association with image data obtained after the compression of the character image of the color.

Next, operation of the image processing device will be described.

First, the edge image generation part 1 detects an edge in an original image, and then, generates an edge image constituted from the detected edge.

Next, the connected pixel extraction part 2 extracts connected pixel groups in the edge image, and then, identifiably manages a string of connected pixels as one group.

At that time, the connected pixel combining part 3 identifies the position and the size of a rectangle circumscribing each connected pixel group extracted by the connected pixel extraction part 2 . When the connected pixel groups whose circumscribing rectangles are close to each other is present, the connected pixel combining part 3 detects the connected pixel groups whose circumscribing rectangles are close to each other, and groups those connected pixel groups as one connected pixel group.

Then, the binary image generation part 4 classifies the connected pixel groups under respective colors (i.e., the respective colors in the original image) of the connected pixel groups, and then, generates a character image for each of the colors.

In this way, the character image is generated for each color.

The background image generation part 5 generates the background image of the original image on the basis of the above-mentioned character image. At that time, as mentioned above, the background image generation part 5 generates the background image in which a pixel value at the position of the character image in the original image is set by the average value of the pixel values in the original image with regard to at least a portion of pixels around a rectangle circumscribing the connected pixel group.

In this way, the background image is generated.

Then, the image compression part 6 compresses image data of the above-mentioned character image and image data of background image by the respective compression manners that are different from each other.

In this way, the character image and the background image are separated from the original image, and the respective image data are separately compressed.

The image processing device according to the above-mentioned embodiment detects connected pixel groups each corresponding to a character reversed in density (i.e., a character having a density level lower than that of a background, hereinafter, called as “density reversed character”), such as an outline character, in the following. The binary image generation part 4 identifies to which of an ordinary character (character other than the density reversed character), the density reversed character, and a noncharacter the connected pixel group is correspondent, based on brightness values in an original image with regard to pixels at four vertices of a rectangle circumscribing the connected pixel group (that may be a grouped connected pixel group).

In this embodiment, when the brightness values in the original image with regard to the pixels at the four vertices of the rectangle circumscribing the connected pixel group (that may be the grouped connected pixel group) are all higher than a predetermined binary threshold value, the binary image generation part 4 decides that the connected pixel group is correspondent to the ordinary character. When the brightness values of the pixels at the four vertices of the rectangle are all lower than the binary threshold value, the binary image generation part 4 decides that the connected pixel group is correspondent to the density reversed character. Otherwise, the binary image generation part 4 decides that the connected pixel group is correspondent to the noncharacter.

›DETAILED DESCRIPTION · 3 of 3

In the case of the density reversed character, similarly to the case of the ordinary character, a character image is generated for each of colors of the density reversed characters, as illustrated in the embodiment. That is, the character image is generated for each of the density reversed character and the ordinary character, and no character image is generated for the noncharacter.

FIGS. 3A to 3C are diagrams respectively illustrating other examples of connected pixel groups extracted by the image processing device shown in FIG. 1

The example shown in FIG. 3A illustrates a case where an outline of the Japanese katakana character of “e” is present in an original image. In this example, a connected pixel group 201 is detected, and a rectangle 202 circumscribing the connected pixel group 201 is identified. Herein, this connected pixel group 201 is identified to be an outline character on the basis of brightness values in the original image with regard to pixels (pixels indicated by white star marks) at four vertices of the rectangle 202 .

The example shown in FIG. 3B illustrates a case where an outline of the alphabet character of “E” is present in an original image. In this example, a connected pixel group 211 is detected, and a rectangle 212 circumscribing the connected pixel group 211 is identified. Herein, this connected pixel group 211 is identified to be an outline character on the basis of brightness values in the original image with regard to pixels (pixels indicated by white star marks) at four vertices of the rectangle 212 .

The example shown in FIG. 3C illustrates a case where an outline of the Japanese hiragana character of “tsu” is present in an original image. In this example, a connected pixel group 221 is detected, and a rectangle 222 circumscribing the connected pixel group 211 is identified. Herein, this connected pixel group 221 is identified to be an outline character on the basis of brightness values in the original image with regard to pixels (pixels indicated by white star marks) at four vertices of the rectangle 222 .

As described above, according to the above-mentioned embodiment, the edge image generation part 1 detects the edge in the original image, and then generates the edge image constituted from the detected edge. The connected pixel extraction part 2 extracts connected pixel groups in the edge image. The binary image generation part 4 classifies the connected pixel groups under respective colors of the connected pixel groups, and then, generates the character image being a binary image, for each of the colors. The background image generation part 5 generates the background image of the original image on the basis of the character image. At that time, the background image generation part 5 generates the background image in which a pixel value at the position of the character image in the original image is set by the average value of the pixel values in the original image with regard to at least a portion of pixels around a rectangle circumscribing the connected pixel groups. Then, the image compression part 6 respectively compresses image data of the character image and image data of the background image by the compression manners that are different from each other.

According to this, the character image and the background image may be separated from the original image at a comparatively high processing speed and with good quality, without using the region analysis processing and layout information.

The above-described embodiment is a preferred example of the present disclosure. The present disclosure, however, is not limited to this embodiment, and can be variously varied and modified without departing from the gist of the present disclosure.

The present disclosure may be applied to compression of image data, for example.

While the present disclosure has been described with reference to the particular illustrative embodiment, it is not to be restricted by the embodiment. It is to be appreciated that those skilled in the art can change or modify the embodiment without departing from the scope and spirit of the present disclosure.

Claims as granted

5 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

2 codes
IPC · International Patent Classification
Section G — Physics
  • G06V30/148
  • G06V30/10

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomOct 2013Jan 2014Apr 2014Jul 2014Oct 2014Jan 2015Apr 2015Jul 2015Oct 2015USPTOApplicantNon-final rejectionResponse after non-final
USPTOApplicanthover for detail · click to open
Pendency
1.9 y
694 days filing → grant
Office actions
1
non-final + final
Responses
1
no RCE
Examiner
Bhavesh Mehta
art unit 2665 · TC 2600
Citations: 25 back · 0 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20142016201820202022202420262028203020322034Owner 1
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock