JP2002112009A - Image processing device and system thereof - Google Patents
Image processing device and system thereofInfo
- Publication number
- JP2002112009A JP2002112009A JP2000301428A JP2000301428A JP2002112009A JP 2002112009 A JP2002112009 A JP 2002112009A JP 2000301428 A JP2000301428 A JP 2000301428A JP 2000301428 A JP2000301428 A JP 2000301428A JP 2002112009 A JP2002112009 A JP 2002112009A
- Authority
- JP
- Japan
- Prior art keywords
- image
- image data
- processing
- determined
- rotation
- 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
- 238000012545 processing Methods 0.000 title claims abstract description 224
- 238000000034 method Methods 0.000 claims description 130
- 230000005540 biological transmission Effects 0.000 description 15
- 230000006870 function Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 9
- 238000006243 chemical reaction Methods 0.000 description 8
- 230000032258 transport Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 239000011521 glass Substances 0.000 description 4
- 238000003705 background correction Methods 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000012937 correction Methods 0.000 description 2
- 238000007639 printing Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 102100033040 Carbonic anhydrase 12 Human genes 0.000 description 1
- 101000867855 Homo sapiens Carbonic anhydrase 12 Proteins 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
Landscapes
- Facsimile Transmission Control (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、画像データから画像の
方向を判別する画像方向判別手段を備える端末装置と通
信可能に接続され、画像方向判別手段を備える画像処理
装置および画像処理システムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and an image processing system which are communicably connected to a terminal device having an image direction discriminating means for discriminating the direction of an image from image data, and which have the image direction discriminating means.
【0002】[0002]
【従来の技術】イメージリーダ部で読み取った画像デー
タから画像の天の方向を判別し、画像の天の方向が一定
の方向を向くように画像データを回転させた上で画像形
成を行う画像形成装置が出現している。この画像形成装
置をパーソナルコンピュータ(PC)と接続し、読み取
られた画像データをPCへ送信する場合、画像形成装置
は、画像の天の方向がPCのモニタ画面上において上向
きとなって表示される方向に画像データを回転させてか
らPCへ送出するようにしている。これにより、PCの
ユーザは、画像データの回転等の処理を行わずとも天の
方向が上向きとなった画像をモニタ画面にて見ることが
でき便利である。2. Description of the Related Art Image formation in which the direction of the top of an image is determined from image data read by an image reader, and the image data is rotated so that the direction of the top of the image is oriented in a certain direction, and then image formation is performed. The device has appeared. When this image forming apparatus is connected to a personal computer (PC) and the read image data is transmitted to the PC, the image forming apparatus is displayed with the top of the image facing upward on the monitor screen of the PC. The image data is rotated in the direction and then transmitted to the PC. Thereby, the user of the PC can conveniently view the image with the heavenly direction facing upward on the monitor screen without performing processing such as rotation of the image data.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、上記従
来の技術では、画像データの受信側であるPCが画像方
向判別機能と回転機能を有していても、画像方向判別処
理は、必ず送信側の画像形成装置で行われるようになっ
ている。したがって、例えばPCの方が画像方向判別の
処理能力が優れており、当該処理をPCで行った方が処
理時間が短縮される場合であっても、処理能力が劣る送
信側の方で当該処理が行われてしまい、処理時間が長く
なってしまうという問題がある。However, according to the above-mentioned conventional technology, even if the PC which is the image data receiving side has the image direction determining function and the rotation function, the image direction determining process must be performed by the transmitting side. This is performed by an image forming apparatus. Therefore, for example, a PC is superior in processing capability of image direction discrimination, and even if the processing time is shortened by performing the processing on the PC, the transmitting side having a lower processing capability can perform the processing. Is performed, and the processing time becomes long.
【0004】このような問題は、画像形成装置に限ら
ず、画像方向判別機能を有し、受け取った画像データを
接続されたPC等の端末装置に出力する画像処理装置一
般に起こるものである。本発明は、上述のような問題点
に鑑みてなされたものであって、画像方向判別処理が画
像データ受信側も実行可能な場合に、処理時間を短縮で
きる方の装置で当該処理を実行させることが可能な画像
処理装置および画像処理システムを提供することを目的
とする。Such a problem generally occurs not only in the image forming apparatus but also in an image processing apparatus generally having an image direction determining function and outputting received image data to a terminal device such as a connected PC. SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and in a case where image direction determination processing can also be performed by an image data receiving side, an apparatus that can reduce processing time executes the processing. It is an object of the present invention to provide an image processing apparatus and an image processing system that can perform the processing.
【0005】[0005]
【課題を解決するための手段】上記目的を達成するた
め、本発明は、画像データから画像の方向を判別する画
像方向判別手段を備える端末装置と通信可能に接続され
た画像処理装置であって、受け付けた画像データから画
像の方向を判別する画像方向判別手段と、前記端末装置
における画像方向判別手段の処理能力を取得する第1の
取得手段と、取得された端末装置における画像方向判別
手段の処理能力と、自身の画像方向判別手段の処理能力
とを比較し、その比較結果に応じて画像方向判別処理を
自身と端末装置のいずれで行うかを決定する第1の決定
手段と、画像方向判別処理を自身で行うことが決定され
た場合には、自身の画像方向判別手段を制御して、受け
付けた画像データから画像の方向を判別させ、判別結果
と当該画像データを端末装置に出力し、端末装置側で行
うことが決定された場合には、受け付けた画像データを
端末装置に出力すると共に画像方向判別処理を端末装置
側で実行させるための指示を行う第1の出力制御手段と
を備えることを特徴とする。According to the present invention, there is provided an image processing apparatus communicably connected to a terminal device having image direction determining means for determining an image direction from image data. Image direction determining means for determining the direction of an image from the received image data, first obtaining means for obtaining the processing capability of the image direction determining means in the terminal device, and image direction determining means in the obtained terminal device. First determining means for comparing the processing capability with the processing capability of its own image direction determining means, and determining whether to perform the image direction determining processing by itself or the terminal device according to the comparison result; If it is determined that the discrimination process is to be performed by itself, the control unit controls its own image direction discriminating unit to discriminate the direction of the image from the received image data. Output to the terminal device, and when it is determined to be performed on the terminal device side, output the received image data to the terminal device and issue an instruction to execute the image direction determination process on the terminal device side. Output control means.
【0006】また、前記第1の出力制御手段は、さら
に、画像方向判別処理を自身で行うことが決定された場
合に、判別された結果を画像データに付加させる方向情
報付加手段を備えることを特徴とする。また、前記画像
方向判別手段の処理能力は、画像方向判別処理の処理速
度のことであり、第1の決定手段は、双方の装置の画像
方向判別処理の処理速度を比較し、処理速度が速い方の
装置を画像方向判別処理を実行する装置として決定する
ことを特徴とする。Further, the first output control means further comprises direction information adding means for adding the determined result to the image data when it is determined that the image direction determination processing is to be performed by itself. Features. The processing capability of the image direction discriminating means refers to the processing speed of the image direction discriminating processing, and the first determining means compares the processing speed of the image direction discriminating processing of both apparatuses, and the processing speed is high. The other device is determined as the device that executes the image direction determination process.
【0007】また、前記画像処理装置と端末装置は、そ
れぞれが画像の方向判別の結果に基づき画像データの回
転を行う回転手段を備えており、画像処理装置は、さら
に、端末装置における回転手段の処理能力を取得する第
2の取得手段と、取得された端末装置の回転手段の処理
能力と、自身の回転手段の処理能力とを比較し、その比
較結果に応じて回転処理を自身と端末装置のいずれで行
うかを決定する第2の決定手段と、画像方向判別処理と
回転処理を自身で行うことが決定された場合には、自身
の画像方向判別手段を制御して、入力された画像データ
から画像の方向を判別させ、自身の回転手段を制御し
て、判別された画像の方向に基づいて入力された画像デ
ータを回転させた後、回転された画像データを端末装置
に出力する第2の出力制御手段とを備えることを特徴と
する。The image processing device and the terminal device each include a rotation unit for rotating image data based on the result of the image direction determination. The image processing device further includes a rotation unit of the terminal device. The second acquiring means for acquiring the processing capacity, the acquired processing capacity of the rotating means of the terminal device, and the processing capacity of its own rotating means are compared, and the rotation processing is performed between itself and the terminal device according to the comparison result. And a second determining means for determining which one to perform, and when it is determined that the image direction determining processing and the rotation processing are to be performed by itself, controlling the own image direction determining means to perform A method of determining the direction of the image from the data, controlling its own rotation unit, rotating the input image data based on the determined direction of the image, and then outputting the rotated image data to the terminal device. 2 out And a controlling unit.
【0008】また、前記回転手段の処理能力は、回転処
理の処理速度のことであり、第2の決定手段は、双方の
装置の回転手段の処理速度を比較し、処理速度が速い方
の装置を回転処理を実行する装置として決定することを
特徴とする。また、前記端末装置は、受信した画像デー
タに基づいて用紙に画像形成を行う装置であって、画像
処理装置は、さらに、画像が所定の方向に向くように画
像データを回転させる天揃えモードを実行するか否かを
判断する判断手段と、当該端末装置における給紙可能な
用紙のサイズおよび当該用紙の搬送方向に関する情報を
取得する第3の取得手段と、天揃えモードを実行しない
ことを判断すると共に、回転処理を自身で行うことが決
定された場合には、受け付けた画像データのサイズと方
向、および第3の取得手段により取得された用紙のサイ
ズと用紙の搬送方向に関する情報とに基づいて、画像デ
ータの回転角度を決定し、回転手段を制御して、決定さ
れた回転角度で画像データを回転させた後、当該画像デ
ータを出力する第3の出力制御手段とを備えることを特
徴とする。[0008] The processing capacity of the rotating means refers to the processing speed of the rotation processing. The second determining means compares the processing speeds of the rotating means of both apparatuses, and determines the processing speed of the apparatus having the higher processing speed. Is determined as a device that executes a rotation process. Further, the terminal device is a device that forms an image on a sheet based on received image data, and the image processing device further includes a top alignment mode for rotating the image data so that the image is oriented in a predetermined direction. Determining means for determining whether or not to execute, third obtaining means for obtaining information on the size of paper that can be fed in the terminal device and the transport direction of the paper, and determining not to execute the top alignment mode In addition, if it is determined that the rotation processing is to be performed by itself, the rotation processing is performed based on the size and direction of the received image data and the information on the paper size and paper conveyance direction acquired by the third acquisition unit. Determining the rotation angle of the image data, controlling the rotation means, rotating the image data at the determined rotation angle, and outputting the image data. Characterized in that it comprises a stage.
【0009】また、本発明は、画像データ送信装置と画
像データ受信装置とが通信可能に接続されてなる画像処
理システムであって、前記画像データ受信装置は、画像
データ送信装置から送られてくる画像データから画像の
方向を判別する第1の画像方向判別手段と、自身が有す
る画像方向判別手段の処理能力を画像データ送信装置に
送信する送信手段とを備え、前記画像データ送信装置
は、受け付けた画像データから画像の方向を判別する第
2の画像方向判別手段と、前記画像データ受信装置から
の画像方向判別手段の処理能力を受信する受信手段と、
画像データ受信装置の画像方向判別手段の処理能力と、
自身の画像方向判別手段の処理能力とを比較し、その比
較結果に応じて画像方向判別処理を自身と画像データ受
信装置のいずれで行うかを決定する決定手段と、画像方
向判別処理を自身で行うことが決定された場合には、第
2の画像方向判別手段を制御して、入力された画像デー
タから画像の方向を判別させ、判別結果と当該画像デー
タを画像データ受信装置に出力し、画像データ受信装置
側で行うことが決定された場合には、入力された画像デ
ータを当該装置に出力すると共に画像方向判別処理を当
該装置側で実行させるための指示を行う出力制御手段と
を備えることを特徴とする。Further, the present invention is an image processing system in which an image data transmitting device and an image data receiving device are communicably connected, wherein the image data receiving device is sent from the image data transmitting device. A first image direction discriminating unit for discriminating the direction of the image from the image data; and a transmitting unit for transmitting the processing capability of the image direction discriminating unit to the image data transmitting device. Second image direction determining means for determining the direction of the image from the image data, and receiving means for receiving the processing capability of the image direction determining means from the image data receiving device;
Processing capability of the image direction determining means of the image data receiving device;
A determination unit that compares the processing capability of its own image direction determination unit with the image data receiving device to determine whether to perform the image direction determination process based on the comparison result; If it is determined to perform, the second image direction determining means is controlled to determine the direction of the image from the input image data, and the determination result and the image data are output to the image data receiving device. Output control means for outputting the input image data to the image data receiving device when the image data receiving device is determined to perform the image data receiving device and instructing the image data receiving device to execute the image direction determining process on the image data receiving device. It is characterized by the following.
【0010】[0010]
【発明の実施の形態】以下、本発明に係る画像処理装置
をデジタル複写機(以下、単に「複写機」という。)に
適用した場合について説明する。図1は、本実施の形態
に係る複写機の全体の構成を示す図である。同図に示す
ように、この複写機は、自動原稿搬送装置10と、イメ
ージリーダ部30と、プリンタ部50と、給紙部70と
からなる。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A case where an image processing apparatus according to the present invention is applied to a digital copying machine (hereinafter, simply referred to as "copying machine") will be described below. FIG. 1 is a diagram showing an entire configuration of a copying machine according to the present embodiment. As shown in FIG. 1, the copying machine includes an automatic document feeder 10, an image reader 30, a printer 50, and a paper feeder 70.
【0011】自動原稿搬送装置10は、原稿給紙トレイ
11にセットされた原稿を搬送ベルト12によって、イ
メージリーダ部30のプラテンガラス31上の原稿読取
位置まで搬送させ、その原稿がイメージリーダ部30の
スキャナ32によりスキャンされると、再び、搬送ベル
ト14により同図の右方向に送り原稿排紙トレイ13上
に排出させる公知の装置である。The automatic document feeder 10 transports a document set on a document feed tray 11 to a document reading position on a platen glass 31 of an image reader 30 by a transport belt 12, and the document is transferred to the image reader 30. When the document is scanned by the scanner 32, the document is again sent rightward in FIG.
【0012】イメージリーダ部30は、プラテンガラス
31の原稿読取位置に搬送された原稿の画像を光学的に
読み取るものであって、スキャナ32、CCDイメージ
センサ(以下、「CCDセンサ」という。)38などか
ら構成される。スキャナ32には、露光ランプ33とこ
の露光ランプ33の照射による原稿からの反射光をプラ
テンガラス31に平行な方向に光路変更するミラー34
が設置され、図の矢印方向に移動することによりプラテ
ンガラス31上の原稿をスキャンする。原稿からの反射
光はミラー34に反射された後、さらにミラー35、3
6および集光レンズ37を介してCCDセンサ38まで
導かれ、ここで電気信号に変換されて画像データが生成
される。The image reader section 30 optically reads an image of a document conveyed to a document reading position on the platen glass 31, and includes a scanner 32 and a CCD image sensor (hereinafter, referred to as "CCD sensor") 38. Etc. The scanner 32 has an exposure lamp 33 and a mirror 34 for changing the optical path of light reflected from the original by irradiation of the exposure lamp 33 in a direction parallel to the platen glass 31.
And scans the original on the platen glass 31 by moving in the direction of the arrow in the figure. The reflected light from the original is reflected by a mirror 34 and then further reflected by mirrors 35 and 3.
The light is guided to the CCD sensor 38 via the condenser lens 6 and the condenser lens 37, where it is converted into an electric signal to generate image data.
【0013】当該画像データは、制御部100において
A/D変換されてデジタル信号となり、さらにシェーデ
ィング補正などの公知の補正処理を加えられた後、プリ
ンタ部50のレーザダイオード51を駆動させるための
駆動信号となる。なお、イメージリーダ部30は、ここ
では原稿を600dpiの解像度で読み取るように構成
されている。The image data is A / D-converted into a digital signal by the control unit 100, and further subjected to a known correction process such as shading correction, and then driven to drive the laser diode 51 of the printer unit 50. Signal. Here, the image reader unit 30 is configured to read a document at a resolution of 600 dpi.
【0014】プリンタ部50は、公知の電子写真方式に
より用紙上に画像を形成するものであって、上記駆動信
号を受信するとレーザダイオード51を駆動してレーザ
光を出射させる。レーザ光は、所定の角速度で回転する
ポリゴンミラー52側面のミラー面で反射され、fθレ
ンズ53、ミラー54、55を介して、感光体ドラム5
6の表面を露光走査する。The printer section 50 forms an image on a sheet by a known electrophotographic system, and upon receiving the drive signal, drives the laser diode 51 to emit a laser beam. The laser light is reflected by the mirror surface on the side of the polygon mirror 52 rotating at a predetermined angular velocity, and is passed through the fθ lens 53 and the mirrors 54 and 55 to the photosensitive drum 5.
6 is exposed and scanned.
【0015】この感光体ドラム56は、上記露光を受け
る前にクリーニング部57で感光体表面の残留トナーを
除去され、さらにイレーサランプ(図示せず)の照射を
受けて除電された後、帯電チャージャ58により一様に
帯電されており、このように一様に帯電した状態で上記
露光を受けると、感光体ドラム56表面に静電潜像が形
成される。Before the photosensitive drum 56 receives the above-mentioned exposure, the cleaning unit 57 removes residual toner on the surface of the photosensitive drum, and after being irradiated with an eraser lamp (not shown) to be de-charged, the charged drum is charged. The photosensitive drum 56 is charged uniformly, and when the above-described exposure is performed in such a state of being uniformly charged, an electrostatic latent image is formed on the surface of the photosensitive drum 56.
【0016】現像器59は、感光体ドラム56表面に形
成された上記静電潜像を現像する。一方、給紙部70に
は、2つの用紙カセット71、72が設けられており、
上述の感光体ドラム56における露光および現像の動作
と同期して、用紙が用紙カセット71、72のいずれか
から給紙ローラ711もしくは721の駆動により給紙
される。給紙された用紙は、感光体ドラム56の下方で
当該感光体ドラム56の表面に接触し、この時、転写チ
ャージャ60の静電力により、感光体ドラム56表面に
形成されていたトナー像が当該用紙表面に転写される。The developing device 59 develops the electrostatic latent image formed on the surface of the photosensitive drum 56. On the other hand, the paper supply unit 70 is provided with two paper cassettes 71 and 72,
The paper is fed from one of the paper cassettes 71 and 72 by driving the paper feed roller 711 or 721 in synchronization with the exposure and development operations on the photosensitive drum 56 described above. The fed sheet comes into contact with the surface of the photosensitive drum 56 below the photosensitive drum 56, and at this time, the toner image formed on the surface of the photosensitive drum 56 is moved by the electrostatic force of the transfer charger 60. It is transferred to the paper surface.
【0017】その後、用紙は、分離チャージャ61の静
電力によって感光体ドラム56の表面から分離され、搬
送ベルト62により定着部63に搬送される。用紙に転
写されたトナー像は、定着部63において内部にヒータ
を備えた定着ローラ64で加熱されながら押圧されるこ
とにより定着される。定着後の用紙は、排出ローラ65
により排紙トレイ66上に排出される。Thereafter, the sheet is separated from the surface of the photosensitive drum 56 by the electrostatic force of the separation charger 61, and is conveyed to the fixing unit 63 by the conveying belt 62. The toner image transferred to the paper is fixed by being pressed while being heated by a fixing roller 64 having a heater inside in a fixing unit 63. After fixing, the paper is fed to a discharge roller 65.
Is discharged onto the discharge tray 66.
【0018】イメージリーダ部30の端部には、外部装
置と通信するためのインターフェース部(以下、「I/
F部」という。)39が備えられている。本複写機1
は、図2に示すように、I/F部39を介してLAN4
に接続される。LAN4には、外部装置として、スキャ
ナ2、プリンタ3、パーソナルコンピュータ(PC)5
なども接続されており、複写機1は、スキャナ2で読み
取られた画像データをLAN4を介して受信して、プリ
ンタ部50においてプリント出力させることができる。
また、イメージリーダ部30において読み取った原稿の
画像データをLAN4を介してプリンタ3に出力しプリ
ント出力させたり、またPC5に出力させることもでき
るように構成される。PC5では、受信した画像データ
を表示画面上に表示させて見ることができる。At the end of the image reader unit 30, an interface unit (hereinafter referred to as "I / O") for communicating with an external device is provided.
Part F ". ) 39 are provided. This copier 1
Is connected to the LAN 4 via the I / F unit 39 as shown in FIG.
Connected to. The LAN 4 includes external devices such as a scanner 2, a printer 3, and a personal computer (PC) 5.
The copier 1 can receive the image data read by the scanner 2 via the LAN 4 and cause the printer unit 50 to print out the image data.
Further, the image data of the document read by the image reader unit 30 is output to the printer 3 via the LAN 4 for printing and output, and can also be output to the PC 5. In the PC 5, the received image data can be displayed and viewed on a display screen.
【0019】図1に戻って、イメージリーダ部30の操
作しやすい位置には、操作パネル90が配されている。
操作パネル90には、コピーを開始させるためのコピー
スタートキーやコピー枚数をセットするためのコピー枚
数キーなどが配される。また、画像データを外部装置に
送信する場合および外部装置から受信する場合に相手先
の装置を選択入力することができる。相手先が選択され
ると、当該相手先の装置とLAN4を介して通信が行わ
れ、後述の能力情報の受信や画像データの出力などの処
理が行われる。Returning to FIG. 1, an operation panel 90 is provided at a position where the image reader section 30 can be easily operated.
The operation panel 90 is provided with a copy start key for starting copying, a copy number key for setting the number of copies, and the like. In addition, when transmitting image data to an external device and receiving image data from the external device, it is possible to select and input a partner device. When the other party is selected, communication with the other party's device is performed via the LAN 4, and processing such as reception of capability information and output of image data, which will be described later, is performed.
【0020】図3は、制御部100の構成を示すブロッ
ク図である。同図に示すように、制御部100は、画像
信号処理部110、入力部115、高解像度画像メモリ
120、回転処理部130、LD駆動部140、出力部
150、解像度変換部160、低解像度認識用メモリ1
70、CPU180、ROM190、RAM191から
成る。FIG. 3 is a block diagram showing the configuration of the control unit 100. As shown in the figure, the control unit 100 includes an image signal processing unit 110, an input unit 115, a high resolution image memory 120, a rotation processing unit 130, an LD driving unit 140, an output unit 150, a resolution conversion unit 160, a low resolution recognition Memory 1
70, a CPU 180, a ROM 190, and a RAM 191.
【0021】画像信号処理部110は、イメージリーダ
部30のCCDセンサ38において光電変換された原稿
の画像データを受信すると、これをA/D変換し、CC
Dセンサ38の感度ムラを補正するシェーディング補正
や、エッジ強調を行うMTF補正などの画質改善のため
の公知の処理および2値化処理を施して、ページ単位で
高解像度画像メモリ120に格納させると共に解像度変
換部160に送る。When receiving the image data of the document photoelectrically converted by the CCD sensor 38 of the image reader unit 30, the image signal processing unit 110 A / D converts the received image data, and
Known processing for improving image quality such as shading correction for correcting sensitivity unevenness of the D sensor 38 and MTF correction for performing edge enhancement, and binarization processing are performed, and stored in the high-resolution image memory 120 in page units. The resolution is sent to the resolution conversion unit 160.
【0022】入力部115は、LAN4に接続されてい
るプリンタ3などの装置(以下、「外部装置」とい
う。)から送られてくる後述の能力信号など各種制御信
号をI/F部39を介して受信し、これをCPU180
に送る。また、外部装置から画像データを受信すると、
これを高解像度画像メモリ120および解像度変換部1
60に送出する。また、その画像データに付加されてい
るタグ情報(後述)をCPU180に送出する。The input unit 115 receives various control signals such as a capability signal described below sent from a device such as the printer 3 (hereinafter, referred to as an “external device”) connected to the LAN 4 via the I / F unit 39. CPU 180
Send to When image data is received from an external device,
This is transferred to the high-resolution image memory 120 and the resolution conversion unit 1
60. Also, tag information (described later) added to the image data is sent to CPU 180.
【0023】回転処理部130は、CPU180からの
指示により、高解像度画像メモリ120から目的のペー
ジの画像データを順次読み出し、これにCPU180か
らの回転角情報に基づき必要に応じて回転処理を施す。
そして、プリンタ部50で画像形成が行われる場合に
は、CPU180からの指示によりその画像データをL
D駆動部140に転送する。また、画像データをLAN
4を介して外部装置に送信する場合には、その画像デー
タを出力部150に送出する。The rotation processing unit 130 sequentially reads out image data of a target page from the high-resolution image memory 120 in accordance with an instruction from the CPU 180, and performs a rotation process as necessary based on rotation angle information from the CPU 180.
When an image is formed by the printer unit 50, the image data is converted to L by an instruction from the CPU 180.
The data is transferred to the D drive unit 140. In addition, image data can be
When the image data is transmitted to an external device via the external device 4, the image data is transmitted to the output unit 150.
【0024】なお、画像データの回転処理は、画像デー
タのメモリアドレスを変更する公知の技術(例えば、特
開昭60−126769号公報参照)によってなされ
る。LD駆動部140は、送られてくる画像データに基
づいてレーザダイオード(LD)51の駆動信号を生成
し、LD51を駆動させる。出力部150は、回転処理
部130から送られてくる画像データをI/F部39を
介して、CPU180が指示する目的の外部装置に出力
させる処理を行う。The rotation processing of the image data is performed by a known technique for changing the memory address of the image data (for example, see Japanese Patent Application Laid-Open No. Sho 60-126767). The LD drive section 140 generates a drive signal for the laser diode (LD) 51 based on the transmitted image data, and drives the LD 51. The output unit 150 performs a process of outputting the image data sent from the rotation processing unit 130 to an external device to which the CPU 180 instructs via the I / F unit 39.
【0025】また、CPU180の指示により、回転処
理部130から送られてくる画像データにタグ情報を付
加する処理を合わせて行う。一方、解像度変換部160
は、CPU180からの指示を受けると、画像信号処理
部110から送られてくる高解像度、ここでは600d
piの画像データを低解像度、ここでは25dpiの画
像データに変換し、これを低解像度認識用メモリ170
に送出する。同様に、外部装置から入力部115を介し
て送られてくる画像データを25dpiの画像データに
変換する。この解像度変換処理は、公知の技術であっ
て、例えば600dpiの画像データの中から主走査方
向と副走査方向にそれぞれ連続する16画素×16画素
のマトリクスを1ブロックとして抽出し、この1ブロッ
クの256画素の中で最も階調データの値が高いものを
取得して当該25dpiの1画素としての階調データ値
とし、これを画像データの全てについて行い、25dp
iの画像データを得るものである。Further, in accordance with an instruction from the CPU 180, processing for adding tag information to image data sent from the rotation processing unit 130 is also performed. On the other hand, the resolution conversion unit 160
Is a high resolution sent from the image signal processing unit 110 upon receiving an instruction from the CPU 180, here 600d
pi image data is converted into low-resolution image data, in this case, 25 dpi image data.
To send to. Similarly, image data sent from the external device via the input unit 115 is converted to 25 dpi image data. This resolution conversion processing is a known technique, and for example, a matrix of 16 pixels × 16 pixels that are respectively continuous in the main scanning direction and the sub-scanning direction is extracted as one block from 600 dpi image data, and this one block is extracted. Of the 256 pixels, the one with the highest value of the gradation data is acquired and set as the gradation data value of one pixel of 25 dpi, and this is performed for all the image data, and 25 dpi is obtained.
i to obtain image data.
【0026】低解像度認識用メモリ170は、解像度変
換された低解像度の画像データをページ毎に格納する。
この格納された画像データは、後述の画像送信処理およ
び画像受信処理において実行される画像方向判別処理に
用いられる。ROM190は、自動原稿搬送装置10に
おける原稿搬送動作やイメージリーダ部30におけるス
キャン動作やプリンタ部50における画像形成動作に関
するプログラム、画像方向判別処理および画像データを
回転処理させるためのプログラム、能力情報のデータな
どが格納されている。これに加えて、画像データをLA
N4を介して他の装置に送信する画像送信処理、および
LAN4を介して画像データを受信する画像受信処理に
関するプログラムが格納されている。The low-resolution recognition memory 170 stores the low-resolution image data whose resolution has been converted for each page.
The stored image data is used for an image direction determination process executed in an image transmission process and an image reception process described later. The ROM 190 is a program relating to a document conveying operation in the automatic document conveying apparatus 10, a scanning operation in the image reader unit 30, an image forming operation in the printer unit 50, a program for performing image direction discrimination processing and rotation processing of image data, and data of capability information. Are stored. In addition to this, the image data is
A program related to image transmission processing for transmitting image data to another device via N4 and image reception processing for receiving image data via LAN4 is stored.
【0027】CPU180は、ROM190から必要な
プログラムを読み出して、画像送信処理および画像受信
処理を行うと共に、自動原稿搬送装置10、イメージリ
ーダ部30、プリンタ部50などの動作をタイミングを
取りながら統一的に制御して円滑な複写動作を実行させ
る。また、低解像度認識用メモリ170に格納されてい
る画像データをページ毎に読み出して、その原稿の画像
の方向を判別する画像方向判別処理を行う。そして、判
別した画像方向の結果に基づいて画像の回転角度を決定
し、回転処理部130に対し、読み出すべき原稿のペー
ジ数と、その原稿に対する回転角度とを関連付けた回転
角情報を送出する。画像データを外部装置に送出する場
合には、出力部150にタグ情報を送出して、画像デー
タに付加させる。The CPU 180 reads a necessary program from the ROM 190, performs an image transmission process and an image reception process, and unifies the operations of the automatic document feeder 10, the image reader unit 30, the printer unit 50, etc. while taking timing. To perform a smooth copying operation. The image data stored in the low-resolution recognition memory 170 is read out for each page, and an image direction determination process for determining the direction of the image of the document is performed. The rotation angle of the image is determined based on the result of the determined image direction, and rotation angle information in which the number of pages of the document to be read and the rotation angle with respect to the document are transmitted to the rotation processing unit 130. When sending image data to an external device, tag information is sent to the output unit 150 and added to the image data.
【0028】また、LAN4を介して外部装置、例えば
プリンタ3に画像データを送信する場合、その送信前
に、プリンタ3からプリンタ3が有する画像処理能力に
関する情報(能力情報)を取得する。具体的には、同図
に示すように、原稿の画像の方向を判別する画像方向判
別処理(いわゆる天地認識処理)を行えるか否かを示す
情報、画像データを回転させる画像回転処理を行えるか
否かを示す情報、画像方向判別処理の処理速度を示す情
報(方向判別速度情報)、回転処理の処理速度を示す情
報(回転処理速度情報)、プリント出力可能な用紙につ
いての情報を示す用紙サイズ情報、後述の天揃えを行う
か否かを示す天揃え情報などが含まれる。なお、画像方
向判別処理の処理速度とは、当該処理の実行を担当する
CPUなどのIC素子の動作速度のことをいう。このこ
とは、回転処理速度についても同様である。When transmitting image data to an external device, for example, the printer 3 via the LAN 4, information (capability information) on the image processing capability of the printer 3 is acquired from the printer 3 before the transmission. More specifically, as shown in the figure, information indicating whether or not image direction determination processing (so-called top and bottom recognition processing) for determining the direction of an image on a document can be performed, and whether image rotation processing for rotating image data can be performed. Information indicating whether or not the image has been processed, information indicating the processing speed of the image direction determination process (direction determination speed information), information indicating the processing speed of the rotation process (rotation processing speed information), and a sheet size indicating information about a printable sheet. Information, including sky alignment information indicating whether or not to perform sky alignment described below. Note that the processing speed of the image direction determination processing refers to the operating speed of an IC element such as a CPU that is in charge of executing the processing. This is the same for the rotation processing speed.
【0029】本実施の形態では、この能力情報が各装置
について予め記憶手段に記憶されており、LAN4に接
続される各装置は、通信する相手先の装置から能力情報
の送信要求があると記憶手段から自身の能力情報を読み
出して送信するように構成されている。このような構成
は、例えば各装置に対応するプリンタドライバやスキャ
ナドライバなどにソフトウエアとしてインストールして
おくことで実現できる。In the present embodiment, this capability information is stored in advance in the storage means for each device, and each device connected to the LAN 4 stores the capability information when there is a transmission request for the capability information from the device to communicate with. It is configured to read its own capability information from the means and transmit it. Such a configuration can be realized by, for example, installing software as a printer driver or a scanner driver corresponding to each device.
【0030】なお、能力情報は、上記の内容に限られ
ず、その装置が有する実行可能な処理に関する情報など
が含まれていればよい。また、装置によっては含まれな
い情報、例えばPC5であれば用紙サイズ情報などもあ
る。本実施の形態では、画像方向判別機能が各外部装置
にそれぞれ備えられているものとし、その処理は、各装
置において後述の方法と同じ方法が用いられるものとす
る。同様に、画像回転機能も各外部装置にそれぞれ備え
られており、その処理は、各装置において上述の方法が
用いられる。It should be noted that the capability information is not limited to the above-mentioned contents, and it is sufficient that the capability information includes information relating to the executable processing of the apparatus. In addition, there is information that is not included in some apparatuses, for example, paper size information in the case of the PC 5. In the present embodiment, it is assumed that the image direction discriminating function is provided in each of the external devices, and the processing is performed by the same method as that described later in each device. Similarly, an image rotation function is also provided in each external device, and the processing is performed by the above-described method in each device.
【0031】CPU180は、この能力情報をI/F部
39から入力部115を介して受信し、これより、相手
先装置のプリンタ3がどのような能力を有しているのか
を知ることができる。図4は、画像送信処理の全体の動
作を示すフローチャートである。以下、自身のイメージ
リーダ部30で複数枚の原稿を読取り、読み取った画像
データを離れた場所に設置されているプリンタ3にペー
ジ毎に送信し、プリンタ3でプリント出力する場合を想
定して画像送信処理の内容を説明する。本画像送信処理
は、1通信毎、すなわち一の原稿束の原稿の画像データ
をプリンタ3に送信する処理を1ジョブとしたとき、ジ
ョブ毎に行われる処理である。The CPU 180 receives this capability information from the I / F unit 39 via the input unit 115, and from this, can know what capability the printer 3 of the partner device has. . FIG. 4 is a flowchart showing the overall operation of the image transmission process. Hereinafter, it is assumed that a plurality of originals are read by the image reader 30 of the own device, the read image data is transmitted page by page to the printer 3 installed at a remote place, and the image is supposed to be printed out by the printer 3. The contents of the transmission process will be described. This image transmission process is a process performed for each communication, that is, when the process of transmitting image data of a document of one document bundle to the printer 3 is defined as one job.
【0032】CPU180は、まずステップS1におい
て、画像を送信する相手先、ここではプリンタ3から取
得した能力情報に基づいて画像方向判別処理および画像
回転処理を自身もしくはプリンタ3のいずれの装置で行
う方が当該処理に要する時間を短縮できるか(処理効率
が良いか)を判断する能力識別処理を行う。この処理の
詳細については、後述する。First, in step S 1, the CPU 180 performs the image direction discrimination processing and the image rotation processing based on the capability information acquired from the printer 3, that is, the apparatus to which the image is transmitted by the printer 180. Performs a capability identification process to determine whether the time required for the process can be reduced (whether the process efficiency is high). Details of this processing will be described later.
【0033】次に、読み取られた画像データを画像信号
処理部110に入力させる処理を行い(ステップS
2)、高解像度画像メモリ120にページ毎に格納させ
る(ステップS3)。その際、ステップS1において、
自身で画像方向判別処理を行う方が良いと判断した場合
には、解像度変換部160に指示して、解像度変換を行
わせ、その画像データを低解像度認識用メモリ170に
ページ毎に格納させる。Next, a process for inputting the read image data to the image signal processing unit 110 is performed (step S).
2) The high resolution image memory 120 is stored for each page (step S3). At that time, in step S1,
If it is determined that it is better to perform the image direction discrimination processing by itself, the resolution conversion unit 160 is instructed to perform the resolution conversion, and the image data is stored in the low-resolution recognition memory 170 for each page.
【0034】そして、ステップS4の画像方向判別処理
に移る。画像方向判別処理では、ステップS1におい
て、自身で当該処理を行った方が処理時間を短縮できる
と判断した場合には、自身で当該処理を行い、外部装置
で行った方が良いと判断した場合には、当該処理を行わ
ずステップS5の回転角度決定処理に移る。回転角度決
定処理は、画像方向判別処理により判別された画像の方
向に基づいて画像データの回転角度を決定する。また、
天揃えを行わない場合に、プリンタ3が備える給紙可能
な用紙のサイズおよびその方向に合わせて画像データの
回転角度を決定する。Then, the process proceeds to the image direction discriminating process in step S4. In the image direction discrimination process, in step S1, if it is determined that performing the process by itself can shorten the processing time, the process is performed by itself, and it is determined that the process should be performed by an external device. Then, the process proceeds to the rotation angle determination process of step S5 without performing the process. The rotation angle determination processing determines the rotation angle of the image data based on the direction of the image determined by the image direction determination processing. Also,
When the top alignment is not performed, the rotation angle of the image data is determined in accordance with the size of the paper that can be fed by the printer 3 and its direction.
【0035】ステップS6の画像回転処理は、回転処理
部130に対し、読み出すべき原稿の画像データを高解
像度画像メモリ120から読み出させ、回転角度決定処
理において決定された回転角度で回転させる。ステップ
S7の画像出力処理は、画像方向判別だけを行った場
合、画像データを回転させた場合、画像方向判別を行っ
ていない場合のそれぞれについて、その旨を示すタグ情
報を付加させて、I/F部29、LAN4を介してプリ
ンタ3へ出力させる。In the image rotation process in step S6, the rotation processing unit 130 reads the image data of the document to be read from the high-resolution image memory 120, and rotates the document at the rotation angle determined in the rotation angle determination process. In the image output process in step S7, the tag information indicating that fact is added to each of the case where only the image direction discrimination is performed, the case where the image data is rotated, and the case where the image direction discrimination is not performed. The F unit 29 outputs the data to the printer 3 via the LAN 4.
【0036】図5は、能力識別処理のサブルーチンを示
すフローチャートである。同図に示すように、まず、C
PU180は、画像データを送信する相手先、ここでは
プリンタ3と通信するためにプリンタ3の呼び出しを行
い(ステップS11)、プリンタ3に対し、能力情報の
送信を要求し、これを受信する(ステップS12)。な
お、プリンタ3との通信は、操作パネル90において通
信の相手先としてプリンタ3が選択入力されると開始さ
れる。FIG. 5 is a flowchart showing a subroutine of the capability identification process. As shown in FIG.
The PU 180 calls the printer 3 to communicate with the destination to which the image data is transmitted, here, the printer 3 (step S11), requests the printer 3 to transmit the capability information, and receives it (step S11). S12). The communication with the printer 3 is started when the printer 3 is selected and input as a communication partner on the operation panel 90.
【0037】CPU180は、受信した能力情報からプ
リンタ3が画像方向判別機能を有しているか否かを判断
する(ステップS13)。ここで、プリンタ3が画像方
向判別機能を有していると判断した場合には(ステップ
S13で「Y」)、画像方向判別処理を実行する際の処
理速度が自身の方が早いか否かを判断する(ステップS
14)。この判断は、能力情報の判別処理速度情報から
処理能力としてプリンタ3の処理速度を判断し、これと
自身の処理速度とを比較することにより行われる。処理
速度が早い方の装置で当該処理を行った方が処理時間を
短縮することができるので、自身の処理速度の方が早い
と判断した場合には(ステップS14で「Y」)、当該
処理を自身で実行すべく、方向判別フラグを「1」にし
て(ステップS15)、ステップS16へ移る。The CPU 180 determines whether or not the printer 3 has an image direction determining function based on the received capability information (step S13). Here, when it is determined that the printer 3 has the image direction determination function (“Y” in step S13), it is determined whether or not the processing speed at the time of executing the image direction determination processing is higher for itself. (Step S
14). This determination is made by determining the processing speed of the printer 3 as the processing capability from the determination processing speed information of the capability information, and comparing this with the processing speed of the printer 3 itself. Since the processing time can be shortened by performing the processing with the apparatus having the higher processing speed, if it is determined that the processing speed is higher (“Y” in step S14), the processing is performed. Is performed by itself, the direction determination flag is set to "1" (step S15), and the process proceeds to step S16.
【0038】この方向判別フラグは、上記ステップS4
の画像方向判別処理において、当該処理を自身で行うか
否かを判断するために参照されるフラグである。なお、
このフラグは、一の相手先に対する画像データの送信処
理(1ジョブ)が終了すると、「0」にリセットされ
る。このことは、後述の天揃えフラグ、回転フラグ、方
向情報付加フラグについても同様である。This direction discrimination flag is determined in step S4.
Is a flag that is referred to in the image direction discrimination processing of (1) to determine whether or not to perform the processing by itself. In addition,
This flag is reset to “0” when the transmission process (one job) of image data to one destination is completed. This is the same for a ceiling alignment flag, a rotation flag, and a direction information addition flag described later.
【0039】なお、ステップS14において、自身の処
理速度の方が遅い、すなわち相手先の装置のプリンタ3
の方が早いと判断した場合には(ステップS14で
「N」)、プリンタ3に画像方向判別処理を行わせた方
が処理時間を短縮できることになるので、方向判別フラ
グを「0」にしたまま、ステップS22へ移る。また、
ステップS13において「N」、すなわちプリンタ3が
画像方向判別機能を有していないと判断した場合には、
自身で行うべく、ステップS15で方向判別フラグが
「1」にされる。In step S14, the processing speed of the own device is slower, that is, the printer 3
Is determined to be earlier ("N" in step S14), the processing time can be shortened by causing the printer 3 to perform the image direction discrimination processing, so the direction discrimination flag is set to "0". Then, the process proceeds to step S22. Also,
If "N" in step S13, that is, if it is determined that the printer 3 does not have the image direction determining function,
The direction discrimination flag is set to "1" in step S15 to perform the operation by itself.
【0040】ステップS16では、天揃えを行うか否か
を判断する。天揃えとは、複数の画像について、その天
の方向が所定の同一方向に揃うようにそれぞれの画像を
回転させる処理である。例えば、自身で画像方向判別処
理と画像回転処理を行うと判断した場合に、さらに天揃
えも行えば、天の方向が全て同一の方向となった各ペー
ジの原稿の画像データがプリンタ3に向けて出力され
る。プリンタ3は、受信した画像データをそのままの状
態で、すなわち画像回転処理を行うことなくページ毎に
プリント処理していけば、出力された用紙束の各用紙の
画像は、全て同一の方向を向いていることになる。これ
により、ユーザは、画像の方向を揃えるために用紙の向
きを直す手間が不要となり使い勝手が良くなる。In step S16, it is determined whether or not to perform the top alignment. Top alignment is a process of rotating a plurality of images such that the directions of the tops are aligned in a predetermined same direction. For example, if it is determined that the image direction discrimination processing and the image rotation processing are to be performed by itself, and if the top is also aligned, the image data of the document of each page in which the top directions are all in the same direction is directed to the printer 3. Output. If the printer 3 prints the received image data as it is, that is, without performing image rotation processing for each page, all the images on the respective sheets of the output sheet bundle face the same direction. Will be. This eliminates the need for the user to change the direction of the paper in order to align the image directions, thereby improving usability.
【0041】天揃えを行うという判断は、相手先からの
能力情報に含まれる天揃え情報に基づいて行われる。例
えば、相手先(送信先)がPC5など画像データをファ
イリングして、その画像をディスプレイ上に表示させる
装置の場合は、ユーザにとって各画像の天方向が例えば
上向きに揃っていた方が都合が良い。そのため、本実施
の形態のPC5では、画像データを外部装置(ここで
は、複写機1)から受信する場合に、天揃え機能を働か
せる否かをユーザにより選択できるように構成されてお
り、ユーザにより天揃えすることが選択されると、その
内容を示す天揃え情報を能力情報に含めて複写機1に送
信し、複写機1のCPU180は、この天揃え情報から
天揃えの必要があることを判断する。なお、ユーザによ
り天揃えが選択されなければ、天揃えを行う必要がない
ことを示す内容の天揃え情報が送信されるので、この場
合には、CPU180は天揃えを行う必要がないと判断
することになる。The determination to perform the top alignment is made based on the top alignment information included in the capability information from the partner. For example, in a case where the destination (destination) is a device such as the PC 5 that filings image data and displaying the image on a display, it is more convenient for the user that the tops of the images are aligned, for example, upward. . Therefore, the PC 5 of the present embodiment is configured such that when receiving image data from an external device (here, the copying machine 1), the user can select whether or not to operate the sky alignment function. When the top alignment is selected, the top alignment information indicating the content is included in the capability information and transmitted to the copying machine 1, and the CPU 180 of the copying machine 1 determines from the top alignment information that the top alignment is necessary. to decide. If the user does not select the sky alignment, the sky alignment information indicating that the sky alignment is not necessary is transmitted. In this case, the CPU 180 determines that the sky alignment is not necessary. Will be.
【0042】また、複写機1の操作パネル90におい
て、天揃えするか否かの選択入力の受付を行えるように
構成し、ユーザにより天揃えが選択されると天揃えを行
うようにしてもよい。この場合に、例えば相手先から天
揃えしない旨の天揃え情報を受信しても、自身のユーザ
により天揃えの実行が選択されれば天揃えを行うように
することもできる。The operation panel 90 of the copying machine 1 may be configured to accept a selection input as to whether or not to perform the alignment, and the alignment may be performed when the user selects the alignment. . In this case, for example, even if the user has received the sky alignment information indicating that the sky alignment is not to be performed from the other party, the sky alignment can be performed if the user selects execution of the sky alignment.
【0043】CPU180は、天揃えすると判断した場
合は(ステップS16で「Y」)、天揃えフラグを
「1」にして(ステップS17)、ステップS18へ移
る。一方、天揃えしないと判断した場合は(ステップS
16で「N」)、天揃えフラグを「0」のままの状態で
ステップS18に移る。ステップS18では、受信した
能力情報からプリンタ3が画像回転機能を有しているか
否かを判断する。画像回転機能を有していると判断した
場合には(ステップS18で「Y」)、画像回転処理を
実行する際の処理速度が自身の方が早いか否かを判断す
る(ステップS19)。この判断は、上記画像方向判別
処理と同様に、能力情報の回転処理速度情報からプリン
タ3の処理速度を判断し、これと自身の処理速度とを比
較することにより行われる。処理速度が早い方の装置で
当該処理を行った方が処理時間を短縮できることになる
ので、自身の処理速度の方が早いと判断した場合には
(ステップS19で「Y」)、回転フラグを「1」にし
て(ステップS20)、ステップS22へ移る。一方、
プリンタ3側で行った方が短縮できると判断した場合に
は(ステップS19で「N」)、方向情報付加フラグを
「1」にして(ステップS21)、ステップS22へ移
る。If the CPU 180 determines that the head is aligned ("Y" in step S16), it sets the head alignment flag to "1" (step S17), and proceeds to step S18. On the other hand, if it is determined that the tops are not aligned (step S
(N at 16), and the process proceeds to step S18 with the sky alignment flag remaining at "0". In step S18, it is determined whether or not the printer 3 has an image rotation function based on the received capability information. When it is determined that the image rotation function is provided (“Y” in step S18), it is determined whether or not the processing speed at the time of executing the image rotation processing is higher for itself (step S19). This determination is made by determining the processing speed of the printer 3 from the rotation processing speed information of the capability information and comparing this with the own processing speed, as in the image direction determination processing. Since the processing time can be reduced by performing the processing with the apparatus having the higher processing speed, if it is determined that the processing speed is higher (“Y” in step S19), the rotation flag is set. It is set to "1" (step S20), and the process moves to step S22. on the other hand,
If it is determined that the process performed by the printer 3 can be shortened (“N” in step S19), the direction information addition flag is set to “1” (step S21), and the process proceeds to step S22.
【0044】この回転フラグは、上記ステップS6の画
像回転処理において、当該処理を自身で行うか否かを判
断するために参照されるフラグである。また、方向情報
付加フラグは、後述の画像出力処理(図12)のステッ
プS112において、画像の方向判別結果を示す方向情
報と回転処理済みであることを示す回転情報のいずれを
タグ情報として画像データに付加するかを判断するため
のフラグである。This rotation flag is a flag which is referred to in the image rotation processing in step S6 to determine whether or not to perform the processing by itself. Further, in step S112 of the image output process (FIG. 12) described later, the direction information addition flag sets either the direction information indicating the direction determination result of the image or the rotation information indicating that the rotation process has been completed as tag information as image data. Is a flag for determining whether or not to add to.
【0045】ステップS22では、プリンタ3の給紙可
能な用紙サイズをチェックする。これは、能力情報の用
紙サイズ情報に基づいて行われる。用紙サイズ情報に
は、プリンタ3が備える給紙可能な用紙サイズ、例えば
A4、B4サイズなどのサイズ情報に加えて、用紙の搬
送方向、例えば横方向(用紙の短辺が搬送方向と平行な
状態となる方向)もしくは縦方向(用紙の長辺が搬送方
向と平行な状態となる方向)の情報が含まれる。この情
報により、CPU180は、プリンタ3の給紙カセット
に、どのサイズの用紙がどの方向にセットされているか
を知ることができる。In step S22, the paper size that can be supplied by the printer 3 is checked. This is performed based on the paper size information of the capability information. The paper size information includes, in addition to size information such as A4 and B4 sizes that can be fed by the printer 3, a paper transport direction, for example, a horizontal direction (a state in which the short side of the paper is parallel to the transport direction). ) Or information in the vertical direction (a direction in which the long side of the sheet is parallel to the transport direction). Based on this information, the CPU 180 can know which size paper is set in which direction in the paper feed cassette of the printer 3.
【0046】用紙サイズのチェック終了後、メインルー
チンにリターンする。図6は、画像方向判別処理のサブ
ルーチンを示すフローチャートである。同図に示すよう
に、CPU180は、まず方向判別フラグが「1」であ
るか否かを判断する(ステップS51)。方向判別フラ
グが「1」であると判断した場合は(ステップS51で
「Y」)、公知の方法で画像の方向を判別する。この画
像方向の判別処理については、様々なものが公開されて
いるので詳細な説明は省くが、本実施の形態では、次の
ような方法を用いて画像の方向を判別している。After completing the paper size check, the process returns to the main routine. FIG. 6 is a flowchart showing a subroutine of the image direction determination processing. As shown in the drawing, the CPU 180 first determines whether or not the direction determination flag is “1” (step S51). If it is determined that the direction determination flag is "1"("Y" in step S51), the direction of the image is determined by a known method. Since various processes for discriminating the image direction have been disclosed, detailed description will be omitted, but in the present embodiment, the direction of the image is discriminated using the following method.
【0047】まず、原稿の画像データから文字領域を抽
出する処理を行う(ステップS52。文字領域を抽出す
るのは、原稿画像に図形や表の罫線などが含まれる場合
に、それらをもとに画像の天地を判別すると原稿の方向
を誤認しやすいからである。ここでは、特開2000−
32247号公報に開示されているように、1ページ分
の原稿を複数の領域に分割し、各領域について、低解像
度認識用メモリ170に格納されている画像データか
ら、その濃度値を主走査方向と副走査方向に積分したヒ
ストグラムを生成する。そして、生成したヒストグラム
に基づいて、その領域の画像データを天地認識するため
に使用する場合の信頼度を求め、信頼度が最も高くなる
領域を文字領域とみなして抽出するものである。First, a process of extracting a character area from the image data of the original is performed (step S52). The extraction of the character area is performed based on a figure or a ruled line of a table when the original image contains the figure or ruled line of the table. This is because, if the orientation of the image is determined, the orientation of the document is easily misidentified.
As disclosed in Japanese Patent No. 32247, one page of a document is divided into a plurality of areas, and the density value of each area is calculated from the image data stored in the low-resolution recognition memory 170 in the main scanning direction. And a histogram integrated in the sub-scanning direction. Then, based on the generated histogram, a degree of reliability when the image data of the area is used for recognizing the top and bottom is obtained, and an area having the highest reliability is extracted as a character area.
【0048】そして、文字方向を判別し、画像の方向判
別(天地認識)を行う(ステップS53、S54)。こ
の処理は、例えば特開平9−9040号公報に開示され
ている技術を用いることができる。すなわち、文字領域
として抽出した領域について生成された主走査方向と副
走査方向のヒストグラムの分布から文字列の方向を判別
し、文字列の方向に対し垂直方向に相当するヒストグラ
ムを見て、その変化点の数および方向から文字列の先頭
側を判断し、画像の天地を認識することで画像方向を判
別するものである。ここでは、画像の天を一方向、例え
ば上向きを基準としたときに、時計回りに90°(右向
き)、180°(下向き)、270°(左向き)の4方
向について認識するものとする。Then, the character direction is determined, and the direction of the image is determined (top and bottom recognition) (steps S53 and S54). For this processing, for example, a technique disclosed in Japanese Patent Application Laid-Open No. 9-9040 can be used. That is, the direction of the character string is determined from the distribution of the histograms in the main scanning direction and the sub-scanning direction generated for the region extracted as the character region, and the histogram corresponding to the direction perpendicular to the direction of the character string is determined. The head of the character string is determined from the number and direction of the points, and the image direction is determined by recognizing the top and bottom of the image. Here, when the top of the image is determined in one direction, for example, upward, four directions of 90 ° (rightward), 180 ° (downward), and 270 ° (leftward) are recognized clockwise.
【0049】CPU180は、この処理を各ページにつ
いて順次行っていき、原稿のページ数と画像の方向とし
て判別された方向とを関連付けて、RAM191に格納
していく。図7は、回転角度決定処理のサブルーチンを
示すフローチャートである。同図に示すように、CPU
180は、方向判別フラグが「1」であるか否かを判断
し、「1」であると判断した場合は(ステップS71で
「Y」)、画像の方向判別結果を参照し(ステップS7
2)、その判別結果に基づいて画像データの回転角度を
決定する(ステップS73)。The CPU 180 sequentially performs this process for each page, and stores the number of pages of the document in the RAM 191 in association with the direction determined as the image direction. FIG. 7 is a flowchart showing a subroutine of the rotation angle determination process. As shown in FIG.
180 determines whether or not the direction determination flag is “1”, and when it is determined to be “1” (“Y” in step S71), refers to the result of determining the direction of the image (step S7).
2) A rotation angle of the image data is determined based on the determination result (step S73).
【0050】すなわち、CPU180は、RAM191
を参照することで、上記画像方向判別処理により判別さ
れた原稿画像の方向をページ毎に取得することができる
ので、取得した方向から当該ページの画像データに対す
る回転角度を決定するものである。例えば、1ページ目
の原稿画像の天の方向が右向き(90°)であると認識
されていた場合には、画像回転処理において画像データ
を回転させたときに、画像の天の方向が上向きとなるよ
うに、その回転角度として90°(画像の回転方向は、
反時計回りとする。)を設定する。同様に、画像の天の
方向が左向き(270°)と認識された場合には、回転
角度として270°が設定される。また、画像の天の方
向が下向き(180°)と認識された場合には、回転角
度として180°が設定される。なお、もともと画像の
天の向きが上向きであると認識された場合には、0°が
設定され、回転は行われない。That is, the CPU 180 stores in the RAM 191
By referring to, the direction of the document image determined by the image direction determination processing can be acquired for each page, and the rotation angle of the page with respect to the image data is determined from the acquired direction. For example, if the top direction of the original image of the first page is recognized to be rightward (90 °), when the image data is rotated in the image rotation processing, the top direction of the image will be upward. So that the rotation angle is 90 ° (the rotation direction of the image is
Counterclockwise. ) Is set. Similarly, when the top direction of the image is recognized to be leftward (270 °), 270 ° is set as the rotation angle. If the top direction of the image is recognized as downward (180 °), 180 ° is set as the rotation angle. If it is originally recognized that the top of the image is upward, 0 ° is set and no rotation is performed.
【0051】CPU180は、この処理を各ページの原
稿について順次行っていき、決定された回転角度の値を
原稿のページ数と関連付けてRAM191に格納してい
く。次に、天揃えフラグが「1」であるか否かを判断す
る(ステップS74)。ここで、天揃えフラグ「1」で
あると判断した場合は(ステップS74で「Y」)、決
定された回転角度で各原稿の画像データが回転されれ
ば、画像の天の向きが同一の方向、ここでは上向きにな
るので、そのままリターンする。The CPU 180 sequentially performs this process for the document of each page, and stores the determined rotation angle value in the RAM 191 in association with the number of pages of the document. Next, it is determined whether or not the ceiling alignment flag is “1” (step S74). Here, when it is determined that the top alignment flag is “1” (“Y” in step S74), if the image data of each document is rotated at the determined rotation angle, the top direction of the image is the same. The direction, here upward, returns as it is.
【0052】一方、天揃えフラグが「1」でない、すな
わち「0」であると判断した場合には(ステップS74
で「N」)、ステップS75に移る。ステップS75で
は、回転フラグが「1」であるか否かを判断する。回転
フラグが「1」である場合は、画像回転処理において、
自身で画像データを回転させることになるが、ここでは
天揃えフラグが「0」であることから天揃え機能を働か
せる必要はない。したがって、本実施の形態では、天揃
えしない場合は、送信先であるプリンタ3の用紙のセッ
ト方向(搬送方向)に合わせて画像データの回転角度を
決定するようにしている。このようにすれば、例えばプ
リンタ3に回転機能がない場合に、プリンタ3におい
て、自身にセットされている用紙のセット方向に合うよ
うに受信した画像データを回転させなければプリント出
力できないといった問題がなくなり、ユーザにとって便
利となるからである。以下、用紙の方向に合わせて回転
角度を決定した場合は、上記ステップS73で決定され
てRAM191に格納されている回転角度の値を書き換
えるものとする。On the other hand, when it is determined that the sky alignment flag is not "1", that is, it is "0" (step S74).
, “N”), and then proceed to step S75. In the step S75, it is determined whether or not the rotation flag is “1”. When the rotation flag is “1”, in the image rotation processing,
Although the image data is rotated by itself, it is not necessary to operate the ceiling alignment function here because the ceiling alignment flag is “0”. Therefore, in the present embodiment, when the top alignment is not performed, the rotation angle of the image data is determined according to the sheet setting direction (transport direction) of the printer 3 that is the transmission destination. In this way, for example, when the printer 3 does not have a rotation function, the printer 3 cannot print out unless the received image data is rotated to match the setting direction of the paper set therein. This is convenient for the user. Hereinafter, when the rotation angle is determined according to the direction of the sheet, the value of the rotation angle determined in step S73 and stored in the RAM 191 is rewritten.
【0053】ステップS75において、回転フラグが
「1」であると判断した場合は、原稿と同じサイズの用
紙がプリンタ3にセットされているか否かを判断する
(ステップS77)。この判断は、上記用紙サイズ情報
を参照することにより行われる。同じサイズの用紙がセ
ットされていると判断した場合は(ステップS77で
「Y」)、読み取られている原稿の方向が縦方向または
横方向のいずれであるかを判断する(ステップS7
8)。当該原稿の方向の判断は、原稿の長辺が主走査方
向もしくは副走査方向のいずれの方向に平行となる状態
で原稿が読み取られたかによって行われる。If it is determined in step S75 that the rotation flag is "1", it is determined whether a sheet of the same size as the document is set in the printer 3 (step S77). This determination is made by referring to the paper size information. If it is determined that sheets of the same size are set ("Y" in step S77), it is determined whether the direction of the document being read is the vertical direction or the horizontal direction (step S7).
8). The determination of the direction of the document is made based on whether the document is read in a state where the long side of the document is parallel to the main scanning direction or the sub-scanning direction.
【0054】図8は、原稿が横方向で読み取られた場合
と縦方向で読み取られた場合それぞれについて、当該原
稿の画像をプリンタ3にセットされている用紙の方向に
対して回転させたときの様子を示す模式図である。同図
に示すように、「元の画像」欄は、読み取られた原稿画
像を示しており、例えば、画像201は、ある原稿を横
方向で読み取ったときに、当該原稿の画像の天が上を向
いている場合を示しており、同様に画像202は当該原
稿の画像の天が右を、画像203は下を、画像204は
左を向いている場合をそれぞれ示している。FIG. 8 shows the case where the image of the original is rotated with respect to the direction of the paper set on the printer 3 when the original is read in the horizontal direction and when the original is read in the vertical direction. It is a schematic diagram which shows a situation. As shown in the figure, the “original image” column indicates a read document image. For example, when an image 201 is read in a horizontal direction, the image of the document Similarly, the image 202 shows a case where the top of the image of the document is right, the image 203 shows a bottom, and the image 204 shows a left.
【0055】「方向判別結果」欄は、当該原稿につい
て、上記ステップS5の画像方向判別処理において判別
された結果を示す。「回転角度」欄は、ステップS73
において当該原稿に対してその画像の天を上方向に向け
るための角度として設定された回転角度を示す。「回転
後の画像」欄は、プリンタ3において縦方向もしくは横
方向にセットされた用紙に合わせて「元の画像」欄の原
稿画像を必要に応じて回転させた状態を示している。こ
のように、本実施の形態では、原稿の短辺の向きが左右
方向に向いている状態を「横方向」、上下方向に向いて
いる状態を「縦方向」としている。The "direction determination result" column indicates the result determined in the image direction determination processing in step S5 for the document. The "Rotation angle" column is set in step S73.
Indicates a rotation angle set as an angle for turning the top of the image upward with respect to the original. The “image after rotation” column shows a state where the document image in the “original image” column is rotated as necessary in accordance with the paper set in the printer 3 in the vertical or horizontal direction. As described above, in this embodiment, the state in which the short side of the document is oriented in the left-right direction is referred to as “horizontal direction”, and the state in which the short side is oriented in the up-down direction is referred to as “vertical direction”.
【0056】図7に戻って、ステップS78において、
当該原稿の方向が縦方向であると判断した場合には、縦
方向にセットされた用紙があるか否かを判断する(ステ
ップS79)。この判断は、上記用紙サイズ情報を参照
することにより行われる。ここで、用紙があると判断す
ると(ステップS79で「Y」)、当該原稿に対して設
定された回転角度が90°もしくは270°であるか否
かを判断する(ステップS80)。設定された回転角度
が90°もしくは270°でない、すなわち0°もしく
は180°の場合は(ステップS80で「N」)、その
ままリターンする。この場合は、図8の「原稿を縦で読
み取った場合」における原稿画像205が画像209の
状態となる(回転角度が0°のため回転されない)、も
しくは原稿画像207が回転されて画像211の状態と
なる場合であり、設定された回転角度、例えば原稿画像
207であれば180°で画像データを回転させると、
原稿の天が同じ向き、ここでは上向きに向くことにな
る。Returning to FIG. 7, in step S78,
If it is determined that the original is in the vertical direction, it is determined whether there is a sheet set in the vertical direction (step S79). This determination is made by referring to the paper size information. If it is determined that there is a sheet ("Y" in step S79), it is determined whether the rotation angle set for the document is 90 ° or 270 ° (step S80). If the set rotation angle is not 90 ° or 270 °, that is, 0 ° or 180 ° (“N” in step S80), the process returns. In this case, the original image 205 in “when the original is read vertically” in FIG. 8 is in the state of the image 209 (not rotated because the rotation angle is 0 °), or the original image 207 is rotated to When the image data is rotated at a set rotation angle, for example, 180 ° for the document image 207,
The top of the manuscript will be facing the same direction, here upward.
【0057】一方、設定された回転角度が90°もしく
は270°の場合は(ステップS80で「Y」)、ステ
ップS81に移って、当該原稿に対して設定された回転
角度に90°をプラスして、その値をRAM191にお
いて書き換えてリターンする。この場合は、図8の原稿
画像206が回転されて画像210となる、もしくは原
稿画像208が画像212となる場合であり、設定され
た回転角度に90°をプラスした値、例えば原稿画像2
06であれば設定された回転角度が90°なので、これ
に90°をプラスして180°で画像データを回転させ
ると、原稿の天が同じ向き、ここでは左向きに向くこと
になる。On the other hand, if the set rotation angle is 90 ° or 270 ° (“Y” in step S80), the process proceeds to step S81 to add 90 ° to the rotation angle set for the document. Then, the value is rewritten in the RAM 191 and the process returns. In this case, the document image 206 shown in FIG. 8 is rotated to become the image 210, or the document image 208 becomes the image 212, and a value obtained by adding 90 ° to the set rotation angle, for example, the document image 2
If it is 06, the set rotation angle is 90 °, and if the image data is rotated by 180 ° by adding 90 ° to the rotation angle, the top of the document is turned to the same direction, here, to the left.
【0058】このように、原稿を読み取るときに画像の
天が上、右、下、左いずれの方向であっても、原稿の天
の方向を、例えば上向きもしくは左向きに揃えた状態で
プリンタ3に画像データを送信すれば、プリンタ3から
出力されるときに、少なくとも画像の向きが下および右
向きのものが混ざらず、用紙束の用紙を改めて1枚ずつ
揃え直す手間をなくすことができる。このことは、特に
プリンタ3から出力された用紙束をステープル綴じする
ような場合に効果的である。As described above, regardless of whether the top of the image is in the upper, right, lower, or left direction when reading the original, the printer 3 is arranged with the top of the original aligned, for example, upward or leftward. When the image data is transmitted, when the image data is output from the printer 3, at least the images with the image orientations of the downward and right directions are not mixed, and the trouble of realigning the sheets of the sheet bundle one by one can be eliminated. This is particularly effective when stapling a bundle of sheets output from the printer 3.
【0059】一方、プリンタ3に縦方向の用紙がセット
されていない、すなわち横方向の用紙があると判断した
場合には(ステップS79で「N」)、設定された回転
角度が90°もしくは270°であるか否かを判断する
(ステップS82)。設定された回転角度が0°もしく
は180°の場合は(ステップS82で「N」)、ステ
ップS81に移って、設定された回転角度に90°をプ
ラスして、その値をRAM191において書き換えてリ
ターンする。この場合は、図8の原稿画像205が回転
されて画像213となる、もしくは原稿画像207が回
転されて画像215となる場合であり、画像の天が左向
きとなる画像データがプリンタ3に送信されることにな
る。On the other hand, if it is determined that no paper in the vertical direction is set in the printer 3, that is, if there is paper in the horizontal direction (“N” in step S 79), the set rotation angle is 90 ° or 270. It is determined whether or not it is ° (step S82). If the set rotation angle is 0 ° or 180 ° (“N” in step S82), the process proceeds to step S81, where 90 ° is added to the set rotation angle, the value is rewritten in the RAM 191, and the process returns. I do. In this case, the original image 205 shown in FIG. 8 is rotated to become the image 213, or the original image 207 is rotated to become the image 215, and the image data in which the top of the image is turned to the left is transmitted to the printer 3. Will be.
【0060】ステップS82において「Y」と判断、す
なわち設定された回転角度が90°もしくは270°で
あると判断した場合は、そのままリターンする。この場
合は、図8の原稿画像206が回転されて画像214と
なる、もしくは原稿画像208が回転されて画像216
の状態となる場合であり、設定された回転角度で画像デ
ータを回転させると、原稿の天が上向きに向くことにな
る。If "Y" is determined in step S82, that is, if it is determined that the set rotation angle is 90 ° or 270 °, the process returns. In this case, the original image 206 shown in FIG. 8 is rotated to become an image 214, or the original image 208 is rotated to become the image 216.
When the image data is rotated at the set rotation angle, the top of the document faces upward.
【0061】ステップS78において原稿が縦方向でな
い、すなわち横方向であると判断した場合には(ステッ
プS78で「N」)、プリンタ3に横方向にセットされ
た用紙があるか否かを判断し(ステップS83)、ある
と判断した場合には(ステップS83で「Y」)、設定
された回転角度が90°もしくは270°であるか否か
を判断する(ステップS84)。回転角度が0°もしく
は180°である場合は(ステップS84で「N」)、
そのままリターンする。この場合は、図8の「原稿を横
で読み取った場合」の原稿画像201が画像217とな
る、もしくは原稿画像203が回転されて画像219と
なる場合である。一方、設定された回転角度が90°も
しくは270°の場合は(ステップS84で「Y」)、
ステップS81に移る。この場合は、図8の原稿画像2
02が回転されて画像218となる、もしくは原稿画像
204が画像220の状態となる場合である。If it is determined in step S78 that the document is not in the vertical direction, that is, in the horizontal direction ("N" in step S78), it is determined whether or not there is a sheet set in the printer 3 in the horizontal direction. (Step S83) If it is determined that there is (“Y” in Step S83), it is determined whether the set rotation angle is 90 ° or 270 ° (Step S84). If the rotation angle is 0 ° or 180 ° (“N” in step S84),
Return as it is. In this case, the original image 201 of “when the original is read horizontally” in FIG. 8 becomes the image 217, or the original image 203 is rotated to become the image 219. On the other hand, when the set rotation angle is 90 ° or 270 ° (“Y” in step S84),
It moves to step S81. In this case, the original image 2 shown in FIG.
02 is rotated to become the image 218, or the original image 204 becomes the image 220.
【0062】一方、プリンタ3に横方向の用紙がセット
されていない、すなわち縦方向の用紙があると判断した
場合には(ステップS83で「N」)、ステップS82
に移って、設定された回転角度が90°もしくは270
°であるか否かを判断する。回転角度が0°もしくは1
80°である場合は(S82で「N」)、ステップS8
1に移る。この場合は、図8の原稿画像201が回転さ
れて画像221の状態となる、もしくは原稿画像203
が回転されて画像223の状態となる場合である。回転
角度が90°もしくは270°の場合は(ステップS8
2で「Y」)、そのままリターンする。この場合は、図
8の原稿画像202が回転されて画像222となる、も
しくは原稿画像204が回転されて画像224の状態と
なる場合である。On the other hand, if it is determined that the paper in the horizontal direction is not set in the printer 3, that is, it is determined that the paper in the vertical direction is present ("N" in step S83), the process proceeds to step S82.
And the set rotation angle is 90 ° or 270
° is determined. Rotation angle is 0 ° or 1
If it is 80 ° (“N” in S82), step S8
Move to 1. In this case, the original image 201 shown in FIG.
Is rotated into the state of the image 223. If the rotation angle is 90 ° or 270 ° (step S8
("Y" at 2), and return as it is. In this case, the document image 202 shown in FIG. 8 is rotated to be an image 222, or the document image 204 is rotated to be in the state of an image 224.
【0063】ステップS77において、原稿と同じサイ
ズの用紙がプリンタ3にセットされていないと判断した
場合は、ステップS85に移り、プリンタ3に原稿より
も大きなサイズの用紙がセットされているか否かを判断
する。原稿よりも大きなサイズの用紙がセットされてい
ると判断した場合には(ステップS85で「Y」)、原
稿の方向が縦方向か否かを判断し(ステップS86)、
縦方向である場合は、用紙が縦方向か否かを判断する
(ステップS87)。If it is determined in step S77 that paper of the same size as the original is not set in the printer 3, the process proceeds to step S85 to determine whether paper of a size larger than the original is set in the printer 3. to decide. If it is determined that a sheet having a size larger than the document is set (“Y” in step S85), it is determined whether the document is in the vertical direction (step S86).
If the paper is in the vertical direction, it is determined whether the paper is in the vertical direction (step S87).
【0064】縦方向である場合は、原稿の長辺の長さL
と用紙の短辺の長さMを比較する(ステップS88)。
LおよびMの値は原稿および用紙サイズから取得でき
る。ここで、L<Mの場合には(ステップS88で
「Y」)、設定された回転角度が90°もしくは270
°であるか否かを判断する(ステップS89)。回転角
度が90°もしくは270°の場合は(ステップS89
で「Y」)、そのままリターンする。この場合は、図9
(a)に示すように、原稿が縦方向で読み取られ、例え
ばその画像の天が右方向を向いていた場合は、設定され
た回転角度が90°となるので(図8の原稿画像206
参照)、そのままの回転角度で画像データを回転してプ
リンタ3に送信すると、画像の天が同図の右側の出力画
像のように上向きとなってプリント出力され、例えば余
白部分をカットすればその部分を他の用途に有効に使用
することも可能となる。この処理は、原稿画像の天が左
向きの状態で原稿が読み取られた場合も同様である。In the case of the vertical direction, the length L of the long side of the document
Is compared with the length M of the short side of the sheet (step S88).
The values of L and M can be obtained from the document and paper size. Here, if L <M (“Y” in step S88), the set rotation angle is 90 ° or 270.
° is determined (step S89). If the rotation angle is 90 ° or 270 ° (step S89
"Y"), and return as it is. In this case, FIG.
As shown in (a), when the original is read in the vertical direction and the top of the image is directed to the right, for example, the set rotation angle becomes 90 ° (the original image 206 in FIG. 8).
), When the image data is rotated at the same rotation angle and transmitted to the printer 3, the top of the image is printed out with the top facing upward as shown in the output image on the right side of FIG. The part can be effectively used for other purposes. This process is the same when the document is read with the top of the document image facing left.
【0065】一方、設定された回転角度が90°もしく
は270°でない、すなわち0°もしくは180°の場
合は(ステップS89で「N」)、ステップS90に移
って、設定された回転角度に90°をプラスして、その
値をRAM191において書き換えてリターンする。こ
の場合は、図9(c)に示すように、原稿が縦方向で読
み取られ、例えばその画像の天が上方向を向いていた場
合は、設定された回転角度が0°となるので(図8の原
稿画像205参照)、90°回転させれば、画像の天が
同図の右側の出力画像のように左向きとなってプリント
出力されることになり、図8に示す例のようにプリント
出力されるときの画像の天の向きを上向きもしくは左向
きに揃えることができる。この処理は、原稿画像の天が
下向きの状態で読み取られた場合も同様である。On the other hand, if the set rotation angle is not 90 ° or 270 °, that is, 0 ° or 180 ° (“N” in step S89), the process proceeds to step S90, where the set rotation angle is set to 90 °. , The value is rewritten in the RAM 191 and the process returns. In this case, as shown in FIG. 9C, the original is read in the vertical direction. For example, when the top of the image is facing upward, the set rotation angle becomes 0 ° (see FIG. 9C). 8 is rotated by 90 °, the top of the image is printed to the left as shown in the output image on the right side of the figure, and printed as shown in the example shown in FIG. The top of the image when it is output can be aligned upward or left. This process is the same when the document image is read with the top of the document image facing down.
【0066】一方、ステップS88において、L<Mで
ない、すなわちL≧Mの場合には、設定された回転角度
が90°もしくは270°であるか否かを判断する(ス
テップS91)。回転角度が90°もしくは270°の
場合は(ステップS91で「Y」)、ステップS90に
移る。この場合は、図9(b)に示すように、例えば原
稿の画像の天が右方向を向いていた場合は、設定された
回転角度が90°となるので、さらに90°を加算して
180°回転させれば、画像の天が同図の右側の出力画
像のように左向きとなってプリント出力されることにな
り、用紙の余白部分を少なくすることができる。この処
理は、画像の天が左向きの状態で読み取られた場合も同
様である。ステップS91において「N」と判断、すな
わち回転角度が0°もしくは180°であると判断した
場合は、そのままリターンする。この場合は、図9
(d)に示すように、例えばその画像の天が上方向を向
いていた場合は、設定された回転角度が0°となるの
で、そのままの状態にすれば、画像の天が同図の右側の
出力画像のように上向きとなってプリント出力されるこ
とになる。On the other hand, if L <M is not satisfied in step S88, that is, if L ≧ M, it is determined whether the set rotation angle is 90 ° or 270 ° (step S91). If the rotation angle is 90 ° or 270 ° (“Y” in step S91), the process proceeds to step S90. In this case, as shown in FIG. 9B, for example, when the top of the image of the document is directed rightward, the set rotation angle becomes 90 °, so that 90 ° is added and 180 ° is added. When rotated, the top of the image is printed and output to the left like the output image on the right side of the figure, and the margin of the paper can be reduced. This process is the same when the image is read with the top of the image facing left. If "N" is determined in step S91, that is, if it is determined that the rotation angle is 0 ° or 180 °, the process directly returns. In this case, FIG.
As shown in (d), for example, when the top of the image is facing upward, the set rotation angle is 0 °. Is printed upward with an upward facing image as shown in FIG.
【0067】また、ステップS87において、用紙が縦
方向でない、すなわち横方向であると判断した場合は、
ステップS92において、L<Mであるか否かを判断す
る。L<Mの場合は(ステップS92で「Y」)、ステ
ップS91において回転角度が90°もしくは270°
であるか否かを判断し、90°もしくは270°と判断
した場合は(ステップS91で「Y」)、ステップS9
0に移る。この場合は、図10(a)に示すように、例
えばその画像の天が右方向を向いていた場合は、設定さ
れた回転角度が90°となるので、さらに90°をプラ
スして180°回転させれば、画像の天が同図の右側の
出力画像のように左向きとなってプリント出力されるこ
とになる。ステップS91において「N」と判断、すな
わち回転角度が0°もしくは180°と判断した場合
は、そのままリターンする。この場合は、図10(c)
に示すように、例えばその画像の天が上方向を向いてい
た場合は、設定された回転角度が0°となるので、その
ままの状態にすれば、画像の天が同図の右側の出力画像
のように上向きとなってプリント出力されることにな
る。If it is determined in step S87 that the sheet is not in the vertical direction, that is, in the horizontal direction,
In step S92, it is determined whether L <M. If L <M (“Y” in step S92), the rotation angle is 90 ° or 270 ° in step S91.
Is determined, and if it is determined to be 90 ° or 270 ° (“Y” in step S91), the process proceeds to step S9.
Move to 0. In this case, as shown in FIG. 10A, for example, when the top of the image is directed to the right, the set rotation angle is 90 °, so that 90 ° is added and 180 ° is added. When rotated, the top of the image is printed and output to the left as in the output image on the right side of FIG. If "N" is determined in step S91, that is, if the rotation angle is determined to be 0 ° or 180 °, the process directly returns. In this case, FIG.
As shown in the figure, for example, if the top of the image is facing upward, the set rotation angle is 0 °, so if left as it is, the top of the image will be the output image on the right side of FIG. Will be printed upward.
【0068】一方、ステップS92において、L<Mで
ない、すなわちL≧Mの場合には、ステップS89に移
って、回転角度が90°もしくは270°であるか否か
を判断し、90°もしくは270°の場合は(ステップ
S89で「Y」)、そのままリターンする。この場合
は、図10(b)に示す例になる。また、90°もしく
は270°でない場合は(ステップS89で「N」)、
ステップS90に移る。この場合は、図10(d)に示
す例となる。On the other hand, if L <M is not satisfied in step S92, that is, if L ≧ M, the process proceeds to step S89 to determine whether or not the rotation angle is 90 ° or 270 °. In the case of ° (“Y” in step S89), the process returns. In this case, an example shown in FIG. If it is not 90 ° or 270 ° (“N” in step S89),
Move to step S90. In this case, an example shown in FIG.
【0069】上記ステップS86で原稿が縦方向でな
い、すなわち横方向であると判断した場合は、用紙が横
方向か否かを判断する(ステップS93)。横方向であ
る場合は、ステップS94において、L<Mであるか否
かを判断する。L<Mの場合は(ステップS94で
「Y」)、ステップS95において回転角度が90°も
しくは270°であるか否かを判断し、90°もしくは
270°の場合は、そのままリターンする。また、ステ
ップS95で「N」と判断、すなわち回転角度が0°も
しくは180°と判断した場合は、ステップS96に移
って、設定された回転角度に90°をプラスして、その
値をRAM191において書き換えてリターンする。こ
れにより、原稿画像の天は、左方向に向けられることに
なる。このように、原稿が横方向の場合でも、上記縦方
向の場合と同様に、原稿画像の天が上方向もしくは左方
向に向けられるように画像が回転されることになる。If it is determined in step S86 that the document is not in the vertical direction, that is, in the horizontal direction, it is determined whether the sheet is in the horizontal direction (step S93). If it is in the horizontal direction, it is determined in step S94 whether L <M. If L <M (“Y” in step S94), it is determined in step S95 whether the rotation angle is 90 ° or 270 °. If 90 ° or 270 °, the process returns. If "N" is determined in step S95, that is, if the rotation angle is determined to be 0 ° or 180 °, the process proceeds to step S96, where 90 ° is added to the set rotation angle, and the value is stored in the RAM 191. Rewrite and return. As a result, the top of the document image is turned to the left. As described above, even when the document is in the horizontal direction, the image is rotated so that the top of the document image is directed upward or leftward, as in the case of the vertical direction.
【0070】ステップS94で「N」と判断、すなわち
L≧Mであると判断した場合は、ステップS98におい
て、回転角度が90°もしくは270°であるか否かを
判断し、90°もしくは270°と判断した場合は(ス
テップS98で「Y」)、ステップS96に移る。これ
により、原稿画像の天は、左方向に向けられることにな
る。一方、回転角度が0°もしくは180°と判断した
場合は(ステップS98で「N」)、そのままリターン
する。これにより、原稿画像の天は上方向に向けられる
ことになる。If "N" is determined in step S94, that is, if L ≧ M, it is determined in step S98 whether the rotation angle is 90 ° or 270 °, and 90 ° or 270 ° is determined. Is determined (“Y” in step S98), the process proceeds to step S96. As a result, the top of the document image is turned to the left. On the other hand, when it is determined that the rotation angle is 0 ° or 180 ° (“N” in step S98), the process returns. As a result, the top of the document image is directed upward.
【0071】上記ステップS93で「N」と判断、すな
わち用紙が縦方向であると判断した場合は、ステップS
97において、L<Mであるか否かを判断する。L<M
の場合は(ステップS97で「Y」)、ステップS98
において回転角度が90°もしくは270°であるか否
かを判断し、90°もしくは270°の場合は、ステッ
プS96に移る。これにより、原稿画像の天は、左方向
に向けられることになる。また、ステップS98で
「N」と判断、すなわち回転角度が0°もしくは180
°であると判断した場合は、そのままリターンする。こ
れにより、原稿画像の天は上方向に向けられることにな
る。If "N" is determined in step S93, that is, if it is determined that the paper is in the vertical direction, the process proceeds to step S93.
At 97, it is determined whether L <M. L <M
Is satisfied (“Y” in step S97), step S98
It is determined whether or not the rotation angle is 90 ° or 270 °, and if it is 90 ° or 270 °, the process moves to step S96. As a result, the top of the document image is turned to the left. Further, it is determined as “N” in step S98, that is, the rotation angle is 0 ° or 180 °.
If it is determined that the angle is °, the routine returns. As a result, the top of the document image is directed upward.
【0072】一方、ステップS97で「N」と判断、す
なわちL≧Mであると判断した場合は、ステップS89
に移り、回転角度が90°もしくは270°であるか否
かを判断し、90°もしくは270°の場合は(ステッ
プS89で「Y」)、そのままリターンする。これによ
り、原稿画像の天は、上方向に向けられることになる。
一方、回転角度が0°もしくは180°と判断した場合
は(ステップS89で「N」)、ステップS90に移
る。これにより、原稿画像の天は左方向に向けられるこ
とになる。On the other hand, if "N" is determined in step S97, that is, if L ≧ M is satisfied, step S89 is performed.
It is determined whether the rotation angle is 90 ° or 270 °, and if it is 90 ° or 270 ° (“Y” in step S89), the process returns. As a result, the top of the document image is directed upward.
On the other hand, when the rotation angle is determined to be 0 ° or 180 ° (“N” in step S89), the process proceeds to step S90. As a result, the top of the document image is turned to the left.
【0073】なお、ステップS71において、方向判別
フラグが「1」でない、すなわち「0」であると判断し
た場合は、自身で画像方向判別処理を行わないことか
ら、回転角度の設定を行わず、メインルーチンにリター
ンする。また、ステップS75において、回転フラグが
「1」でない、すなわち「0」であることを判断する
と、自身で画像回転を行わないので回転角度として0°
を設定して(ステップS76)、メインルーチンにリタ
ーンする。If it is determined in step S71 that the direction discrimination flag is not "1", that is, it is "0", since the image direction discrimination processing is not performed by itself, the rotation angle is not set. Return to the main routine. If it is determined in step S75 that the rotation flag is not “1”, that is, “0”, the image is not rotated by itself, so that the rotation angle is 0 °.
Is set (step S76), and the process returns to the main routine.
【0074】また、ステップS85において、原稿より
も大きなサイズの用紙がプリンタにセットされていな
い、すなわち小さい用紙しかセットされていないことを
判断すると、いずれの方向に回転してもプリント処理で
きないが、設定された回転角度で回転させるべく、その
ままリターンする。なお、この場合に回転処理に要する
時間を考慮して、回転させないように回転角度を0°に
設定することもできる。If it is determined in step S85 that a sheet larger than the original is not set in the printer, that is, only a sheet smaller than the original is set, the printing process cannot be performed in either direction. It returns as it is to rotate it at the set rotation angle. In this case, in consideration of the time required for the rotation process, the rotation angle can be set to 0 ° so as not to rotate.
【0075】図11は、画像回転処理のサブルーチンの
フローチャートである。同図に示すように、CPU18
0は、まず回転フラグが「1」であるか否かを判断する
(ステップS101)。回転フラグが「1」であると判
断した場合は(ステップS101で「Y」)、、上記回
転角度決定処理において設定され、RAM191に格納
されている回転角度の情報を読み出す。そして、読み出
した回転角度の情報に応じて画像データを回転すべく、
回転処理部130に対し、読み出すべき原稿のページ数
と、その原稿に対する回転角度とを関連付けた回転角情
報を送出して、画像データの回転を行わせた後、その画
像データを出力部150に転送させ(ステップS10
2)、メインルーチンにリターンする。FIG. 11 is a flowchart of a subroutine of the image rotation processing. As shown in FIG.
If it is 0, it is determined whether the rotation flag is "1" (step S101). If it is determined that the rotation flag is “1” (“Y” in step S101), information on the rotation angle set in the rotation angle determination processing and stored in the RAM 191 is read. Then, in order to rotate the image data according to the read rotation angle information,
The rotation processing unit 130 transmits rotation angle information in which the number of pages of the document to be read and the rotation angle with respect to the document are transmitted, and after rotating the image data, the image data is output to the output unit 150. Transfer (step S10
2) Return to the main routine.
【0076】一方、回転フラグが「1」でない、すなわ
ち「0」であると判断した場合は(ステップS101で
「N」)、メインルーチンにリターンするが、その際、
回転角度として0°を示す回転角情報を送出して、画像
データを回転させないで出力部150に転送させる。図
12は、画像出力処理のサブルーチンを示すフローチャ
ートである。On the other hand, if it is determined that the rotation flag is not "1", that is, it is "0"("N" in step S101), the process returns to the main routine.
The rotation angle information indicating 0 ° as the rotation angle is transmitted, and the image data is transferred to the output unit 150 without being rotated. FIG. 12 is a flowchart showing a subroutine of the image output process.
【0077】同図に示すように、CPU180は、まず
方向判別フラグが「1」であるか否かを判断する(ステ
ップS111)。方向判別フラグが「1」であることを
判断すると(ステップS111で「Y」)、方向情報付
加フラグが「1」であるか否かを判断する(ステップS
112)。方向情報付加フラグが「1」であると判断し
た場合は(ステップS112で「Y」)、自身で画像方
向判別を行ったが、画像回転を行わなかったことになる
ので、各ページに対して判別された画像の方向をRAM
191から読み出して、出力部150に対し、この方向
情報をタグ情報として各ページの原稿の画像データに付
加するように指示する(ステップS113)。As shown in the figure, the CPU 180 first determines whether or not the direction discrimination flag is "1" (step S111). When it is determined that the direction determination flag is “1” (“Y” in step S111), it is determined whether the direction information addition flag is “1” (step S111).
112). If it is determined that the direction information addition flag is “1” (“Y” in step S112), the image direction is determined by itself, but image rotation has not been performed. RAM stores the determined image direction
191 and instructs the output unit 150 to add the direction information as tag information to the image data of the document of each page (step S113).
【0078】一方、方向情報付加フラグが「1」でな
い、すなわち「0」であると判断した場合は(ステップ
S112で「N」)、自身で画像回転を行なったことに
なるので、出力部150に対し、画像回転済みであるこ
とを示す回転情報をタグ情報として各ページの原稿の画
像データに付加するように指示する(ステップS11
4)。この場合に、天揃えフラグが「1」になっていれ
ば、全ての原稿の天の方向が上方向に向いている状態で
回転処理がなされていることになる。一方、天揃えフラ
グが「0」になっていれば、プリンタ3にセットされて
いる用紙の方向に合うように回転処理がなされているこ
とになる。On the other hand, if it is determined that the direction information addition flag is not "1", that is, it is "0"("N" in step S112), it means that the image has been rotated by itself, and the output unit 150 Is instructed to add rotation information indicating that the image has been rotated to the image data of the document of each page as tag information (step S11).
4). In this case, if the top alignment flag is “1”, it means that the rotation process has been performed in a state where the tops of all the originals are facing upward. On the other hand, if the top alignment flag is “0”, it means that the rotation processing has been performed so as to match the direction of the paper set in the printer 3.
【0079】また、ステップS111において、方向判
別フラグが「1」でない、すなわち「0」であると判断
した場合は、出力部150に対し、画像方向判別してい
ない(画像回転もしていない)旨を示すタグ情報を各ペ
ージの画像データに付加するように指示する(ステップ
S116)。そして、タグ情報を付加した画像データを
I/F部39、LAN4を介してプリンタ3に送出させ
て(ステップS115)、メインルーチンにリターンす
る。If it is determined in step S111 that the direction determination flag is not "1", that is, it is "0", the output unit 150 is informed that the image direction has not been determined (the image has not been rotated). Is instructed to add the tag information indicating to the image data of each page (step S116). Then, the image data to which the tag information is added is transmitted to the printer 3 via the I / F unit 39 and the LAN 4 (step S115), and the process returns to the main routine.
【0080】プリンタ3は、複写機1からの画像データ
をLAN4を介して受信すると、当該画像データに付加
されているタグ情報を参照して画像データの回転等の処
理を行った後、その画像データに基づいてプリント出力
を実行する。すなわち、タグ情報として方向情報が付加
されていた場合には、画像方向判別だけが行われたこと
になるので、その方向情報から画像の方向を判断し、必
要な回転角度を決定して、その回転角度で画像データを
回転させてからプリント出力を行う。また、タグ情報と
して回転情報が付加されていた場合には、画像回転が行
われていることになるので回転の必要がなくプリント出
力を行う。また、タグ情報として画像方向判別が行われ
ていない旨の情報が付加されていた場合は、自身で画像
方向判別および回転処理を行ってプリント出力する。When the printer 3 receives the image data from the copier 1 via the LAN 4, the printer 3 performs processing such as rotation of the image data with reference to the tag information added to the image data, and then performs the processing on the image data. Execute printout based on the data. That is, when the direction information is added as the tag information, only the image direction determination is performed, so the direction of the image is determined from the direction information, and the necessary rotation angle is determined. Print output is performed after rotating the image data by the rotation angle. If the rotation information is added as the tag information, the image is rotated, so that the print is output without the need for the rotation. If information indicating that image direction determination has not been performed is added as tag information, image direction determination and rotation processing are performed by itself, and printed out.
【0081】これまでは、画像データを送信する場合の
処理について説明してきたが、本複写機1が受信側とな
ったときの画像データの受信処理(画像受信処理)の内
容を図13を用いて説明する。まず、CPU180は、
送信側、例えばスキャナ2から能力情報の送信要求を受
けると、これをスキャナ2に送信する(ステップS20
1)。The processing for transmitting image data has been described above. The contents of the image data receiving processing (image receiving processing) when the copying machine 1 is on the receiving side will be described with reference to FIG. Will be explained. First, the CPU 180
Upon receiving a transmission request of the capability information from the transmission side, for example, the scanner 2, it transmits this to the scanner 2 (step S20).
1).
【0082】スキャナ2から画像データを受信すると、
I/F部39、入力部115(図3)を介してページ毎
に高解像度画像メモリ120に格納していく(ステップ
S202、S203)。CPU180は、画像データに
付加されているタグ情報を入力部115から受信し、そ
の内容を参照する(ステップS204)。When image data is received from the scanner 2,
The data is stored in the high-resolution image memory 120 for each page via the I / F unit 39 and the input unit 115 (FIG. 3) (steps S202 and S203). The CPU 180 receives the tag information added to the image data from the input unit 115, and refers to the content (step S204).
【0083】そして、画像方向判別が必要であるか否か
を判断する(ステップS205)。この判断は、タグ情
報として画像方向判別が行われていない旨の情報が付加
されていたか否かで行われる。すなわち、当該情報が付
加されていた場合は、画像方向判別が行われていないこ
とになるので、画像方向判別を必要と判断し(ステップ
S205で「Y」)、画像方向の判別を行う(ステップ
S206)。この画像方向の判別は、上記画像送信処理
の画像方向判別処理と同様の方法で行う。Then, it is determined whether or not it is necessary to determine the image direction (step S205). This determination is made based on whether information indicating that the image direction has not been determined is added as tag information. That is, if the information is added, it means that the image direction has not been determined, so that it is determined that the image direction needs to be determined (“Y” in step S205), and the image direction is determined (step S205). S206). The determination of the image direction is performed by the same method as the image direction determination processing of the image transmission processing.
【0084】一方、ステップS205において画像方向
判別が必要でないと判断した場合は(ステップS205
で「N」)、画像回転が必要であるか否かを判断する
(ステップS207)。この判断は、タグ情報として方
向情報と回転情報のいずれが付加されていたかを判断す
ることにより行う。すなわち、方向情報が付加されてい
た場合は、画像方向判別は行われたが、画像回転は行わ
れていないことになるので、画像回転を必要と判断し
(ステップS207で「Y」)、方向情報による画像の
方向に基づいて回転角度を決定する(ステップS20
8)。決定された回転角度に応じて画像を回転させ(ス
テップS209)、その画像データに基づいてプリンタ
部50においてプリント出力を行う(ステップS21
0)。On the other hand, if it is determined in step S205 that it is not necessary to determine the image direction (step S205)
, "N"), and determines whether image rotation is necessary (step S207). This determination is made by determining which of the direction information and the rotation information has been added as the tag information. That is, when the direction information is added, the image direction is determined, but the image is not rotated. Therefore, it is determined that image rotation is necessary (“Y” in step S207), and the direction is determined. The rotation angle is determined based on the direction of the image based on the information (step S20)
8). The image is rotated according to the determined rotation angle (step S209), and the printer unit 50 performs print output based on the image data (step S21).
0).
【0085】ステップS207において、回転情報が付
加されていた場合は、画像回転が必要でないと判断し、
ステップS210に移り、その画像データに基づいてプ
リント出力を行う。以上説明したように、本実施の形態
では、画像データを外部装置に出力する場合、自身と外
部装置における画像方向判別処理および画像回転処理の
処理能力として処理速度をそれぞれ比較し、処理速度の
早い方の装置で当該処理を実行するようにしている。こ
れにより、例えば送信側よりも受信側の装置の方が画像
方向判別処理の処理速度が早いのに、送信側の装置が独
自に当該処理を行うために合理的でなく処理時間が長く
なるという従来の問題が生ぜず、画像方向判別処理等に
要する時間を短縮でき、全体的にみればプリント処理時
間の短縮を図れるという効果を奏する。If rotation information has been added in step S207, it is determined that image rotation is not necessary, and
The process proceeds to step S210, and prints out based on the image data. As described above, in the present embodiment, when outputting image data to an external device, the processing speed is compared as the processing capability of the image direction discrimination process and the image rotation process between itself and the external device. The device performs the process. Accordingly, for example, although the processing speed of the image direction discrimination process is faster in the receiving device than in the transmitting device, it is not reasonable and the processing time is longer because the transmitting device independently performs the process. This eliminates the problem of the related art, reduces the time required for the image direction discrimination processing and the like, and has the effect of shortening the print processing time as a whole.
【0086】なお、本実施の形態では、ステップS1の
能力識別処理では、1通信毎(1ジョブ毎)に相手先の
能力情報を受信するようにしたが(ステップS12)、
これに限られず、相手先の能力が頻繁に変化することは
少ないと考えれば、例えば所定のジョブ数毎や前回の通
信から所定時間、例えば1日以上経過したときにだけ能
力情報を受信するようにすることもできる。この場合
は、取得した能力情報をEEPROMなどの不揮発性メ
モリに格納しておき、能力情報を受信しないときには当
該メモリから情報を読み出して参照し、新たに能力情報
を受信すると上書きしていくようにすればよい。In the present embodiment, in the capability identification process in step S1, the capability information of the other party is received for each communication (each job) (step S12).
The present invention is not limited to this. If it is considered that the capability of the other party does not frequently change, the capability information may be received only, for example, every predetermined number of jobs or when a predetermined time, for example, one day or more has passed since the last communication. You can also In this case, the acquired capability information is stored in a nonvolatile memory such as an EEPROM, and when the capability information is not received, the information is read out from the memory and referred to, and when new capability information is received, the information is overwritten. do it.
【0087】また、本実施の形態では、送信側と受信側
の双方の装置が画像方向判別処理と画像回転処理を行え
る構成にしたが、このような構成に限られず、例えば一
方の装置が画像方向判別処理だけを行え、他方の装置が
両方の処理を行える構成の場合、および送信側と受信側
の双方の装置が画像方向判別処理だけを行える構成の場
合であっても、本発明を適用することができる。In the present embodiment, both the transmitting and receiving apparatuses can perform the image direction determination processing and the image rotation processing. However, the present invention is not limited to such a configuration. The present invention can be applied to a case where only the direction determination process can be performed and the other device can perform both processes, and a case where both the transmission side and the reception side devices can only perform the image direction determination process. can do.
【0088】また、上記では、画像方向判別処理を複写
機と外部装置のいずれの装置で行うかを処理能力として
当該処理の処理速度を比較することで決定したが、これ
に限られず、例えば画像方向判別の精度(正確度)を比
較するようにしてもよい。画像方向判別処理には、上記
のヒストグラムを生成する方法以外に、例えば特開平4
−229763号公報に開示されているように、文字デ
ータを切り出して、これに対応する文字データ(比較用
文字)を予めメモリに記憶しておいたパターン辞書から
見つけ出し、比較用文字を90°ずつ回転させては、切
り出しデータと比較し、一致した時点での角度を切り出
し文字の向きとして画像方向を判別する方法を用いるこ
ともできる。この方法は、文字を切り出すことにより処
理が複雑となるが精度が高くなる。これより、双方の装
置においてどの方法で当該処理が行われるかを比較し、
精度の高い方の装置で当該処理を実行させることもでき
る。また、双方の装置で、処理方法が異なる場合には、
当該処理に係る時間を能力情報として取得するようにし
て、処理時間が短くなる方の装置で当該処理を実行する
ようにしてもよい。In the above description, whether the image direction discriminating process is performed by the copier or the external device is determined by comparing the processing speed of the process as the processing capability. However, the present invention is not limited to this. The accuracy (accuracy) of the direction determination may be compared. In the image direction discrimination process, besides the above-described method of generating a histogram, for example,
As disclosed in Japanese Unexamined Patent Publication No. 229763, character data is cut out, and character data (comparison characters) corresponding to the character data is found from a pattern dictionary stored in a memory in advance, and the comparison characters are separated by 90 °. After the rotation, a method of comparing the extracted data with the extracted data and determining the image direction as the direction of the extracted character at the time of coincidence may be used. In this method, processing is complicated by cutting out characters, but accuracy is increased. From this, it is possible to compare which method is used in both the devices,
The processing can be executed by a device with higher accuracy. If the processing method is different between both devices,
The time related to the process may be acquired as capability information, and the process may be executed by a device that shortens the process time.
【0089】また、本実施の形態では、本発明に係る画
像処理装置を複写機に適用した例について説明したが、
本発明に係る画像処理装置は、少なくとも画像方向判別
機能を有し、受け付けた画像データを通信可能に接続さ
れた外部装置に出力する装置一般、例えば画像形成装
置、スキャナ、PC、ファクシミリなどに適用すること
が可能である。In the present embodiment, an example in which the image processing apparatus according to the present invention is applied to a copying machine has been described.
The image processing apparatus according to the present invention has at least an image direction discriminating function, and is applied to general apparatuses that output received image data to an external device communicably connected, for example, an image forming apparatus, a scanner, a PC, a facsimile, and the like. It is possible to
【0090】また、通信可能に接続された画像データ送
信装置と画像データ受信装置とからなる画像処理システ
ムとしての適用も可能である。Further, application as an image processing system including an image data transmitting device and an image data receiving device communicably connected is also possible.
【0091】[0091]
【発明の効果】以上説明してきたように本発明にかかる
画像処理装置によれば、端末装置の画像方向判別手段の
処理能力と、自身の画像方向判別手段の処理能力とを比
較し、比較結果に応じて画像方向判別処理を自身と端末
装置のいずれで行うかを決定する決定手段を備えるの
で、画像方向判別手段の処理速度の早いほうの装置で当
該処理を行うことが可能となり、例えば端末装置の方が
画像方向判別処理の処理速度が早いのに、送信側で独自
に当該処理を行うために処理時間が長くなるという従来
の問題が生ぜず、当該処理に要する時間の短縮を図れる
という効果を奏する。As described above, according to the image processing apparatus of the present invention, the processing capability of the image direction determining means of the terminal device is compared with the processing capability of its own image direction determining means, and the comparison result is obtained. , The image direction discriminating process is performed by itself or the terminal device, so that the device with the faster processing speed of the image direction discriminating device can perform the process. Although the processing speed of the image direction discriminating process is faster in the device, the conventional problem that the processing time is longer because the transmitting side independently performs the process does not occur, and the time required for the process can be reduced. It works.
【図1】本発明にかかる画像処理装置を備えた複写機の
全体の構成を示す図である。FIG. 1 is a diagram showing an overall configuration of a copying machine provided with an image processing apparatus according to the present invention.
【図2】上記複写機がLANを介して外部装置と接続さ
れている様子を示す図である。FIG. 2 is a diagram showing a state in which the copying machine is connected to an external device via a LAN.
【図3】上記複写機の制御部の構成を示すブロック図で
ある。FIG. 3 is a block diagram showing a configuration of a control unit of the copying machine.
【図4】画像送信処理の全体の動作を示すフローチャー
トである。FIG. 4 is a flowchart illustrating an overall operation of an image transmission process.
【図5】能力識別処理のサブルーチンを示すフローチャ
ートである。FIG. 5 is a flowchart illustrating a subroutine of a capability identification process.
【図6】画像方向判別処理のサブルーチンを示すフロー
チャートである。FIG. 6 is a flowchart illustrating a subroutine of an image direction determination process.
【図7】回転角度決定処理のサブルーチンを示すフロー
チャートである。FIG. 7 is a flowchart illustrating a subroutine of a rotation angle determination process.
【図8】原稿が横方向で読み取られた場合と縦方向で読
み取られた場合それぞれについて、原稿画像をプリンタ
にセットされている用紙の方向に対して回転させたとき
の様子を示す模式図である。FIG. 8 is a schematic diagram illustrating a state in which a document image is rotated with respect to the direction of a sheet set in a printer in each of a case where a document is read in a horizontal direction and a case where a document is read in a vertical direction. is there.
【図9】原稿の方向と出力される用紙の方向との関係を
示す模式図である。FIG. 9 is a schematic diagram illustrating a relationship between a direction of a document and a direction of a sheet to be output.
【図10】原稿の方向と出力される用紙の方向との関係
を示す模式図である。FIG. 10 is a schematic diagram illustrating a relationship between a direction of a document and a direction of a sheet to be output.
【図11】画像回転処理のサブルーチンを示すフローチ
ャートである。FIG. 11 is a flowchart illustrating a subroutine of an image rotation process.
【図12】画像出力処理のサブルーチンを示すフローチ
ャートである。FIG. 12 is a flowchart illustrating a subroutine of an image output process.
【図13】画像受信処理の全体の動作を示すフローチャ
ートである。FIG. 13 is a flowchart illustrating the overall operation of the image receiving process.
30 イメージリーダ部 39 I/F部 50 プリンタ部 70 給紙部 71、72 用紙カセット 90 操作パネル 100 制御部 110 画像信号処理部 115 入力部 120 高解像度画像メモリ 130 回転処理部 140 LD駆動部 150 出力部 160 解像度変換部 170 低解像度認識用メモリ 180 CPU 190 ROM 191 RAM Reference Signs List 30 image reader unit 39 I / F unit 50 printer unit 70 paper feed unit 71, 72 paper cassette 90 operation panel 100 control unit 110 image signal processing unit 115 input unit 120 high-resolution image memory 130 rotation processing unit 140 LD drive unit 150 output Unit 160 Resolution conversion unit 170 Low-resolution recognition memory 180 CPU 190 ROM 191 RAM
フロントページの続き (72)発明者 荒木 一博 大阪府大阪市中央区安土町二丁目3番13号 大阪国際ビル ミノルタ株式会社内 Fターム(参考) 5B057 CA08 CA12 CA16 CB08 CB12 CB16 CB19 CD03 DB02 DB09 DC08 5C075 CD05 5C076 AA16 AA24 BA02 BA06 Continuation of the front page (72) Inventor Kazuhiro Araki 2-3-13 Azuchicho, Chuo-ku, Osaka-shi, Osaka F-term in Osaka International Building Minolta Co., Ltd. 5B057 CA08 CA12 CA16 CB08 CB12 CB16 CB19 CD03 DB02 DB09 DC08 5C075 CD05 5C076 AA16 AA24 BA02 BA06
Claims (7)
像方向判別手段を備える端末装置と通信可能に接続され
た画像処理装置であって、 受け付けた画像データから画像の方向を判別する画像方
向判別手段と、 前記端末装置における画像方向判別手段の処理能力を取
得する第1の取得手段と、 取得された端末装置における画像方向判別手段の処理能
力と、自身の画像方向判別手段の処理能力とを比較し、
その比較結果に応じて画像方向判別処理を自身と端末装
置のいずれで行うかを決定する第1の決定手段と、 画像方向判別処理を自身で行うことが決定された場合に
は、自身の画像方向判別手段を制御して、受け付けた画
像データから画像の方向を判別させ、判別結果と当該画
像データを端末装置に出力し、端末装置側で行うことが
決定された場合には、受け付けた画像データを端末装置
に出力すると共に画像方向判別処理を端末装置側で実行
させるための指示を行う第1の出力制御手段とを備える
ことを特徴とする画像処理装置。An image processing apparatus communicably connected to a terminal device having image direction determining means for determining the direction of an image from image data, the image processing apparatus comprising: an image processing device that determines an image direction from received image data; Means, first acquiring means for acquiring the processing capability of the image direction discriminating means in the terminal device, the acquired processing capability of the image direction discriminating device in the terminal device, and the processing capability of its own image direction discriminating means. Compare,
First determining means for deciding whether to perform the image direction discrimination processing by itself or by the terminal device according to the comparison result; and By controlling the direction determination means, the direction of the image is determined from the received image data, and the determination result and the image data are output to the terminal device. An image processing apparatus comprising: first output control means for outputting data to a terminal device and instructing the terminal device to execute an image direction determination process.
像方向判別処理を自身で行うことが決定された場合に、
判別された結果を画像データに付加させる方向情報付加
手段を備えることを特徴とする請求項1に記載の画像処
理装置。2. The image processing apparatus according to claim 1, wherein the first output control unit further determines that the image direction determination processing is to be performed by itself.
The image processing apparatus according to claim 1, further comprising a direction information adding unit that adds the determined result to the image data.
像方向判別処理の処理速度のことであり、 第1の決定手段は、双方の装置の画像方向判別処理の処
理速度を比較し、処理速度が速い方の装置を画像方向判
別処理を実行する装置として決定することを特徴とする
請求項1もしくは2に記載の画像処理装置。3. The processing capability of the image direction determining means is the processing speed of the image direction determining processing, and the first determining means compares the processing speeds of the image direction determining processings of the two devices and performs processing. 3. The image processing apparatus according to claim 1, wherein the apparatus having the higher speed is determined as the apparatus that executes the image direction determination processing.
れが画像の方向判別の結果に基づき画像データの回転を
行う回転手段を備えており、 画像処理装置は、 端末装置における回転手段の処理能力を取得する第2の
取得手段と、 取得された端末装置の回転手段の処理能力と、自身の回
転手段の処理能力とを比較し、その比較結果に応じて回
転処理を自身と端末装置のいずれで行うかを決定する第
2の決定手段と、 画像方向判別処理と回転処理を自身で行うことが決定さ
れた場合には、自身の画像方向判別手段を制御して、入
力された画像データから画像の方向を判別させ、自身の
回転手段を制御して、判別された画像の方向に基づいて
入力された画像データを回転させた後、回転された画像
データを端末装置に出力する第2の出力制御手段とを備
えることを特徴とする請求項1ないし3のいずれかに記
載の画像処理装置。4. The image processing device and the terminal device each include a rotation unit that rotates image data based on a result of image direction determination, and the image processing device has a processing capability of the rotation unit in the terminal device. The second processing unit acquires the processing capability of the rotating device of the terminal device and the processing capability of the rotating device of the terminal device. A second determining unit for determining whether to perform the image direction determination, and when it is determined that the image direction determination processing and the rotation processing are to be performed by itself, the image processing apparatus controls its own image direction determination means to determine from the input image data A second method for determining the direction of the image, controlling its own rotation means, rotating the input image data based on the determined direction of the image, and outputting the rotated image data to the terminal device. Output control means Claims 1, characterized in that it comprises a to the image processing apparatus according to any one of the three.
処理速度のことであり、 第2の決定手段は、双方の装置の回転手段の処理速度を
比較し、処理速度が速い方の装置を回転処理を実行する
装置として決定することを特徴とする請求項4に記載の
画像処理装置。5. The processing capability of said rotating means refers to the processing speed of the rotation processing. The second determining means compares the processing speeds of the rotating means of both apparatuses, and determines the processing speed of the apparatus having the higher processing speed. The image processing apparatus according to claim 4, wherein is determined as a device that executes a rotation process.
基づいて用紙に画像形成を行う装置であって、 画像処理装置は、さらに、 画像が所定の方向に向くように画像データを回転させる
天揃えモードを実行するか否かを判断する判断手段と、 当該端末装置における給紙可能な用紙のサイズおよび当
該用紙の搬送方向に関する情報を取得する第3の取得手
段と、 天揃えモードを実行しないことを判断すると共に、回転
処理を自身で行うことが決定された場合には、受け付け
た画像データのサイズと方向、および第3の取得手段に
より取得された用紙のサイズと用紙の搬送方向に関する
情報とに基づいて、画像データの回転角度を決定し、回
転手段を制御して、決定された回転角度で画像データを
回転させた後、当該画像データを出力する第3の出力制
御手段とを備えることを特徴とする請求項4もしくは5
に記載の画像処理装置。6. The terminal device according to claim 1, wherein the terminal device forms an image on a sheet based on the received image data. The image processing device further includes a rotating device for rotating the image data so that the image is oriented in a predetermined direction. Determining means for determining whether or not to execute the alignment mode; third obtaining means for obtaining information on the size of paper that can be fed in the terminal device and the transport direction of the paper; and not executing the top alignment mode And if it is determined that the rotation process is to be performed by itself, information on the size and direction of the received image data and the size of the paper and the paper transport direction acquired by the third acquisition unit The rotation angle of the image data is determined based on the above, the rotation unit is controlled to rotate the image data at the determined rotation angle, and then the third image data is output. Claim, characterized in that it comprises an output control means 4 or 5
An image processing apparatus according to claim 1.
置とが通信可能に接続されてなる画像処理システムであ
って、 前記画像データ受信装置は、 画像データ送信装置から送られてくる画像データから画
像の方向を判別する第1の画像方向判別手段と、 自身が有する画像方向判別手段の処理能力を画像データ
送信装置に送信する送信手段とを備え、 前記画像データ送信装置は、 受け付けた画像データから画像の方向を判別する第2の
画像方向判別手段と、 前記画像データ受信装置からの画像方向判別手段の処理
能力を受信する受信手段と、 画像データ受信装置の画像方向判別手段の処理能力と、
自身の画像方向判別手段の処理能力とを比較し、その比
較結果に応じて画像方向判別処理を自身と画像データ受
信装置のいずれで行うかを決定する決定手段と、 画像方向判別処理を自身で行うことが決定された場合に
は、第2の画像方向判別手段を制御して、入力された画
像データから画像の方向を判別させ、判別結果と当該画
像データを画像データ受信装置に出力し、画像データ受
信装置側で行うことが決定された場合には、入力された
画像データを当該装置に出力すると共に画像方向判別処
理を当該装置側で実行させるための指示を行う出力制御
手段とを備えることを特徴とする画像処理システム。7. An image processing system in which an image data transmitting device and an image data receiving device are communicably connected to each other, wherein the image data receiving device converts an image from image data sent from the image data transmitting device. A first image direction discriminating means for discriminating the direction of the image data; and a transmitting means for transmitting the processing capability of the image direction discriminating means to the image data transmitting device. Second image direction determining means for determining the direction of the image; receiving means for receiving the processing capability of the image direction determining means from the image data receiving device; processing capability of the image direction determining means of the image data receiving device;
A determination unit that compares the processing capability of the image direction determination unit with its own and the image data reception device to perform the image direction determination process based on the comparison result; and If it is determined to perform, the second image direction determining means is controlled to determine the direction of the image from the input image data, and the determination result and the image data are output to the image data receiving device. Output control means for outputting the input image data to the image data receiving device when the image data receiving device is determined to perform the image data receiving device and instructing the image data receiving device to execute the image direction determining process on the image data receiving device. An image processing system, characterized in that:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000301428A JP2002112009A (en) | 2000-09-29 | 2000-09-29 | Image processing device and system thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000301428A JP2002112009A (en) | 2000-09-29 | 2000-09-29 | Image processing device and system thereof |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2002112009A true JP2002112009A (en) | 2002-04-12 |
Family
ID=18782965
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000301428A Pending JP2002112009A (en) | 2000-09-29 | 2000-09-29 | Image processing device and system thereof |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2002112009A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007274525A (en) * | 2006-03-31 | 2007-10-18 | Fujifilm Corp | Image processing apparatus, image processing method, image processing program, image processing system, and image processing management apparatus |
| JP2009118424A (en) * | 2007-11-09 | 2009-05-28 | Canon Inc | Transfer source drawing device, transfer destination drawing device, and information processing method |
| US7706006B2 (en) | 2004-10-21 | 2010-04-27 | Konica Minolta Business Technologies, Inc. | Image reading apparatus and information processing apparatus |
| US7751070B2 (en) * | 2003-02-28 | 2010-07-06 | Canon Kabushiki Kaisha | Image input apparatus, image output apparatus, image forming system, control method of image input apparatus, control method of image output apparatus, programs for executing these methods, storage medium for storing programs, image processing system, control method of image processing system, and program for executing control method |
| JP2012085232A (en) * | 2010-10-14 | 2012-04-26 | Fuji Xerox Co Ltd | Image processing apparatus and image processing program |
-
2000
- 2000-09-29 JP JP2000301428A patent/JP2002112009A/en active Pending
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7751070B2 (en) * | 2003-02-28 | 2010-07-06 | Canon Kabushiki Kaisha | Image input apparatus, image output apparatus, image forming system, control method of image input apparatus, control method of image output apparatus, programs for executing these methods, storage medium for storing programs, image processing system, control method of image processing system, and program for executing control method |
| US7706006B2 (en) | 2004-10-21 | 2010-04-27 | Konica Minolta Business Technologies, Inc. | Image reading apparatus and information processing apparatus |
| JP2007274525A (en) * | 2006-03-31 | 2007-10-18 | Fujifilm Corp | Image processing apparatus, image processing method, image processing program, image processing system, and image processing management apparatus |
| US8018612B2 (en) | 2006-03-31 | 2011-09-13 | Fujifilm Corporation | Image processing apparatuses, methods and systems that select an apparatus for performing image processing on an image |
| JP2009118424A (en) * | 2007-11-09 | 2009-05-28 | Canon Inc | Transfer source drawing device, transfer destination drawing device, and information processing method |
| JP2012085232A (en) * | 2010-10-14 | 2012-04-26 | Fuji Xerox Co Ltd | Image processing apparatus and image processing program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8453045B2 (en) | Apparatus, method and system for document conversion, apparatuses for document processing and information processing, and storage media that store programs for realizing the apparatuses | |
| KR100988419B1 (en) | Image processing apparatus, control method thereof, and image processing system | |
| US6546215B2 (en) | Image forming apparatus and method having document orientation control | |
| JPH0765120A (en) | Image reader and image forming device equipped with the same | |
| US6144777A (en) | Image forming apparatus having editing function | |
| JP4181661B2 (en) | Image processing apparatus, data processing method for image processing apparatus, and storage medium storing computer-readable program | |
| JP3720502B2 (en) | Image processing apparatus, image processing method in the apparatus, and computer-readable storage medium | |
| US6816273B1 (en) | Image forming method | |
| JP2002112009A (en) | Image processing device and system thereof | |
| JP4941160B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| EP2042933B1 (en) | Printing device and method therefor | |
| JP2006333352A (en) | Image forming apparatus | |
| JP2000036908A (en) | Image recognition device | |
| CN1312900C (en) | Image forming equipment | |
| JPH1146299A (en) | Image input / output processing method, image input / output processing device, image input / output processing system, and storage medium | |
| JP3629962B2 (en) | Image recognition device | |
| JP3225681B2 (en) | Image forming device | |
| JP2000083141A (en) | Image recognition device | |
| JP2004153567A (en) | Image input / output device and control method therefor, image input / output system, and control program | |
| JP2004153568A (en) | Image forming device | |
| JPH11213089A (en) | Image processing apparatus and method | |
| US11146704B2 (en) | Image forming apparatus | |
| JP7524611B2 (en) | Image forming device | |
| JP2007166516A (en) | Multifunction system operation display | |
| JP3047770B2 (en) | Facsimile machine with printer function |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20050614 |