JP2010011316A - Image processing apparatus, image processing method, image processing program, and recording medium with the program recorded thereon - Google Patents
Image processing apparatus, image processing method, image processing program, and recording medium with the program recorded thereon Download PDFInfo
- Publication number
- JP2010011316A JP2010011316A JP2008170734A JP2008170734A JP2010011316A JP 2010011316 A JP2010011316 A JP 2010011316A JP 2008170734 A JP2008170734 A JP 2008170734A JP 2008170734 A JP2008170734 A JP 2008170734A JP 2010011316 A JP2010011316 A JP 2010011316A
- Authority
- JP
- Japan
- Prior art keywords
- character
- image
- character string
- enlarged
- image processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、デジタルデータ化された漫画等の画像をパソコン、携帯電話、PDA等の端末へ表示させるための画像処理装置に関する。 The present invention relates to an image processing apparatus for displaying a digital image of a comic or the like on a terminal such as a personal computer, a mobile phone, or a PDA.
近年、携帯電話、PDAなどを対象に、ゲームや漫画等の各種コンテンツを電子配信するサービスが広がっている。例えば、漫画を電子配信する場合は、漫画の各コマを一つの画像データとして、携帯電話等にダウンロードすることにより行われている。この電子配信用の画像データの作成にあたっては、すでに紙媒体に印刷された漫画の原稿をスキャナで読み取り、画像を整形、コマごとに切り出し、エフェクトを付与するなどの編集が行われている。しかし、画像データの編集は、画像編集ソフトを活用し、人の操作により行われることが一般的で大変手間がかかる。 In recent years, services for electronically distributing various contents such as games and comics have been spreading for mobile phones, PDAs and the like. For example, when a comic is electronically distributed, each comic frame is downloaded as one image data to a mobile phone or the like. In creating the image data for electronic distribution, editing such as reading a manuscript document already printed on a paper medium with a scanner, shaping the image, cutting out each frame, and applying an effect is performed. However, image data editing is generally performed by a human operation using image editing software, which is very troublesome.
ところで、携帯電話などの携帯端末の表示部はそれほど大きくないため、漫画の吹き出し部分に表示されたセリフなどの文字が読み取りにくいという問題がある。このような文字の読みにくさを解消するため、たとえば、静止画漫画の画像データを再生した後、所定時間経過後に画像に対応した吹き出し部分の文字情報を再生することが提案されている(特許文献1又は2参照)。このような構成とすることにより、ユーザが大きな文字で吹き出し部分の文字情報を確認することができる。その他、漫画の画像データのうち、所定のコマのみを拡大表示させることにより、ユーザに対する視認性を向上させることも提案されている(特許文献3)。この方法によれば、コマ送りの操作を行わずに、視認性が悪いという問題を解決することができる。 By the way, since the display part of portable terminals, such as a mobile phone, is not so large, there exists a problem that characters, such as words displayed on the speech balloon part, are difficult to read. In order to eliminate such difficulty in reading characters, for example, it has been proposed to play back character information of a balloon corresponding to an image after a predetermined time has elapsed after playing back image data of a still image comic (patent) Reference 1 or 2). With such a configuration, the user can confirm the character information of the balloon portion with a large character. In addition, it has also been proposed to improve visibility to the user by enlarging and displaying only predetermined frames of the comic image data (Patent Document 3). According to this method, it is possible to solve the problem of poor visibility without performing a frame advance operation.
しかし、特許文献1又は2のような場合は、画像に重ねて文字情報が表示されるため、原作のイメージが壊れてしまう可能性があり、また、表示された漫画(絵柄)を十分に楽しみたい場合であっても、所定時間を経過すると文字情報が表示されてしまうという問題もある。また、特許文献3のような場合でも、原作では小さいコマで表示されているものが、必要以上に拡大されて表示されると、原作のイメージが崩れてしまう可能性がある。本発明では、漫画の画像データを電子配信する際に、原作におけるコマの大小の違いを残し、原作のイメージを壊すことなく、漫画の吹き出し部分の文字が視認しやすく表示できるような、画像処理装置を提供する。 However, in the case of Patent Document 1 or 2, since the character information is displayed over the image, the original image may be broken, and the displayed comic (picture) is fully enjoyed. Even if it is desired, there is a problem that character information is displayed after a predetermined time has elapsed. Further, even in the case of Patent Document 3, if the original is displayed in a small frame but is enlarged more than necessary, the image of the original may be destroyed. In the present invention, when electronically distributing comic image data, image processing is performed such that characters in the comic balloon can be displayed easily without leaving a difference in the size of the frame in the original, and without destroying the original image. Providing equipment.
本発明は、画像データを処理する画像処理装置であって、画像の輪郭を抽出する輪郭抽出手段と、抽出された輪郭が画像を電子配信した際に端末の表示部に表示される標準領域内に収まるように画像を拡大又は縮小する画像サイズ調整手段と、画像中の文字列を認識する文字列認識手段と、認識された文字列を構成する文字が所定のサイズとなるように拡大又は縮小する文字サイズ調整手段とからなる画像処理装置に関する。このような構成とすることで、画像(コマ)が必要以上に拡大又は縮小されることがないため、漫画の原作におけるコマの大小の違いを反映しつつ、携帯電話等に表示できる画像編集が可能となる。また、文字の大きさも所定のサイズに調整されるため、視認性に優れ、且つ各コマの文字の大きさも統一され、コマ間の違和感も生じなくなる。 The present invention is an image processing apparatus for processing image data, and includes a contour extracting means for extracting a contour of an image, and a standard region displayed on a display unit of a terminal when the extracted contour electronically distributes the image. Image size adjusting means for enlarging or reducing the image so as to fit in the image, character string recognizing means for recognizing the character string in the image, and enlargement or reduction so that the characters constituting the recognized character string have a predetermined size The present invention relates to an image processing apparatus comprising character size adjusting means. With this configuration, the image (frame) is not enlarged or reduced more than necessary, so image editing that can be displayed on a mobile phone or the like while reflecting the difference in size of the frame in the original comic. It becomes possible. In addition, since the character size is also adjusted to a predetermined size, the visibility is excellent, the character size of each frame is unified, and a sense of incongruity between frames does not occur.
複数の画像を処理する場合に、輪郭抽出手段により抽出された複数の画像の輪郭の大きさ及び/又は画像の複雑度に応じて、前記標準領域を設定する標準領域設定手段とからなることが好ましい。このような構成とすることで、電子配信を行う各作品に合わせた標準領域を設定することができ、不要な拡大又は縮小処理を行わずに画像の処理ができる。 When processing a plurality of images, the image processing apparatus may include a standard region setting unit that sets the standard region according to the contour size and / or image complexity of the plurality of images extracted by the contour extraction unit. preferable. With such a configuration, it is possible to set a standard area according to each work to be distributed electronically, and to perform image processing without performing unnecessary enlargement or reduction processing.
また、文字列認識手段により認識された文字列の文字情報を認識する文字情報認識手段と、文字サイズ調整手段により拡大された拡大文字から構成される拡大文字列が、文字列の周囲を取り囲む吹き出し領域内に収まるか否かを判定する吹き出し領域判定手段と、拡大文字列が吹き出し領域に収まらない場合であって、文字情報認識手段により認識された文字情報が予め定められた改行可能文字と一致し、かつ、改行可能文字と一致する文字情報を有する拡大文字の前又は後での拡大文字列の改行を実行することで得られる改行文字列が吹き出し領域内に収まる場合に、前記拡大文字列の改行を実行する改行実行手段とからなることが好ましい。このような構成とすることで、拡大された文字列が吹き出し内に収まりきらないような場合であっても、吹き出し内に収まるよう編集することが可能となる。改行をすることで読みにくくなったりしない場合にのみ改行が行われるため、改行による読みにくさの問題も特に発生しない。 A character information recognition unit that recognizes character information of a character string recognized by the character string recognition unit, and an expanded character string that is formed by an enlarged character expanded by the character size adjustment unit includes a balloon surrounding the character string. A balloon area determining means for determining whether or not the character string is within the area; and a character information recognized by the character information recognizing means when the enlarged character string does not fit in the balloon area and And when the line feed character string obtained by executing the line feed of the expanded character string before or after the expanded character having character information that matches the line breakable character fits within the balloon area, the expanded character string It is preferable that it comprises a line feed executing means for executing the line feed. With such a configuration, even when the enlarged character string does not fit in the speech balloon, editing can be performed so that it fits in the speech balloon. Since line breaks are only made when the line breaks do not make it difficult to read, there is no particular difficulty in reading due to line breaks.
さらに、文字列認識手段により認識された文字列の文字情報を認識する文字情報認識手段と、文字サイズ調整手段により拡大された拡大文字から構成される拡大文字列が、文字列の周囲を取り囲む吹き出し領域内に収まるか否かを判定する吹き出し領域判定手段と、拡大文字列が吹き出し領域に収まらない場合であって、文字情報認識手段により認識された文字情報が予め定められた字間調整文字と一致し、かつ、字間調整文字と一致する文字情報を有する拡大文字と隣接する拡大文字との字間の調整を実行することで得られる字間調整文字列が吹き出し領域内に収まる場合に、前記字間の調整を実行する字間調整実行手段とからなることが好ましい。このような構成とすることで、拡大された文字列が吹き出し内に収まりきらないような場合であっても、吹き出し内に収まるよう編集することが可能となる。字間を調整することで読みにくくなったりしない場合にのみ字間の調整が行われるため、字間の調整による読みにくさの問題も特に発生しない。 In addition, a character information recognition unit that recognizes character information of the character string recognized by the character string recognition unit, and an expanded character string that is composed of the expanded characters expanded by the character size adjustment unit A balloon area determining means for determining whether or not the character string is within the area, and a character information recognized by the character information recognizing means when the enlarged character string does not fit in the balloon area; When the character spacing adjustment character string obtained by executing the adjustment between the enlarged character having character information that matches and the character information matching the character spacing adjustment character and the adjacent enlarged character fits in the balloon area, It is preferable to comprise character spacing adjustment execution means for performing the character spacing adjustment. With such a configuration, even when the enlarged character string does not fit in the speech balloon, editing can be performed so that it fits in the speech balloon. Since adjustment between characters is performed only when adjustment between the characters does not make it difficult to read, the problem of difficulty in reading due to adjustment between characters does not occur.
文字サイズ調整手段により拡大された拡大文字から構成される拡大文字列が、文字列の周囲を取り囲む吹き出し領域内に収まるか否かを判定する吹き出し領域判定手段と、拡大文字列が吹き出し領域に収まらない場合に吹き出し領域を拡大するよう調整する吹き出し領域調整手段とからなることが好ましい。このような構成とすることで、拡大された文字列が吹き出し内に収まりきらないような場合であっても、吹き出し内に収まるよう編集することが可能となる。 A balloon area determining means for determining whether or not an enlarged character string composed of the enlarged characters enlarged by the character size adjusting means fits in a balloon area surrounding the character string, and the enlarged character string does not fit in the balloon area. It is preferable to include a balloon area adjusting unit that adjusts the balloon area so that the balloon area is enlarged when there is not. With such a configuration, even when the enlarged character string does not fit in the speech balloon, editing can be performed so that it fits in the speech balloon.
本発明は、画像データを処理する画像処理方法であって、画像の輪郭を抽出する輪郭抽出ステップと、抽出された輪郭が、画像を電子配信した際に端末の表示部に表示される標準領域内に収まるように画像を拡大又は縮小する画像サイズ調整ステップと、画像中の文字列を認識する文字列認識ステップと、認識された文字列を構成する文字が所定のサイズとなるように拡大又は縮小する文字サイズ調整ステップとからなる画像処理方法に関する。 The present invention relates to an image processing method for processing image data, a contour extracting step for extracting the contour of an image, and a standard region in which the extracted contour is displayed on a display unit of a terminal when the image is electronically distributed. An image size adjusting step for enlarging or reducing the image so as to fit within, a character string recognizing step for recognizing a character string in the image, and an enlargement or reduction so that the characters constituting the recognized character string have a predetermined size The present invention relates to an image processing method including a character size adjustment step for reduction.
また、本発明は、画像の輪郭を抽出する輪郭抽出ステップと、抽出された輪郭が、画像を電子配信した際に端末の表示部に表示される標準領域内に収まるように画像を拡大又は縮小する画像サイズ調整ステップと、画像中の文字列を認識する文字列認識ステップと、認識された文字列を構成する文字が所定のサイズとなるように拡大又は縮小する文字サイズ調整ステップとからなる画像処理方法をコンピュータに実行させるためのプログラムに関する。 The present invention also provides an outline extraction step for extracting the outline of an image, and enlarges or reduces the image so that the extracted outline is within a standard area displayed on the display unit of the terminal when the image is electronically distributed. An image size adjusting step, a character string recognizing step for recognizing a character string in the image, and a character size adjusting step for enlarging or reducing the character constituting the recognized character string to a predetermined size. The present invention relates to a program for causing a computer to execute a processing method.
さらに、本発明は、画像の輪郭を抽出する輪郭抽出ステップと、抽出された輪郭が、画像を電子配信した際に端末の表示部に表示される標準領域内に収まるように画像を拡大又は縮小する画像サイズ調整ステップと、画像中の文字列を認識する文字列認識ステップと、認識された文字列を構成する文字が所定のサイズとなるように拡大又は縮小する文字サイズ調整ステップとからなる画像処理方法をコンピュータに実行させるためのプログラムを記録したコンピュータ読取可能な記録媒体に関する。 Further, the present invention provides a contour extraction step for extracting the contour of an image, and enlarges or reduces the image so that the extracted contour is within a standard area displayed on the display unit of the terminal when the image is electronically distributed. An image size adjusting step, a character string recognizing step for recognizing a character string in the image, and a character size adjusting step for enlarging or reducing the character constituting the recognized character string to a predetermined size. The present invention relates to a computer-readable recording medium recording a program for causing a computer to execute a processing method.
本発明によれば、漫画の画像データを編集する場合に、コマが必要以上に拡大又は縮小されることがないため、原作におけるコマの大小の違いを残すことができ、漫画の原作のイメージを壊すことなく、携帯電話等に表示することが可能となる。また、文字の大きさも所定のサイズに調整されるため、視認性に優れ、且つ各コマの文字の大きさも統一され、コマ間の違和感も生じなくなる。 According to the present invention, when editing comic image data, since the frame is not enlarged or reduced more than necessary, it is possible to leave a difference in the size of the original frame. It can be displayed on a mobile phone or the like without breaking. In addition, since the character size is also adjusted to a predetermined size, the visibility is excellent, the character size of each frame is unified, and a sense of incongruity between frames does not occur.
図1は、本発明にかかる画像処理装置のハードウェア構成を示す図である。本発明にかかる画像処理装置は、画像処理装置全体を制御する制御部101と、データが格納されているメモリ部103と、情報入力部105と、輪郭抽出部107と、画像サイズ調整部109と、文字列認識部111、文字サイズ調整部113、標準領域設定部115、文字情報認識部117、吹き出し領域判定部119、改行実行部121、字間調整部123、吹き出し領域調整部125、表示部127で構成されており、各処理部はバス129で接続されている。
FIG. 1 is a diagram showing a hardware configuration of an image processing apparatus according to the present invention. An image processing apparatus according to the present invention includes a
制御部101はCPU(Central Processing Unit)が該当する。メモリ部103は、一般的にはROM(Read Only Memory)とRAM(Random Access Memory)で構成される。表示部127はディスプレイが該当する。
The
次に図2において、本発明にかかる画像処理のフローを説明する。まず、ステップS10において、画像データを情報入力部105で受ける。情報入力部105は、紙媒体に描かれた画像をデジタルデータに変換するスキャナであってもよく、予めデジタルデータに変換された画像データの入力を受けるものであっても良い。通常、スキャナで読み取られた画像データは、傾きの補正、汚れやシミを取り除くフィルタ処理、コマごとに区切るなどの各種の処理が画像編集ソフトにより行われるが、これらの処理は、本発明の画像処理装置にて行っても良く、また、予め編集を行った画像データを情報入力部105へ入力しても良い。
Next, referring to FIG. 2, the flow of image processing according to the present invention will be described. First, in step S <b> 10, image data is received by the
次にステップS12で、輪郭抽出部107により画像の輪郭の抽出が行われる。画像がコマごとに処理される場合は、コマの輪郭の抽出が行われる。情報入力部105により入力された画像データの各画素の濃度に基づいて、各画素を数値化する。たとえば、白色の場合が255、黒色の場合が0で、その色の濃さに応じて0〜255の濃度値のいずれかで表される。ここで、画像データの全画素について上下方向及び左右方向に走査し、隣接する画素との濃度値の変化が所定値以上となる画素を抽出する。すなわち、黒色の画素と白色の画素が左右又は上下のいずれかで隣接する場合のように、全く異なる濃度値を有する画素と隣接する画素のみを抽出する。抽出された画素には、画像の輪郭を形成する画素以外の画素も含まれるが、抽出された画素のうち最も外側の画素のみを抽出することで、画像の輪郭、すなわちコマの輪郭が抽出できる。最も外側の画素とは、ある列に存在する画素において最も上部に存在する画素及び最も下部に存在する画素、ある行に存在する画素において最も左部に存在する画素及び最も右部に存在する画素を指す。最も外側の画素は線分を形成することができ、この線分がコマの輪郭となる。
In step S12, the
ステップS14で、標準領域設定部115により標準領域の設定が行われる。標準領域は、処理した漫画の画像データを端末に電子配信した場合に、端末の表示部に表示される領域を表すものであり、通常は長方形である。後述する画像サイズの調整は、この標準領域をもとに行われる。標準領域の縦方向の長さと横方向の長さの比は、電子配信される端末の表示部の比に依存することになり、電子配信される端末の種類によって設定が可能である。例えば、携帯電話に画像が電子配信される場合であって表示部の縦方向の長さと横方向の長さの比が1.5対1となる場合は、標準領域の縦方向の長さと横方向の長さの比は1.5対1となる。
In step S14, the standard
コマが比較的大きい傾向にある作品もあれば、コマが比較的小さい傾向にある作品もあり、また、絵柄部分が細かく表現されていたり、文字が多い作品もあれば、絵柄部分が比較的簡単に表現されていたり、文字が少ない作品もあるため、標準領域の設定は作品ごとに行われる。処理するコマが複数存在する場合は、輪郭抽出部により抽出された、複数のコマの輪郭の大きさに応じて、標準領域が設定される。例えば、コマの縦方向の長さについて平均値をとり、その平均値が標準領域の縦方向の長さとなる。標準領域の縦方向の長さと横方向の長さの比が1.5対1と定められている場合は、標準領域の横方向の長さは、縦方向の長さについての平均値の2/3となる。また、例えば、複数のコマのうち、最も数の多い縦方向の長さを標準領域の縦方向の長さとし、表示部の縦方向と横方向の長さの比をもとに、標準領域の横方向の長さを設定することも可能である。 Some works tend to be relatively large, while others tend to be relatively small. In addition, if there are works that have a finely detailed design or a lot of text, the design is relatively easy. Because there are works that are expressed in or with few characters, the standard area is set for each work. When there are a plurality of frames to be processed, the standard region is set according to the outline size of the plurality of frames extracted by the contour extraction unit. For example, an average value is taken for the vertical length of the frames, and the average value is the vertical length of the standard area. When the ratio of the vertical length and the horizontal length of the standard area is determined to be 1.5 to 1, the horizontal length of the standard area is 2 of the average value for the vertical length. / 3. Also, for example, among the plurality of frames, the vertical length with the largest number is the vertical length of the standard region, and the standard region is calculated based on the ratio of the vertical length and the horizontal length of the display unit. It is also possible to set the length in the horizontal direction.
また、コマの大きさだけでなく、画像の複雑度、すなわちコマ内で描かれた絵柄の複雑さに応じて、輪郭領域の大きさを定めることもできる。たとえば、画像データの全画素について上下方向及び左右方向に走査し、隣接する画素との濃度値の変化が所定値以上となる画素を抽出する。そして、抽出された画素の数に応じて、標準領域の大きさを設定する。抽出された画素が多い場合は、絵柄が複雑であるから、標準領域を小さく設定することで、電子配信時にコマ内の文字や絵柄がより大きく端末に表示されるように、画像を調整する。逆に、抽出された画素が少ない場合は、絵柄が簡素であるから、標準領域を比較的大きく設定することになる。例えば、前記のように、コマの縦方向の長さについて平均値をとり、この平均値をもとに標準領域を定めた場合であっても、隣接する画素との濃度値の変化が所定値以上となる画素の数が多いものと少ないものとの間で、標準領域の大きさを変えることが可能である。抽出された画素数と標準領域の大きさの設定の対応関係は予め定めておくことができ、たとえば、抽出された画素数が100以下の場合の標準領域の大きさを1とした場合に、抽出された画素数が101以上の場合の標準領域の大きさを0.95と小さく設定することが可能である。なお、本実施形態においては、標準領域設定部115により標準領域の設定が自動的に行われる構成としたが、各作品の内容を確認したうえで、人が標準領域を手動で設定することも可能である。
Also, the size of the contour region can be determined not only according to the size of the frame but also according to the complexity of the image, that is, the complexity of the pattern drawn in the frame. For example, all the pixels of the image data are scanned in the vertical direction and the horizontal direction, and pixels whose density value changes with adjacent pixels are equal to or greater than a predetermined value are extracted. Then, the size of the standard area is set according to the number of extracted pixels. If the number of extracted pixels is large, the design is complicated. Therefore, by setting the standard area small, the image is adjusted so that characters and designs in the frame are displayed larger on the terminal during electronic distribution. On the other hand, when the number of extracted pixels is small, the design is simple and the standard area is set to be relatively large. For example, as described above, even when the average value is taken for the length of the frame in the vertical direction and the standard area is determined based on this average value, the change in the density value between adjacent pixels is a predetermined value. It is possible to change the size of the standard area between a large number and a small number of pixels. The correspondence between the number of extracted pixels and the setting of the size of the standard area can be determined in advance. For example, when the size of the standard area when the number of extracted pixels is 100 or less is 1, When the number of extracted pixels is 101 or more, the size of the standard area can be set as small as 0.95. In this embodiment, the standard
次にステップS16で、画像サイズ調整部109により標準領域内に収まるように画像の拡大又は縮小が行われる。図3は、本発明における標準領域とコマとの関係を示す図である。図3(a)は画像サイズ調整部による画像の調整が行われる前の標準領域とコマとの関係を示すもので、コマ201内に人物205と、その人物のセリフが記載されている吹き出し207が描かれている。コマ201は標準領域203より大きいため、画像の縮小が行われない場合は電子配信時に端末の表示部にコマ201が収まりきらないこととなり、吹き出し207の一部が表示されないこととなる。図3(b)は画像サイズ調整部による画像の調整が行われた後の標準領域とコマとの関係を示すもので、標準領域203内にコマ201が収まっている。そのため、電子配信時に端末の表示部にコマ201が収まることとなり、人物205、吹き出し207のいずれも途中で途切れることなく表示される。画像サイズ調整部109による画像の縮小が行われる前にすでに標準領域内に画像が収まっている場合は、標準領域内に収まる範囲内で画像の拡大を行っても良く、特に拡大処理を行わなくても良い。
In step S16, the image size adjustment unit 109 enlarges or reduces the image so as to be within the standard area. FIG. 3 is a diagram showing the relationship between the standard area and the frame in the present invention. FIG. 3A shows the relationship between the standard area and the frame before the image adjustment by the image size adjusting unit. The
次にステップS18で、文字列認識部111により画像中の文字列の認識が行われる。図4は、画像処理の対象となるコマ(図4(a))と、文字列を認識するためのヒストグラム(図4(b))を表す図である。図4(a)では、コマ201内に人物205、吹き出し207が描かれ、そして吹き出し207内にはセリフとそのセリフの振り仮名を構成する文字列が描かれている。まず、コマ201を上部から横方向に等分で任意の数の長方形に分割する。図4(a)では6分割している。そして、分割された各長方形内のすべての画素を上下方向に走査する。そして、各長方形について、画像の横方向をx軸、横方向をy軸としたときに、各x座標において濃度値が一定値以内(例えば、濃度値0〜25)で表される画素の数を合計すると、図4(b)のようなヒストグラムが得られる。このヒストグラムにおいて、縦軸方向は各x座標における黒色又は黒色に非常に近い色の画素数を表す。ヒストグラム内の各々のピークは吹き出し207内の文字列に対応し、ピークの幅は文字列の幅に対応している。したがって、吹き出し207のセリフに相当する文字列のピークは幅が広く、またピークの高さも高くなる。一方、吹き出し207の振り仮名に相当する文字列のピークは幅が狭く、またピークの高さも低くなる。走査した長方形内に文字列が存在するような場合は、幅が広く且つ高さが高いピークと、幅が狭く且つ高さが低いピークが交互に得られるため、このようなパターンを形成する箇所に文字列が存在することがわかる。こうして、文字列が存在するx座標とy座標を特定することで、文字列の認識が可能となる。ここでコマ201を上部から等分に複数の長方形に分割しているが、これは、文字列以外の絵柄を構成する画素の影響を排除するためで、より多くの長方形に分割し、画素を走査することで、より正確な文字列の認識が可能となる。また、ここでは、コマ201を上部から横方向に等分で複数の長方形に分割し、上下方向に画素を走査したが、セリフが縦書きではなく、横書きで記載されているような場合は、また、コマを縦方向に等分で複数の長方形に分割し、左右方向に画素を走査することで、文字列の認識を行う。
In step S18, the character
次にステップS20で、文字サイズ調整部113により文字が所定のサイズとなるように拡大又は縮小される。画像サイズ調整部により、画像全体が拡大又は縮小されており、コマごとにその拡大率、縮小率も異なるため、文字サイズの統一が行われる。文字サイズは端末で表示したときに14ポイント程度の大きさとなることが好ましい。このとき、文字ごとに拡大又は縮小を行うこともできるが、文字列ごとに拡大又は縮小を行うことが望ましい。文字ごとに拡大又は縮小を行うとコマごとに字間や行間が変わってくるが、文字列全体として拡大又は縮小を行えば、そのような問題は発生しない。 Next, in step S20, the character size adjustment unit 113 enlarges or reduces the character so as to have a predetermined size. The entire image is enlarged or reduced by the image size adjustment unit, and the enlargement rate and reduction rate are different for each frame, so that the character size is unified. The character size is preferably about 14 points when displayed on the terminal. At this time, enlargement or reduction can be performed for each character, but it is desirable to perform enlargement or reduction for each character string. When enlargement or reduction is performed for each character, the space between characters or the line is changed for each frame. However, if the entire character string is enlarged or reduced, such a problem does not occur.
次いでステップS22で、調整された文字列(拡大文字列)が、吹き出し領域内に収まるか否かが、吹き出し領域判定部119にて判定される。ここで、拡大文字列とは、文字サイズ調整部113により拡大された拡大文字から構成される文字列である。また、吹き出し領域とは、文字サイズが拡大される前の文字列を取り囲む黒色の画素からなる線分で構成される領域である。拡大文字列が吹き出し領域内に収まる場合は、画像の処理は終了となる。文字サイズ調整部113により縮小された縮小文字から構成される縮小文字列は当然、吹き出し領域に収まることとなるため、画像の処理は終了となる。 Next, in step S22, the balloon area determination unit 119 determines whether or not the adjusted character string (enlarged character string) fits in the balloon area. Here, the enlarged character string is a character string composed of enlarged characters enlarged by the character size adjusting unit 113. The balloon area is an area composed of line segments composed of black pixels surrounding the character string before the character size is enlarged. If the enlarged character string fits within the balloon area, the image processing ends. Since the reduced character string composed of the reduced characters reduced by the character size adjusting unit 113 naturally fits in the balloon area, the image processing ends.
拡大文字列が吹き出し領域内に収まらない場合は、ステップS24で、文字情報認識部117により文字列を構成する文字の認識が行われる。この文字認識は、通常のOCR機能(光学文字認識機能)により行われる。
If the enlarged character string does not fit within the balloon area, the character
次に、ステップS26で、改行の実行が可能か否かについて判定が行われる。改行の実行が可能か否かについては、文字情報認識部117により認識された文字情報が、改行可能文字と一致することが条件となる。ここで、改行可能文字とは、その前又は後で改行が可能であると予め定められた文字で、例えば、「!」、「・・・」、「?」などがあげられる。改行を、改行可能文字と一致する拡大文字の前または後のいずれで行うかについては、改行可能文字ごとに設定することが可能である。この改行可能文字と一致する拡大文字の前または後で、拡大文字列の改行を実行することで得られる文字列が吹き出し領域内に収まる場合は、ステップS28において、改行実行部121により改行の実行が行われる。改行が実行された場合は、振り仮名についても、同様に改行が実行されることとなる。改行が実行されると画像の処理は終了となる。
Next, in step S26, a determination is made as to whether a line feed can be executed. Whether or not the line feed can be executed is based on the condition that the character information recognized by the character
改行の実行が不可であるとステップS26において判定された場合は、ステップS30において、文字列の字間の調整が可能か否かについて判定される。字間の調整が可能か否かについては、文字情報認識部117により認識された文字情報が予め定められた字間調整文字と一致することが条件となる。字間調整文字としては、例えば、カタカナがあげられる。字間調整文字と一致する拡大文字とその前後に位置する拡大文字との字間の調整を実行することで得られる文字列が吹き出し領域内に収まる場合は、ステップS32において、字間調整部123により字間の調整が実行される。字間の調整とは、前後の文字間に存在する白色の画素の一部を削除し、文字と文字の間の間隔をつめることを指す。例えば、文字列が縦書きである場合は、文字列の横幅と同一幅となる白色の画素が数行削除される。逆に、文字列が横書きである場合は、文字列の縦幅と同一幅となる白色の画素が数列削除される。削除される間隔については、文字と文字の大きさに応じて設定することができ、文字の大きさが大きい場合は削除される間隔も小さくし、文字の大きさが小さい場合は削除する間隔も比較的大きくすることが可能である。また、文字の大きさに応じて、字間を調整した後の文字と文字の間隔の最小値を設けておくこともできる。字間の調整が行われた場合は、画像の処理は終了となる。
If it is determined in step S26 that the line feed cannot be executed, it is determined in step S30 whether or not the character string in the character string can be adjusted. Whether or not the adjustment between characters is possible is based on the condition that the character information recognized by the character
また、文字列中に、改行可能文字及び字間調整文字のいずれもが存在する場合に、拡大文字列の改行及び字間の調整をいずれも実行することで得られる文字列が吹き出し領域内に収まる場合は、改行の実行と字間の調整を同時に行っても良い。 In addition, when both a line feedable character and a character adjustment character exist in the character string, the character string obtained by executing both the line feed and character adjustment of the enlarged character string is within the balloon area. If it fits, you may perform line breaks and adjust between characters at the same time.
字間の調整が不可であるとステップS30において判定された場合は、ステップS34において、吹き出し領域の拡大が吹き出し領域調整部125により行われる。吹き出し領域の拡大は、予め設定された所定の倍率をもとに拡大される。吹き出し領域が拡大されると、再度ステップS22で、拡大文字列が、吹き出し領域内に収まるか否かが判定される。拡大された吹き出し領域をもとに、改行の実行及び字間の調整が可能か否かについて判定され、文字列が吹き出し領域に収まるように画像の処理が行なわれる。 If it is determined in step S30 that adjustment between characters is not possible, the balloon area adjustment unit 125 enlarges the balloon area in step S34. The balloon area is enlarged based on a predetermined magnification set in advance. When the balloon area is enlarged, it is determined again in step S22 whether or not the enlarged character string fits in the balloon area. Based on the expanded balloon area, it is determined whether or not line breaks can be executed and adjustment between characters is possible, and image processing is performed so that the character string fits in the balloon area.
本実施形態では画像処理装置について説明したが、本発明は、これらの処理をコンピュータに実行させるためのプログラムや、そのプログラムを記録した記録媒体にも適用することができる。 Although the image processing apparatus has been described in the present embodiment, the present invention can also be applied to a program for causing a computer to execute these processes and a recording medium on which the program is recorded.
101 制御部
103 メモリ部
105 情報入力部
107 輪郭抽出部
109 画像サイズ調整部
111 文字列認識部
113 文字サイズ調整部
115 標準領域設定部
117 文字情報認識部
119 吹き出し領域判定部
121 改行実行部
123 字間調整部
125 吹き出し領域調整部
127 表示部
129 バス
201 コマ
203 標準領域
205 人物
207 吹き出し
DESCRIPTION OF
Claims (8)
画像の輪郭を抽出する輪郭抽出手段と、
抽出された輪郭が、画像を電子配信した際に端末の表示部に表示される標準領域内に収まるように画像を拡大又は縮小する画像サイズ調整手段と、
画像中の文字列を認識する文字列認識手段と、
認識された文字列を構成する文字が所定のサイズとなるように拡大又は縮小する文字サイズ調整手段とからなる画像処理装置。 An image processing apparatus for processing image data,
Contour extracting means for extracting the contour of the image;
Image size adjusting means for enlarging or reducing the image so that the extracted contour fits within a standard area displayed on the display unit of the terminal when the image is electronically distributed;
A character string recognition means for recognizing a character string in an image;
An image processing apparatus comprising character size adjusting means for enlarging or reducing a character constituting a recognized character string so as to have a predetermined size.
文字サイズ調整手段により拡大された拡大文字から構成される拡大文字列が、文字列の周囲を取り囲む吹き出し領域内に収まるか否かを判定する吹き出し領域判定手段と、
拡大文字列が吹き出し領域に収まらない場合であって、文字情報認識手段により認識された文字情報が予め定められた改行可能文字と一致し、かつ、改行可能文字と一致する文字情報を有する拡大文字の前又は後での拡大文字列の改行を実行することで得られる改行文字列が吹き出し領域内に収まる場合に、前記拡大文字列の改行を実行する改行実行手段とからなることを特徴とする請求項1又は2のいずれかに記載の画像処理装置。 Character information recognition means for recognizing character information of a character string recognized by the character string recognition means;
A balloon area determining means for determining whether or not an enlarged character string composed of the enlarged characters enlarged by the character size adjusting means fits within a balloon area surrounding the periphery of the character string;
Enlarged characters that have character information that matches the character set recognized by the character information recognition means with the predetermined line feedable character, and the character information that matches the line feedable character, when the enlarged character string does not fit in the balloon area A line feed execution means for executing a line feed of the expanded character string when a line feed character string obtained by executing a line feed of the expanded character string before or after The image processing apparatus according to claim 1.
文字サイズ調整手段により拡大された拡大文字から構成される拡大文字列が、文字列の周囲を取り囲む吹き出し領域内に収まるか否かを判定する吹き出し領域判定手段と、
拡大文字列が吹き出し領域に収まらない場合であって、文字情報認識手段により認識された文字情報が予め定められた字間調整文字と一致し、かつ、字間調整文字と一致する文字情報を有する拡大文字と隣接する拡大文字との字間の調整を実行することで得られる字間調整文字列が吹き出し領域内に収まる場合に、前記字間の調整を実行する字間調整実行手段とからなることを特徴とする請求項1又は2のいずれかに記載の画像処理装置。 Character information recognition means for recognizing character information of a character string recognized by the character string recognition means;
A balloon area determining means for determining whether or not an enlarged character string composed of the enlarged characters enlarged by the character size adjusting means fits within a balloon area surrounding the periphery of the character string;
In the case where the enlarged character string does not fit in the balloon area, the character information recognized by the character information recognition means matches the predetermined character adjustment character and has character information that matches the character adjustment character. When the character spacing adjustment character string obtained by executing the character spacing adjustment between the enlarged character and the adjacent enlarged character fits within the balloon area, the character spacing adjustment execution means executes the character spacing adjustment. The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
拡大文字列が吹き出し領域に収まらない場合に吹き出し領域を拡大するよう調整する吹き出し領域調整手段とからなる請求項1又は2のいずれかに記載の画像処理装置。 A balloon area determining means for determining whether or not an enlarged character string composed of the enlarged characters enlarged by the character size adjusting means fits within a balloon area surrounding the periphery of the character string;
The image processing apparatus according to claim 1, further comprising a balloon area adjustment unit configured to adjust the balloon area to be enlarged when the enlarged character string does not fit in the balloon area.
画像の輪郭を抽出する輪郭抽出ステップと、
抽出された輪郭が、画像を電子配信した際に端末の表示部に表示される標準領域内に収まるように画像を拡大又は縮小する画像サイズ調整ステップと、
画像中の文字列を認識する文字列認識ステップと、
認識された文字列を構成する文字が所定のサイズとなるように拡大又は縮小する文字サイズ調整ステップとからなる画像処理方法。 An image processing method for processing image data,
A contour extraction step for extracting the contour of the image;
An image size adjustment step for enlarging or reducing the image so that the extracted contour is within the standard area displayed on the display unit of the terminal when the image is electronically distributed;
A character string recognition step for recognizing a character string in the image;
An image processing method comprising: a character size adjustment step of enlarging or reducing a recognized character string to a predetermined size.
抽出された輪郭が、画像を電子配信した際に端末の表示部に表示される標準領域内に収まるように画像を拡大又は縮小する画像サイズ調整ステップと、
画像中の文字列を認識する文字列認識ステップと、
認識された文字列を構成する文字が所定のサイズとなるように拡大又は縮小する文字サイズ調整ステップとからなる画像処理方法をコンピュータに実行させるためのプログラム。 A contour extraction step for extracting the contour of the image;
An image size adjustment step for enlarging or reducing the image so that the extracted contour is within the standard area displayed on the display unit of the terminal when the image is electronically distributed;
A character string recognition step for recognizing a character string in the image;
A program for causing a computer to execute an image processing method including a character size adjustment step of enlarging or reducing a character constituting a recognized character string so as to have a predetermined size.
抽出された輪郭が、画像を電子配信した際に端末の表示部に表示される標準領域内に収まるように画像を拡大又は縮小する画像サイズ調整ステップと、
画像中の文字列を認識する文字列認識ステップと、
認識された文字列を構成する文字が所定のサイズとなるように拡大又は縮小する文字サイズ調整ステップとからなる画像処理方法をコンピュータに実行させるためのプログラムを記録したコンピュータ読取可能な記録媒体。 A contour extraction step for extracting the contour of the image;
An image size adjustment step for enlarging or reducing the image so that the extracted contour is within the standard area displayed on the display unit of the terminal when the image is electronically distributed;
A character string recognition step for recognizing a character string in the image;
A computer-readable recording medium on which a program for causing a computer to execute an image processing method including a character size adjusting step for enlarging or reducing a character constituting a recognized character string to a predetermined size is recorded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008170734A JP2010011316A (en) | 2008-06-30 | 2008-06-30 | Image processing apparatus, image processing method, image processing program, and recording medium with the program recorded thereon |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008170734A JP2010011316A (en) | 2008-06-30 | 2008-06-30 | Image processing apparatus, image processing method, image processing program, and recording medium with the program recorded thereon |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010011316A true JP2010011316A (en) | 2010-01-14 |
Family
ID=41591219
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008170734A Pending JP2010011316A (en) | 2008-06-30 | 2008-06-30 | Image processing apparatus, image processing method, image processing program, and recording medium with the program recorded thereon |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010011316A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012003410A (en) * | 2010-06-15 | 2012-01-05 | Dainippon Printing Co Ltd | Cartoon production support system and program |
-
2008
- 2008-06-30 JP JP2008170734A patent/JP2010011316A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012003410A (en) * | 2010-06-15 | 2012-01-05 | Dainippon Printing Co Ltd | Cartoon production support system and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4821869B2 (en) | Character recognition device, image reading device, and program | |
JPH10178541A (en) | Image processing method, document display method and computer execution operation selecting method | |
JP2004004565A (en) | Image processor and image processing method, and program | |
JP2009267848A (en) | Image processing apparatus, method and program | |
JP2009301206A (en) | Information display device and program | |
JP2004046632A (en) | Image processor | |
JP4049560B2 (en) | Halftone dot removal method and system | |
JP2010011316A (en) | Image processing apparatus, image processing method, image processing program, and recording medium with the program recorded thereon | |
JP3604910B2 (en) | Image reduction device and recording medium recording image reduction program | |
JP4040905B2 (en) | Reduced image display device, method, program, and recording medium recording program | |
CN110996026B (en) | OSD display method, device, equipment and storage medium | |
US20060119897A1 (en) | Output apparatus and program thereof | |
JP4966912B2 (en) | Line drawing processing apparatus, line drawing processing method and program | |
CN109643222B (en) | Layout element processing method, device, storage medium and electronic equipment/terminal/server | |
JP2000089747A (en) | Method and device for displaying image | |
JP2003348326A (en) | Document image conversion method, document image conversion program and document image converting apparatus | |
JP2012022413A (en) | Image processing apparatus, image processing method and program | |
JP3673675B2 (en) | Image processing method, image processing apparatus, and recording medium | |
JP2005234845A (en) | Image processor, image processing method, character recognition device, program and recording medium | |
JP3991061B1 (en) | Image processing system | |
JP2010009480A (en) | Image processing apparatus, image processing method, image processing program, and recording medium with the program recorded thereon | |
JP4125245B2 (en) | Document display method and document display apparatus | |
JP2003317107A (en) | Method and device for ruled-line detection | |
JP5977342B2 (en) | Electronic comic data compression apparatus, method and program | |
JP3157534B2 (en) | Table recognition method |