JP2011143671A - Image processing apparatus and method - Google Patents

Image processing apparatus and method Download PDF

Info

Publication number
JP2011143671A
JP2011143671A JP2010008044A JP2010008044A JP2011143671A JP 2011143671 A JP2011143671 A JP 2011143671A JP 2010008044 A JP2010008044 A JP 2010008044A JP 2010008044 A JP2010008044 A JP 2010008044A JP 2011143671 A JP2011143671 A JP 2011143671A
Authority
JP
Japan
Prior art keywords
scanning
character
sub
character direction
digital image
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.)
Granted
Application number
JP2010008044A
Other languages
Japanese (ja)
Other versions
JP5479121B2 (en
JP2011143671A5 (en
Inventor
Yukichika Ichihashi
幸親 市橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2010008044A priority Critical patent/JP5479121B2/en
Priority to US12/986,930 priority patent/US20110176154A1/en
Priority to KR1020110002188A priority patent/KR101360516B1/en
Priority to RU2011101560/07A priority patent/RU2452126C1/en
Priority to CN2011100228315A priority patent/CN102131036B/en
Priority to EP11151290A priority patent/EP2345981A2/en
Publication of JP2011143671A publication Critical patent/JP2011143671A/en
Publication of JP2011143671A5 publication Critical patent/JP2011143671A5/ja
Application granted granted Critical
Publication of JP5479121B2 publication Critical patent/JP5479121B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Character Input (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem with a recorder having a different resolution in a main scanning and a sub-scanning, wherein an image is degraded and a printed character is hardly visible, when a narrow line is recorded vertically in the direction of a low resolution side. <P>SOLUTION: An image processing apparatus has a character-direction determiner (203) for determining the direction of a character contained in a digital image data, an image rotator (205) which rotates the digital image data by 90 degree when the determined direction of the character is equal to the sub-scanning direction of the recorder, and a controller (206) for controlling the recorder so as to print the rotated digital image. The direction of the character is determined, and the narrow line of the character is rotated so as to be parallel to the scanning direction of the low resolution side, to be printed. When received instruction of copy execution by button pressing down of an operation panel (107) in S301, the CPU (206) instructs execution of scanning operation for a scanner unit part (101) according to a program stored in a ROM (209). Then, in S302, the CPU (206) checks a manuscript size. Further, in S303, the CPU (206) determines the direction of the character. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、主走査、副走査の解像力が異なる記録装置の高画質化に関する。   The present invention relates to an improvement in image quality of a recording apparatus having different main scanning and sub-scanning resolutions.

従来の電子写真方式による記録装置には、主走査と副走査の解像力が異なる記録装置が存在する。この場合、通常では、主走査の解像度が高解像度であり、副走査の解像度が低解像である。   Conventional electrophotographic recording apparatuses include recording apparatuses having different main scanning and sub-scanning resolutions. In this case, normally, the resolution of main scanning is high and the resolution of sub-scanning is low.

主走査の解像度は、レーザーのON/OFFの切り替わりの速さで決定される。これは、レーザー発信器の駆動回路やPWM信号発生回路の高速化により実現されている(例えば非特許文献1)。一方、副走査の解像度は、現像装置、記録メディアの搬送装置、トナーの定着装置の速度などによって決定される。これらは、現像装置の材質、搬送装置の材質の精度やモーターの性能、定着装置の性能によって決定される。つまり、副走査の高速化は高価格化に直結しており、近年では各印刷機メーカーは、記録装置の高速化、低価格化の為に副走査の低解像度化を実施している。   The resolution of main scanning is determined by the speed at which the laser is turned on and off. This is realized by speeding up the drive circuit of the laser transmitter and the PWM signal generation circuit (for example, Non-Patent Document 1). On the other hand, the resolution of the sub-scan is determined by the speed of the developing device, the recording medium transport device, the toner fixing device, and the like. These are determined by the material of the developing device, the accuracy of the material of the conveying device, the performance of the motor, and the performance of the fixing device. That is, the increase in the speed of the sub-scanning is directly linked to the increase in the price, and in recent years, each printer manufacturer has been reducing the resolution of the sub-scanning in order to increase the speed and the price of the recording apparatus.

通常は、記録装置に入力される電子画像の主走査・副走査の解像度と、記録装置の主走査・副走査の解像力は一致しなくてはならない。つまり、主走査600dpi、副走査300dpiの記録装置には、主走査600dpi、副走査300dpiのデジタル画像データを入力する必要がある。   Usually, the resolution of the main scanning / sub-scanning of the electronic image input to the recording apparatus and the resolution of the main scanning / sub-scanning of the recording apparatus must be the same. That is, it is necessary to input digital image data of main scanning 600 dpi and sub-scanning 300 dpi to a recording device of main scanning 600 dpi and sub-scanning 300 dpi.

この場合、入力される電子画像の主走査と副走査の解像度を比較し、出力装置の解像力に合う様に90度回転する処理を選択できるようにすると有利である(例えば、特許文献1)。例えば、主走査600dpi、副走査1200dpiのデジタル画像データを、主走査1200dpi、副走査300dpiの記録装置で印刷するとする。90度回転処理を選択する技術を採用していない場合、副走査は1200dpiから300dpiに縮小するので、4分の1間引き処理が必要となる。一方、90度回転処理を選択する技術を採用している場合、回転処理によって主走査と副走査が逆転する。主走査は1200dpiなので間引き処理の必要はなく、副走査は600dpiから300dpiへ、2分の1間引き処理が実施される。つまり、回転する事で画像全体の解像力の低下を防ぐ事ができる。   In this case, it is advantageous to compare the main scanning and sub-scanning resolutions of the input electronic image and select a process that rotates 90 degrees so as to match the resolution of the output device (for example, Patent Document 1). For example, it is assumed that digital image data of main scanning 600 dpi and sub scanning 1200 dpi is printed by a recording device of main scanning 1200 dpi and sub scanning 300 dpi. If the technique for selecting the 90-degree rotation process is not employed, the sub-scanning is reduced from 1200 dpi to 300 dpi, so that a ¼ decimation process is required. On the other hand, when the technique for selecting the 90-degree rotation process is adopted, the main scanning and the sub-scanning are reversed by the rotation process. Since the main scanning is 1200 dpi, there is no need for a thinning process, and in the sub-scanning, a half thinning process is performed from 600 dpi to 300 dpi. That is, it is possible to prevent a reduction in the resolution of the entire image by rotating.

特開平11-320197JP 11-320197

「キヤノン サテラモノクロレーザビームプリンタ複合機カタログ」、キヤノン株式会社、2009年, p.08“Canon SATARA Monochrome Laser Beam Printer MFP Catalog”, Canon Inc., 2009, p.08

しかしながら、特許文献1においては、デジタル画像データ中の文字などは綺麗に印刷出来ないことがある。例えば、横の細線の多い明朝体文字などのフォントや罫線の場合である。主走査600dpi、副走査1200dpiの電子画像において、回転処理をしないでそのまま印刷した場合、主走査は600dpiから1200dpiへの高解像度化処理を実施するので、縦の細線は劣化することはない。一方、回転処理をしてしまうと縦の細線は横の細線となり、副走査の2分の1間引き処理によって著しく劣化してしまう。   However, in Patent Document 1, characters in digital image data may not be printed neatly. For example, this is the case of fonts and ruled lines such as Mincho type characters with many horizontal thin lines. When an electronic image of main scanning 600 dpi and sub scanning 1200 dpi is printed as it is without rotation processing, since the main scanning performs high resolution processing from 600 dpi to 1200 dpi, the vertical fine lines are not deteriorated. On the other hand, if the rotation process is performed, the vertical thin line becomes a horizontal thin line, which is significantly deteriorated by the half-thinning process of sub-scanning.

本発明の目的は、特に文字原稿や線画原稿における画像出力時の解像力の劣化を抑える事ができる画像出力装置、及び画像出力時における画像の解像度の劣化を抑制する処理をコンピュータに実施させる為のプログラムを提供することである。   An object of the present invention is to enable a computer to perform an image output apparatus capable of suppressing degradation of resolution at the time of outputting an image, particularly for a text document or line drawing document, and a process for suppressing degradation of the resolution of an image at the time of image output. Is to provide a program.

主走査の解像度より副走査の解像度が小さい記録装置を制御する画像処理装置であって、デジタル画像データに含まれる文字方向を判定する文字方向判定手段と、判定した文字方向が記録装置の副走査方向と一致する場合に、デジタル画像データを90度回転する画像回転手段と、回転したデジタル画像を印刷するよう記録装置を制御する制御手段とを備える画像処理装置を提供する。   An image processing apparatus for controlling a recording apparatus having a sub-scanning resolution smaller than a main-scanning resolution, wherein the character direction determining means determines the character direction included in the digital image data, and the determined character direction is the sub-scanning of the recording apparatus An image processing apparatus is provided that includes an image rotation unit that rotates digital image data by 90 degrees when the direction coincides with a direction, and a control unit that controls a recording apparatus to print the rotated digital image.

本発明に従えば、副走査が低解像度である記録装置によって出力される印刷物において、文字や線画の解像度の劣化を抑制する事が出来る。   According to the present invention, it is possible to suppress degradation of the resolution of characters and line drawings in a printed matter output by a recording apparatus having low resolution in sub-scanning.

本発明の実施形態で利用するMFP全体図である。1 is an overall view of an MFP used in an embodiment of the present invention. 図1に示すMFPのコントローラ構成である。It is a controller configuration of the MFP shown in FIG. 実施例1〜3共通のフローチャートである。It is a flowchart common to Examples 1-3. 実施例1の文字方向判定(帯域通過フィルタを用いた方法)のフローチャートである。3 is a flowchart of character direction determination (method using a band-pass filter) according to the first embodiment. 主走査帯域通過フィルタの例である。It is an example of a main scanning band pass filter. 副走査帯域通過フィルタの例である。It is an example of a sub-scanning band pass filter. 実施例1の文字方向判定(画素連続性検出を用いた方法)のフローチャートである。3 is a flowchart of character direction determination (a method using pixel continuity detection) according to the first exemplary embodiment. 実施例2の文字方向判定のユーザ入力フローチャートである。12 is a user input flowchart for character direction determination according to the second exemplary embodiment. 実施例2のユーザ入力画面の例である。It is an example of the user input screen of Example 2. 実施例3の文字方向判定のフローチャートである。10 is a flowchart of character direction determination according to the third embodiment.

以下、本発明を実施するための最良の形態について図面を用いて説明する。なお、以下の記述において、「文字方向」とは、1つの文字の上下方向を示すものとする。   The best mode for carrying out the present invention will be described below with reference to the drawings. In the following description, “character direction” indicates the vertical direction of one character.

<実施例1>
図1は、本実施例を構成するMFP(マルチファンクションプリンタ)の構成図である。MFPは、スキャナユニット部(101)、記録装置(102)、手差し用給紙口(103)、1段目記録紙カセット(104)、2段目記録紙カセット(105)、排紙部(106)、操作パネル (107)で構成される。また、MFPにはコントローラボードが設置されており、コントローラボードによって制御される。スキャナユニット部(101)と記録装置(102)はそれぞれA3縦サイズまでの原稿、記録紙に対応しているものとし、当然ながら手差し用給紙口(103)、記録紙カセット(103,104)もこれに準ずる。
<Example 1>
FIG. 1 is a configuration diagram of an MFP (multifunction printer) constituting this embodiment. The MFP includes a scanner unit (101), a recording device (102), a manual feed port (103), a first-stage recording paper cassette (104), a second-stage recording paper cassette (105), and a paper discharge section (106 ) And an operation panel (107). In addition, a controller board is installed in the MFP and is controlled by the controller board. The scanner unit (101) and the recording device (102) are capable of handling originals and recording papers up to A3 vertical size. Of course, the manual feed slot (103) and recording paper cassettes (103, 104) are also available. According to

次にコントローラボードについて図2を用いて詳細に説明する。201は操作部インタフェイス(201)であり、操作パネル(107)とデータバス(207)とを接続している。202はスキャナインタフェイスであり、スキャナユニット部(101)とデータバス(207)を接続している。203は文字方向判定部であり、文字方向判定処理を実施する。204は画像処理部であり、空間フィルタ処理、解像度変換処理や2値化処理を実施する。205は画像回転部であり、90度、180度、270度などの回転処理を実施する。なお、203-205はハードウエアとして実現しても良いし、あるいはプログラムとして実装しても良い。206はCPUであり、ROM(209)に記憶されたプログラムに応じて各部の制御やデジタル画像データに対する演算などを実行する(制御手段)。208はRAMであり、デジタル画像データやプログラムデータ、カウンタ値などを一時的に記憶しておく記憶領域として利用される。210はプリンタインタフェイスであり、記録装置(102)とデータバス(207)を接続している。211、212は、USB、LANのインタフェイスであり、非図示のパーソナルコンピュータと接続する為のインタフェイスである。   Next, the controller board will be described in detail with reference to FIG. An operation unit interface (201) 201 connects the operation panel (107) and the data bus (207). A scanner interface 202 connects the scanner unit unit (101) and the data bus (207). A character direction determination unit 203 performs a character direction determination process. An image processing unit 204 performs spatial filter processing, resolution conversion processing, and binarization processing. Reference numeral 205 denotes an image rotation unit that performs rotation processing such as 90 degrees, 180 degrees, and 270 degrees. Note that 203-205 may be realized as hardware or implemented as a program. Reference numeral 206 denotes a CPU which executes control of each unit, calculation on digital image data, and the like according to a program stored in the ROM (209) (control means). A RAM 208 is used as a storage area for temporarily storing digital image data, program data, counter values, and the like. A printer interface 210 connects the recording device (102) and the data bus (207). Reference numerals 211 and 212 denote USB and LAN interfaces, which are interfaces for connecting to a personal computer (not shown).

次に実施例1の実施手順について、図3のフローチャートに沿って説明する。S301において、操作パネル(107)のボタン押下によりコピー実行の命令を受けると、CPU(206)はROM(209)に格納されたプログラムに従って、スキャナユニット部(101)にスキャン動作の実行を命令する。スキャナユニット部(101)は、非図示の原稿台に搭載されている原稿を読み込む事で原稿を電子画像データに変換する。電子画像データは、スキャナユニット部(101)によってデジタル画像となっており、これは離散化されたデータであるため、主走査、副走査の解像度が設定されている。本実施例では、近年の電子写真MFPで一般的な主走査600dpi、副走査600dpiのデジタル画像データに変換されたものとして説明を続ける。スキャナユニット部(101)から送信されたデジタル画像データは、データバス(207)を通って一旦RAM(208)に記憶しておく。   Next, the implementation procedure of Example 1 is demonstrated along the flowchart of FIG. In S301, when a copy execution command is received by pressing a button on the operation panel (107), the CPU (206) commands the scanner unit (101) to execute a scan operation according to a program stored in the ROM (209). . The scanner unit unit (101) converts a document into electronic image data by reading a document mounted on a document table (not shown). The electronic image data is converted into a digital image by the scanner unit unit (101). Since this is discretized data, the resolution of main scanning and sub scanning is set. In the present embodiment, the description will be continued on the assumption that the image data is converted into digital image data of main scanning 600 dpi and sub-scanning 600 dpi, which is common in recent electrophotographic MFPs. The digital image data transmitted from the scanner unit (101) is temporarily stored in the RAM (208) through the data bus (207).

尚、本実施例ではスキャナユニット部(101)によってデジタル画像データを生成するが、これに限るものではない。つまり、非図示のパーソナルコンピュータからの印刷指示によってLANインタフェイス(212)やUSBインタフェイス(211)からデジタル画像データを入力することも出来る。この場合、転送されてきたデジタル画像データは、RAM(208)に一時記憶され、その後はスキャナユニット部(101)を用いる場合と同様に処理される。   In this embodiment, the digital image data is generated by the scanner unit (101), but the present invention is not limited to this. That is, digital image data can also be input from the LAN interface (212) or the USB interface (211) according to a print instruction from a personal computer (not shown). In this case, the transferred digital image data is temporarily stored in the RAM (208), and thereafter processed in the same manner as when the scanner unit (101) is used.

次にS302において、CPU(206)は原稿サイズを確認する。一般的には、スキャナユニット部(101)や非図示のパーソナルコンピュータから原稿サイズの情報が送られてくる。また、操作パネルからの入力によって原稿サイズの情報を取得することも可能である。この時、本発明の対応原稿サイズであるかどうかを判定する。対応原稿サイズとは、A3縦サイズまでが印刷できる記録装置(102)の場合は、A4サイズまでが本発明における対応原稿サイズである。何故なら、本発明における実施形態では、90度回転して印刷する場合があり、A3縦サイズまでの記録装置(102)では、A3横サイズのメディアには印刷できないからである。原稿が対応原稿サイズと適合している場合は、CPU(206)の処理はS303に進み、適合していない場合はS307に進む。   In step S302, the CPU (206) confirms the document size. In general, document size information is sent from a scanner unit (101) or a personal computer (not shown). It is also possible to acquire document size information by input from the operation panel. At this time, it is determined whether or not the document size corresponds to the present invention. In the case of the recording apparatus (102) capable of printing up to A3 vertical size, the corresponding original size is up to A4 size in the present invention. This is because, in the embodiment of the present invention, there is a case where printing is performed by rotating 90 degrees, and the recording device (102) up to A3 vertical size cannot print on A3 horizontal size media. If the document is compatible with the corresponding document size, the process of the CPU (206) proceeds to S303, and if not, the process proceeds to S307.

次にS303において、CPU(206)は文字方向の判定を行なう。ここでは、回転するかどうかを決定し、回転フラグを出力値とする。CPU(206)は、RAM(208)に記憶されているデジタル画像データを文字方向判定部(203)に転送する。文字方向判定部(203)は、回転フラグを得る為の処理を実行する。文字方向判定部(203)の処理のフローチャートを図4と図7に示す。図4では、主走査、副走査の帯域通過フィルタを用いた方法を示す。また、図7では、主走査、副走査の画素連続性検出を用いた方法を示す。本発明の実施例では、図4、図7のどちらの方法を利用しても良い。   Next, in S303, the CPU (206) determines the character direction. Here, it is determined whether or not to rotate, and the rotation flag is set as an output value. The CPU (206) transfers the digital image data stored in the RAM (208) to the character direction determination unit (203). The character direction determination unit (203) executes a process for obtaining a rotation flag. Flow charts of processing of the character direction determination unit (203) are shown in FIGS. FIG. 4 shows a method using band-pass filters for main scanning and sub-scanning. FIG. 7 shows a method using pixel continuity detection in main scanning and sub-scanning. In the embodiment of the present invention, either of the methods shown in FIGS. 4 and 7 may be used.

(帯域通過フィルタを用いた方法)
図4のS401において、RAM(208)に格納されたデジタル画像データを文字方向判定部(203)のImgという領域に読み出す。尚、文字方向判定部(203)の記憶領域についてはRAM(208)の記憶領域を共有することが一般的であるため、特に図示はしない。
(Method using band-pass filter)
In S401 of FIG. 4, the digital image data stored in the RAM (208) is read into an area called Img of the character direction determination unit (203). Note that the storage area of the character direction determination unit (203) is not particularly illustrated because it is common to share the storage area of the RAM (208).

S402は主走査、副走査の全領域を走査するためのループ端である。xは主走査方向であり、yは副走査方向である。画素数は主走査がNx画素で副走査がNy画素である。   S402 is a loop end for scanning the entire area of main scanning and sub-scanning. x is the main scanning direction, and y is the sub-scanning direction. The number of pixels is Nx pixels for main scanning and Ny pixels for sub-scanning.

S403において、文字方向判定部(203)は、主走査方向について帯域通過フィルタ処理を実施し、フィルタ処理された画像データはImg’という領域に格納する。この時に使う帯域通過フィルタの例を図5に記載する。尚、帯域通過フィルタのサイズと定数は、抽出したい文字のサイズなどに依存する為、任意とする。更に、抽出した帯域が複数ある場合には、複数のフィルタを利用して出力(Img’)に加算する方法も考えられる。 In step S403, the character direction determination unit (203) performs band pass filtering in the main scanning direction, and stores the filtered image data in an area called Img ′. An example of the band pass filter used at this time is shown in FIG. Note that the size and constant of the band-pass filter are arbitrary because they depend on the size of characters to be extracted. Furthermore, when there are a plurality of extracted bands, a method of adding to the output (Img ') using a plurality of filters is also conceivable.

S404において、文字方向判定部(203)は、Img’[x,y]と閾値1とを比較する。閾値1よりも大きい値であればS405でMainCountをカウントアップする。閾値1は、任意の値であり、これを調整する事でMainCountのカウント調整をすることができる。S404でImg’[x,y]が閾値1以下の値であればMainCountをカウントアップしない。   In S404, the character direction determination unit (203) compares Img ′ [x, y] with the threshold value 1. If the value is larger than the threshold value 1, MainCount is incremented in S405. The threshold value 1 is an arbitrary value, and by adjusting this, the MainCount count can be adjusted. If Img ′ [x, y] is a threshold value 1 or less in S404, MainCount is not counted up.

以上の動作をデジタル画像データの全領域について実施する(S406)。そして、最終的にMainCountの値を得る。MainCountは主走査の特徴量である。   The above operation is performed for all areas of the digital image data (S406). Finally, the value of MainCount is obtained. MainCount is a feature quantity of main scanning.

S407からS412は、上述した主走査の特徴量を取得する処理であるS401からS406に対応して、SubCount(副走査の特徴量)を得る処理を実施する。但し、S409、S410及びS411は副走査用に変更されている。S409の帯域通過フィルタの例を図6に示す。   S407 to S412 execute a process of obtaining SubCount (sub-scan feature quantity) corresponding to S401 to S406, which is the process of acquiring the main scan feature quantity described above. However, S409, S410, and S411 are changed for sub-scanning. An example of the band-pass filter of S409 is shown in FIG.

S410において、Img’[x,y]と閾値2とを比較する。閾値2よりも大きい値であればS411でSubCountをカウントアップする。閾値2は閾値1と同様に任意の値である。S410でImg’[x,y]が閾値2以下の値であればSubCountをカウントアップしない。   In S410, Img ′ [x, y] is compared with the threshold value 2. If the value is larger than the threshold value 2, SubCount is incremented in S411. The threshold value 2 is an arbitrary value like the threshold value 1. If Img ′ [x, y] is a value equal to or smaller than the threshold 2 in S410, SubCount is not counted up.

S413において、文字方向判定部(203)は、SubCountとMainCountを比較する。SubCountの方が大きい場合には、特徴量は副走査方向が主走査方向より大きい事になる。つまり、文字部ならば横線が多いということが判断できる。よって、S414で回転フラグに1を設定する。SubCountがMainCount以下であれば、回転フラグは0とする。   In S413, the character direction determination unit (203) compares SubCount and MainCount. When SubCount is larger, the feature amount is larger in the sub-scanning direction than in the main scanning direction. That is, it can be determined that there are many horizontal lines in the character portion. Therefore, 1 is set to the rotation flag in S414. If SubCount is less than or equal to MainCount, the rotation flag is set to 0.

(画素連続性検出を用いた方法)
図7のS701において、文字方向判定部(203)は、RAM(208)に格納されたデジタル画像データを文字方向判定部(203)のImgという領域に読み出す。尚、文字方向判定部(203)の記憶領域についてはRAM(208)の記憶領域を共有することが一般的であるため、特に図示はしない。
(Method using pixel continuity detection)
In S701 of FIG. 7, the character direction determination unit (203) reads the digital image data stored in the RAM (208) into an area called Img of the character direction determination unit (203). Note that the storage area of the character direction determination unit (203) is not particularly illustrated because it is common to share the storage area of the RAM (208).

S702は主走査、副走査の全領域を走査するためのループ端である。xは主走査方向であり、yは副走査方向である。画素数は主走査がNx画素で副走査がNy画素である。   S702 is a loop end for scanning the entire area of main scanning and sub-scanning. x is the main scanning direction, and y is the sub-scanning direction. The number of pixels is Nx pixels for main scanning and Ny pixels for sub-scanning.

S703において、文字方向判定部(203)は、画像の2値化処理を行なう。2値化処理の方法は特に指定しないが、ここでは単純2値で実施する。任意の2値化閾値を用意する。尚、スキャナユニット部(101)が輝度情報、つまり白:255、黒:0で表現する。よって、2値化閾値よりも低い値であれば’1’(黒)であり、高い値であれば’0’(白)と輝度情報に対して反転して設定する。   In S703, the character direction determination unit (203) performs an image binarization process. The binarization processing method is not particularly specified, but here, simple binary processing is performed. Arbitrary binarization threshold is prepared. The scanner unit unit 101 expresses luminance information, that is, white: 255, black: 0. Therefore, if the value is lower than the binarization threshold, “1” (black) is set, and if the value is higher, “0” (white) is set so as to be inverted with respect to the luminance information.

次にS704において、文字方向判定部(203)は、縦線カウントを行なう。縦の細線の数え方は、主走査方向に黒が連続している場所を検知する。主走査方向の黒の連続数が、例えば25画素以上50画素未満(600dpiで約1mm〜2mm)であれば、縦線と判断してカウント(MainCount)に1を加える。以上の処理を副走査方向に実施する事で、縦線をカウントする。   In step S704, the character direction determination unit (203) performs vertical line counting. The method of counting vertical thin lines detects a place where black continues in the main scanning direction. If the number of continuous blacks in the main scanning direction is, for example, 25 pixels or more and less than 50 pixels (about 1 mm to 2 mm at 600 dpi), it is determined as a vertical line and 1 is added to the count (MainCount). By performing the above process in the sub-scanning direction, vertical lines are counted.

次に、S705において、文字方向判定部(203)は、横線カウントを行う。横の細線の数え方は、副走査方向に黒が連続している場所を検知する。副走査方向の黒の連続数が、例えば25画素以上50画素未満(600dpiで約1mm〜2mm)であれば、横線と判断してカウント(SubCount)に1を加える。以上の処理を主走査方向に実施する事で、横線をカウントする。   Next, in S705, the character direction determination unit (203) performs horizontal line counting. The horizontal thin line is counted by detecting a place where black continues in the sub-scanning direction. If the number of continuous blacks in the sub-scanning direction is, for example, 25 pixels or more and less than 50 pixels (about 1 mm to 2 mm at 600 dpi), it is determined as a horizontal line and 1 is added to the count (SubCount). By performing the above processing in the main scanning direction, horizontal lines are counted.

以上の動作をデジタル画像データの全領域について実施する(S706)。そして、最終的にMainCount(主走査の特徴量)およびSubCount(副走査の特徴量)を得る。   The above operation is performed for all areas of the digital image data (S706). Finally, MainCount (main scanning feature value) and SubCount (sub-scanning feature value) are obtained.

S707において、文字方向判定部(203)は、縦(MainCount)・横(SubCount)の細線カウントの結果を比較する。比較の結果、横線の方が大きければ、S708で回転フラグに1を設定する。つまり、横線が多いと判断して、回転出力を選択する。横線が縦線以下であれば、回転フラグは0とする。   In S707, the character direction determination unit (203) compares the results of the fine line counts in the vertical (MainCount) and horizontal (SubCount). If the horizontal line is larger as a result of the comparison, 1 is set in the rotation flag in S708. That is, it is determined that there are many horizontal lines, and the rotation output is selected. If the horizontal line is below the vertical line, the rotation flag is set to 0.

以上で文字方向判定部(203)の処理の説明を終了し、図3の説明に戻る。S304において、CPU(206)は回転フラグに1が設定されているかどうかを検知する。回転フラグが1の場合はS305に進み、回転フラグが0の場合はS307に進む。   This is the end of the description of the character direction determination unit (203), and the description returns to FIG. In S304, the CPU (206) detects whether 1 is set in the rotation flag. If the rotation flag is 1, the process proceeds to S305, and if the rotation flag is 0, the process proceeds to S307.

S304で回転フラグが1の場合には、S305において、回転処理に適合する記録紙が給紙できるかどうかを判定する。給紙できると判定されればS306に進み、給紙できないと判定されればS307に進む。   If the rotation flag is 1 in S304, it is determined in S305 whether or not recording paper suitable for the rotation process can be fed. If it is determined that the paper can be fed, the process proceeds to S306, and if it is determined that the paper cannot be fed, the process proceeds to S307.

S306において、90度の回転処理を実施する。この時、文字方向判定部(203)は、図2の画像回転部(205)を利用する。   In S306, a 90-degree rotation process is performed. At this time, the character direction determination unit (203) uses the image rotation unit (205) of FIG.

次にS307で副走査の解像度変換処理を実施し、S308で主走査の解像度変換処理を実施する。実施例1では、主走査600dpi、副走査300dpiの記録装置(102)を利用するものとする。また、前述のように、スキャナユニット部(101)で読み取られた解像度を、主走査600dpi、副走査600dpiと仮定している。従って、S307では副走査方向について2分の1間引き処理を実施する。実施方法は、本発明では特に指定するものでは無いが、一般的には線形補間演算が用いられる。   In step S307, sub-scanning resolution conversion processing is performed. In step S308, main-scanning resolution conversion processing is performed. In the first embodiment, it is assumed that a recording device (102) with 600 dpi main scanning and 300 dpi sub scanning is used. Further, as described above, the resolution read by the scanner unit unit (101) is assumed to be main scanning 600 dpi and sub scanning 600 dpi. Therefore, in S307, a half thinning process is performed in the sub-scanning direction. The implementation method is not particularly specified in the present invention, but generally linear interpolation is used.

次にS309において、CPU(206)は画像演算処理を行なう。このS309は、図2の画像処理部(204)で実施できる。具体的には濃度変換処理、空間フィルタ処理、ハーフトーン処理である。これらの処理については、本発明では特に指定するものではないので、詳細は割愛する。但し、これらの処理の結果、2値の擬似階調画像が得られたものとする。   In step S309, the CPU (206) performs image calculation processing. This S309 can be performed by the image processing unit (204) in FIG. Specifically, density conversion processing, spatial filter processing, and halftone processing. Since these processes are not particularly specified in the present invention, the details are omitted. However, it is assumed that a binary pseudo gradation image is obtained as a result of these processes.

次に、S310において、CPU(206)は印刷処理を実施する。このとき、図1の1段目のカセット(104)にはA4横の記録紙が搭載されており、2段目のカセット(105)にはA4縦の記録紙が搭載されているとする。例えばA4サイズの原稿であった場合、S306の回転処理をしていなければA4横の記録紙を1段目のカセット(104)から給紙する。一方、S306で回転処理をしている場合、A4縦の記録紙を2段目のカセット(105)から給紙する。但し、カセットに適正なサイズの記録紙が存在しない場合には、操作部インタフェイス(201)を通して、操作パネル(107)の画面に手差し用給紙口(103)からの給紙を促すメッセージを表示する。   Next, in S310, the CPU (206) performs a printing process. At this time, it is assumed that A4 horizontal recording paper is loaded in the first cassette (104) of FIG. 1, and A4 vertical recording paper is loaded in the second cassette (105). For example, if the document is an A4 size document, the A4 landscape recording sheet is fed from the first stage cassette (104) unless the rotation process of S306 is performed. On the other hand, when the rotation processing is performed in S306, A4 vertical recording paper is fed from the second cassette (105). However, if there is no appropriate size recording paper in the cassette, a message prompting the user to feed paper from the manual feed slot (103) is displayed on the screen of the operation panel (107) through the operation unit interface (201). indicate.

以上の本実施例に依れば、副走査が低解像度である記録装置(102)によって出力される印刷物において、文字や線画の解像度の劣化を自動的に抑制する事が出来る。上述の構成により横線の解像力が必要な漢字の場合で、副走査が低解像である為に横線が潰れる/消滅する問題を解消できる。   According to the present embodiment described above, it is possible to automatically suppress degradation of the resolution of characters and line drawings in a printed matter output by the recording apparatus (102) whose sub-scan has a low resolution. With the above-described configuration, in the case of a Chinese character that requires the resolution of the horizontal line, the problem of the horizontal line being crushed / disappearing due to the low resolution of the sub-scan can be solved.

<実施例2>
実施例2では、図3のS303の文字方向判定ステップにおいて、画面表示を行なってユーザによる選択、入力を促す。図8にこの処理に関するフローを示す。その他の処理については、実施例1と同様であるので、説明を省略する。
<Example 2>
In the second embodiment, in the character direction determination step of S303 in FIG. 3, screen display is performed to prompt the user to select and input. FIG. 8 shows a flow relating to this processing. Since other processes are the same as those in the first embodiment, the description thereof is omitted.

S801において、CPU(206)は操作部インタフェイス(201)に対してUI画面表示を指示する。UI画面の例を図9に示す。ユーザは、UI画面に表示されたサンプル(i)〜(iv)の中から、所望の文字方向と原稿方向を選択する(S802)。   In S801, the CPU (206) instructs the operation unit interface (201) to display a UI screen. An example of the UI screen is shown in FIG. The user selects a desired character direction and original direction from the samples (i) to (iv) displayed on the UI screen (S802).

S803において、ユーザが図9のどのサンプルを選択したかを判定する。(i)若しくは(iii)を選択したと判定される場合、S804において、CPU(206)は回転フラグに1を設定する。これは、サンプル(i)若しくは(iii)のように、スキャナの読取方向に対して文字が横向きの場合、つまり、スキャナの読取方向と文字の上下方向が一致する場合には、横の細線が多くなるからである。S803で(ii)若しくは(iv)を選択したと判定される場合は、回転フラグを0とする。この後、図3のS304に進み、実施例1と同様の処理を実施する。   In S803, it is determined which sample in FIG. 9 the user has selected. If it is determined that (i) or (iii) has been selected, the CPU (206) sets 1 to the rotation flag in S804. This is because, as in sample (i) or (iii), when the character is in the horizontal direction with respect to the reading direction of the scanner, that is, when the reading direction of the scanner and the vertical direction of the character match, Because it will increase. If it is determined in S803 that (ii) or (iv) is selected, the rotation flag is set to 0. Thereafter, the process proceeds to S304 in FIG. 3, and the same processing as in the first embodiment is performed.

以上の本実施例により、副走査が低解像度である記録装置(102)によって出力される印刷物において、文字や線画の解像度の劣化を簡単な操作で抑制する事が出来る。上述の構成により横線の解像力が必要な漢字の場合で、副走査が低解像である為に横線が潰れる/消滅する問題を解消できる。   With the present embodiment described above, it is possible to suppress degradation of the resolution of characters and line drawings with a simple operation in a printed matter output by the recording apparatus (102) whose sub-scan has a low resolution. With the above-described configuration, in the case of a Chinese character that requires the resolution of the horizontal line, the problem of the horizontal line being crushed / disappearing due to the low resolution of the sub-scan can be solved.

<実施例3>
実施例3では、図3のS303の文字方向判定ステップにおいて、ROM(209)に格納されたOCR処理プログラムを利用する。OCR処理プログラムとは、デジタル画像データの文字を認識するための処理、およびプログラムの事を指す。OCR処理プログラムは、文字認識をする前にレイアウト情報や縦書、横書の判断を実施しており、これらの情報を外部に出す事も可能である。この情報を利用して文字方向判定ステップS303を実施する。図10にこの処理のフローを示す。その他の処理については、実施例1と同様であるので、説明を省略する。
<Example 3>
In the third embodiment, the OCR processing program stored in the ROM (209) is used in the character direction determination step of S303 in FIG. The OCR processing program refers to processing and a program for recognizing characters of digital image data. The OCR processing program determines layout information, vertical writing, and horizontal writing before performing character recognition, and can output such information to the outside. Using this information, the character direction determination step S303 is performed. FIG. 10 shows the flow of this process. Since other processes are the same as those in the first embodiment, the description thereof is omitted.

S1001において、CPU(206)は、RAM(208)に保存されたデジタル画像データをImg領域に読み込む。S1002において、CPU(206)は、Img領域の画像をROM(209)に格納されているOCRプログラムに渡す。CPU(206)は、OCRプログラムに従って演算処理を実施し、レイアウト情報の作成を行なう。レイアウト情報の作成方法については、OCRプログラムによるものであり、本実施例では説明しない。OCRレイアウト情報には、文字の方向が含まれており、これを取得する。   In S1001, the CPU (206) reads the digital image data stored in the RAM (208) into the Img area. In S1002, the CPU (206) passes the image in the Img area to the OCR program stored in the ROM (209). The CPU (206) performs arithmetic processing according to the OCR program and creates layout information. The method for creating layout information is based on the OCR program and will not be described in this embodiment. The OCR layout information includes the direction of characters and is obtained.

S1003では、文字方向判断の結果を使って、回転フラグの設定を行なう。文字方向が正方向、つまりデジタル画像データの上下方向と文字の上下方向が一致する場合、S1004で回転フラグに1を設定する。これは、文字方向が正方向の場合、横線が多いと考えられるからである。文字方向が正方向でない場合は回転フラグを0とする。この後、図3のS304に進み、実施例1と同様の処理を実施する。また、OCRプログラムにより文字が漢字と判定されたときのみ、漢字を含む文書であると判定できるため本件の主旨である回転を行なうようにしてもよい。   In S1003, a rotation flag is set using the result of character direction determination. If the character direction is the positive direction, that is, if the vertical direction of the digital image data matches the vertical direction of the character, 1 is set in the rotation flag in S1004. This is because there are many horizontal lines when the character direction is positive. If the character direction is not positive, the rotation flag is set to 0. Thereafter, the process proceeds to S304 in FIG. 3, and the same processing as in the first embodiment is performed. Further, only when the character is determined to be a Chinese character by the OCR program, it can be determined that the document includes the Chinese character, and therefore, rotation that is the main point of the present case may be performed.

以上の発明を実施することにより、副走査が低解像度である記録装置(102)によって出力される印刷物において、OCR処理を利用することで簡易に文字の解像度の劣化を抑制する事が出来る。上述の構成により横線の解像力が必要な漢字の場合で、副走査が低解像である為に横線が潰れる/消滅する問題を解消できる。   By implementing the above invention, it is possible to easily suppress the deterioration of character resolution by using the OCR process in the printed matter output by the recording apparatus (102) having the low resolution sub-scanning. With the above-described configuration, in the case of a Chinese character that requires the resolution of the horizontal line, the problem of the horizontal line being crushed / disappearing due to the low resolution of the sub-scan can be solved.

<その他の実施例>
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
<Other examples>
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (7)

主走査の解像度より副走査の解像度が小さい記録装置を制御する画像処理装置であって、
デジタル画像データに含まれる文字の方向を判定する文字方向判定手段(203)と、
前記文字方向判定手段により判定した文字方向が前記記録装置の副走査方向と一致する場合に、前記デジタル画像データを90度回転する画像回転手段(205)と、
前記画像回転手段により回転した前記デジタル画像を印刷するよう前記記録装置を制御する制御手段(206)とを備えることを特徴とする画像処理装置。
An image processing apparatus for controlling a recording apparatus having a sub-scanning resolution smaller than a main-scanning resolution,
Character direction determination means (203) for determining the direction of characters included in the digital image data;
An image rotating means (205) for rotating the digital image data by 90 degrees when the character direction determined by the character direction determining means matches the sub-scanning direction of the recording apparatus;
An image processing apparatus comprising: control means (206) for controlling the recording apparatus to print the digital image rotated by the image rotating means.
前記文字方向判定手段は、主走査の特徴量と副走査の特徴量の大きさの比較によって文字方向を判定することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the character direction determination unit determines the character direction by comparing the size of a feature amount of main scanning and a feature amount of sub-scanning. 前記文字方向判定手段は、縦の細線と横の細線の数の比較によって文字方向を判定することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the character direction determination unit determines the character direction by comparing the number of vertical thin lines and horizontal thin lines. 前記文字方向判定手段は、外部からの入力によって文字方向を判定することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the character direction determination unit determines a character direction by an external input. 前記文字方向判定手段は、OCR処理の結果を利用して文字方向を判定することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the character direction determination unit determines a character direction using a result of OCR processing. 主走査の解像度より副走査の解像度が小さい記録装置を制御する画像処理方法であって、
デジタル画像データに含まれる文字の方向を判定するステップと、
前記判定した文字方向が前記記録装置の副走査方向と一致する場合に、前記デジタル画像データを90度回転するステップと、
前記回転したデジタル画像を印刷するよう前記記録装置を制御するステップとを備えることを特徴とする画像処理方法。
An image processing method for controlling a recording apparatus having a sub-scanning resolution smaller than a main-scanning resolution,
Determining the direction of characters included in the digital image data;
Rotating the digital image data by 90 degrees when the determined character direction matches the sub-scanning direction of the recording apparatus;
And a step of controlling the recording device to print the rotated digital image.
請求項6に記載の画像処理方法をコンピュータに実行させるプログラムを記憶する記憶媒体。   A storage medium for storing a program for causing a computer to execute the image processing method according to claim 6.
JP2010008044A 2010-01-18 2010-01-18 Image processing apparatus and image processing method Expired - Fee Related JP5479121B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2010008044A JP5479121B2 (en) 2010-01-18 2010-01-18 Image processing apparatus and image processing method
US12/986,930 US20110176154A1 (en) 2010-01-18 2011-01-07 Image processing apparatus, image processing method, and storage medium
KR1020110002188A KR101360516B1 (en) 2010-01-18 2011-01-10 Image processing apparatus, image processing method, and storage medium
RU2011101560/07A RU2452126C1 (en) 2010-01-18 2011-01-17 Image processing device, image processing method, and program
CN2011100228315A CN102131036B (en) 2010-01-18 2011-01-18 Image processing apparatus and image processing method
EP11151290A EP2345981A2 (en) 2010-01-18 2011-01-18 Image processing apparatus, image processing method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010008044A JP5479121B2 (en) 2010-01-18 2010-01-18 Image processing apparatus and image processing method

Publications (3)

Publication Number Publication Date
JP2011143671A true JP2011143671A (en) 2011-07-28
JP2011143671A5 JP2011143671A5 (en) 2013-03-07
JP5479121B2 JP5479121B2 (en) 2014-04-23

Family

ID=44458957

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010008044A Expired - Fee Related JP5479121B2 (en) 2010-01-18 2010-01-18 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP5479121B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020042348A (en) * 2018-09-06 2020-03-19 キヤノン株式会社 Information processing device, control method thereof, and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1042128A (en) * 1996-07-23 1998-02-13 Canon Inc Image forming device and its control method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1042128A (en) * 1996-07-23 1998-02-13 Canon Inc Image forming device and its control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020042348A (en) * 2018-09-06 2020-03-19 キヤノン株式会社 Information processing device, control method thereof, and program
JP7118822B2 (en) 2018-09-06 2022-08-16 キヤノン株式会社 Information processing device, its control method, and program

Also Published As

Publication number Publication date
JP5479121B2 (en) 2014-04-23

Similar Documents

Publication Publication Date Title
JP2000289285A (en) Image-processing apparatus
JP6338469B2 (en) Image processing apparatus and image processing method
US9191532B2 (en) Image display device and computer-readable storage medium storing a display control program
JP2007034040A (en) Image forming apparatus
JP5183587B2 (en) Image processing apparatus, image processing method, and program for executing image processing method
EP2403228B1 (en) Image scanning apparatus, computer readable medium, and image storing method
US8531733B2 (en) Image processing system with electronic book reader mode
JP2009260721A (en) Image processing apparatus, image scanner, image output system, image storage system, image printing apparatus, image copying apparatus, image storage apparatus, program, and recording medium
US8891129B2 (en) Image forming apparatus having real-size preview function, method of controlling the same, and storage medium
JP2013054461A (en) Image editing device, image editing method, and computer program
US20090154763A1 (en) Image processing method for generating easily readable image
JP7073634B2 (en) Electronic devices and programs
US9245318B2 (en) Methods and systems for automated orientation detection and correction
JP5479121B2 (en) Image processing apparatus and image processing method
KR101360516B1 (en) Image processing apparatus, image processing method, and storage medium
JP2010068227A (en) Image processor and image processing method
JP2008124895A (en) Image reading apparatus and image forming apparatus
JP2010088048A (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP2006260398A (en) Printing controller and its control method
JP5474222B2 (en) Image processing apparatus, image processing method, and program
JP2012114746A (en) Image processing device and image processing method, and program
JP2010258706A (en) Image processing apparatus, image forming apparatus, method of controlling image processing apparatus, program, and recording medium
JP6780621B2 (en) Image processing device
JP2005027037A (en) Format conversion method and image processing apparatus
JP2004349858A (en) Image processor and document duplicating apparatus using the same

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20120727

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20120730

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20120731

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20120831

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130117

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130117

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20130701

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131015

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131213

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140114

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140212

R151 Written notification of patent or utility model registration

Ref document number: 5479121

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees