JP6604320B2 - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
JP6604320B2
JP6604320B2 JP2016253018A JP2016253018A JP6604320B2 JP 6604320 B2 JP6604320 B2 JP 6604320B2 JP 2016253018 A JP2016253018 A JP 2016253018A JP 2016253018 A JP2016253018 A JP 2016253018A JP 6604320 B2 JP6604320 B2 JP 6604320B2
Authority
JP
Japan
Prior art keywords
data
image data
page
orientation
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2016253018A
Other languages
Japanese (ja)
Other versions
JP2018107656A (en
Inventor
ヘッセン・カネンシア
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2016253018A priority Critical patent/JP6604320B2/en
Publication of JP2018107656A publication Critical patent/JP2018107656A/en
Application granted granted Critical
Publication of JP6604320B2 publication Critical patent/JP6604320B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、原稿の読み取りを伴うジョブの実行が可能な画像形成装置に関する。   The present invention relates to an image forming apparatus capable of executing a job that involves reading a document.

原稿の読み取りを伴うジョブの実行が可能な画像形成装置には、原稿を読み取って画像データを生成する画像読取部が備えられる。原稿の読み取りを伴うジョブでは、画像形成装置に読取対象の原稿をセットする作業がユーザーによって行われる。その後、ユーザーからジョブ実行指示を受け付けると、画像読取部は、画像形成装置にセットされた原稿を読み取って画像データを生成する。なお、画像読取部は、複数枚の原稿を連続して読み取った場合、複数枚の原稿にそれぞれ対応する複数ページの画像データを1ファイルにまとめる。   An image forming apparatus capable of executing a job that involves reading a document includes an image reading unit that reads the document and generates image data. In a job that involves reading a document, a user performs an operation of setting a document to be read on the image forming apparatus. Thereafter, when receiving a job execution instruction from the user, the image reading unit reads a document set on the image forming apparatus and generates image data. Note that, when the image reading unit continuously reads a plurality of documents, the image reading unit collects a plurality of pages of image data respectively corresponding to the plurality of documents into one file.

ここで、特許文献1には、複数ページの画像データの長手方向(短手方向)を一方向に揃えることが可能な画像形成装置が開示されている。特許文献1の画像形成装置では、ジョブ実行に際し、縦方向および横方向のうちユーザー指定の方向の設定受付が行われる。そして、特許文献1の画像形成装置は、複数ページの画像データの長辺方向をユーザー指定の方向に揃える。   Here, Patent Document 1 discloses an image forming apparatus capable of aligning the longitudinal direction (short direction) of image data of a plurality of pages in one direction. In the image forming apparatus disclosed in Patent Document 1, when a job is executed, setting reception is performed in a user-specified direction among the vertical direction and the horizontal direction. The image forming apparatus disclosed in Patent Document 1 aligns the long side direction of a plurality of pages of image data with a user-specified direction.

特開平9−46507号公報JP-A-9-46507

特許文献1の画像形成装置は、ユーザー指定の方向が縦方向である場合、画像データの長手方向が縦方向と一致していれば、当該画像データを回転させず、画像データの長手方向が縦方向と一致していなければ、当該画像データを90°回転させる回転処理を行う。また、特許文献1の画像形成装置は、ユーザー指定の方向が横方向である場合、画像データの長手方向が横方向と一致していれば、当該画像データを回転させず、画像データの長手方向が横方向と一致していなければ、当該画像データを90°回転させる回転処理を行う。これにより、複数ページの画像データの長手方向(短手方向)が全てユーザー指定の方向に揃えられる。   In the image forming apparatus disclosed in Patent Document 1, when the user-specified direction is the vertical direction, if the longitudinal direction of the image data matches the longitudinal direction, the image data is not rotated and the longitudinal direction of the image data is the longitudinal direction. If it does not coincide with the direction, a rotation process for rotating the image data by 90 ° is performed. Further, in the image forming apparatus of Patent Document 1, when the user-specified direction is the horizontal direction, if the longitudinal direction of the image data matches the lateral direction, the image data is not rotated and the longitudinal direction of the image data If the image data does not match the horizontal direction, the image data is rotated by 90 °. As a result, the longitudinal direction (short direction) of the image data of a plurality of pages is all aligned with the direction designated by the user.

ここで、特許文献1の画像形成装置において、ユーザー指定の方向が縦方向であったとする。また、或るページの画像データ(ここでは第1画像データと称する)および他のページの画像データ(ここでは第2画像データと称する)のそれぞれの長手方向が縦方向であったとする。   Here, in the image forming apparatus of Patent Document 1, it is assumed that the user-specified direction is the vertical direction. Further, it is assumed that the longitudinal direction of each page of image data (referred to herein as first image data) and the image data of another page (referred to herein as second image data) is the vertical direction.

この場合、第1画像データ内の文字および第2画像データ内の文字の各向きが揃っていなくても、第1画像データおよび第2画像データの各長手方向が縦方向と一致するので、第1画像データに対する回転処理および第2画像データに対する回転処理は行われない。したがって、第1画像データ内の文字および第2画像データ内の文字の各向きを揃えるには、画像形成装置に読取対象の原稿をセットするときに、各原稿の文字の向きを一方向に揃える作業が必要となる。たとえば、各原稿の文字の向きを1枚ずつ確認する作業などを行わなければならない。このため、ユーザーにとっては煩わしく利便性が悪い。   In this case, even if the directions of the characters in the first image data and the characters in the second image data are not aligned, the longitudinal directions of the first image data and the second image data coincide with the vertical direction. The rotation process for the one image data and the rotation process for the second image data are not performed. Therefore, in order to align the orientation of the characters in the first image data and the characters in the second image data, the orientation of the characters of each document is aligned in one direction when the document to be read is set on the image forming apparatus. Work is required. For example, an operation for confirming the direction of characters of each document one by one must be performed. For this reason, it is cumbersome and inconvenient for the user.

本発明は、上記課題を解決するためになされたものであり、画像形成装置に読取対象の原稿をセットするときの作業性を向上させることが可能な画像形成装置を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image forming apparatus capable of improving workability when a document to be read is set on the image forming apparatus. .

上記目的を達成するため、本発明の画像形成装置は、複数枚の原稿を読み取って複数枚の原稿にそれぞれ対応する複数ページの画像データを生成する画像読取部と、複数ページの画像データのそれぞれについて、画像データに含まれる文字を認識するとともに、当該認識した文字の向きを画像データの向きとして判別する向き判別処理を行い、その後、複数ページの画像データのうち先頭ページの画像データを基準データに設定するとともに、複数ページの画像データの中に向き判別処理で判別した向きが基準データとは異なる画像データである異方向データが存在するか否かを判断し、異方向データが存在する場合、異方向データに対して回転処理を行うことによって異方向データを回転させ、異方向データの向きを基準データの向きと一致させる制御部と、を備える。   In order to achieve the above object, an image forming apparatus according to the present invention includes an image reading unit that reads a plurality of documents and generates a plurality of pages of image data corresponding to each of the plurality of documents, and each of the plurality of pages of image data. In addition to recognizing characters included in the image data and performing orientation determination processing for determining the orientation of the recognized characters as the orientation of the image data, the image data of the first page among the image data of a plurality of pages is then used as the reference data When the different direction data exists, it is determined whether or not there is different direction data in which the orientation determined by the orientation determination process is different from the reference data in the image data of the plurality of pages. Rotate the different direction data by rotating the different direction data so that the direction of the different direction data matches the direction of the reference data. And a control unit for.

本発明の構成では、制御部による向き判別処理によって判別される画像データの向きが画像データに含まれる文字の向きと一致する。たとえば、画像データに含まれる文字の向きが上向きであれば画像データの向きは上向きと判別される。そして、制御部は、向き判別処理で判別した向きが基準データ(先頭ページの画像データ)とは異なる異方向データが存在する場合、異方向データの向きを基準データの向きと一致させる。これにより、複数ページの画像データにそれぞれ含まれる文字の向きが先頭ページの画像データに含まれる文字の向きと同一方向に揃えられる。したがって、画像形成装置に読取対象の原稿をセットするときに、各原稿の文字の向きを一方向に揃える作業(各原稿の文字の向きを1枚ずつ確認する作業など)が不要となる。これにより、画像形成装置に読取対象の原稿をセットするときの作業性を向上させることができる。   In the configuration of the present invention, the orientation of the image data determined by the orientation determination processing by the control unit matches the orientation of the characters included in the image data. For example, if the orientation of characters included in the image data is upward, the orientation of the image data is determined as upward. Then, when there is different direction data in which the direction determined in the direction determination process is different from the reference data (first page image data), the control unit matches the direction of the different direction data with the direction of the reference data. As a result, the orientations of the characters included in the image data of the plurality of pages are aligned in the same direction as the orientations of the characters included in the image data of the first page. Therefore, when setting a document to be read on the image forming apparatus, an operation of aligning the direction of characters of each document in one direction (an operation of checking the direction of characters of each document one by one) becomes unnecessary. Thereby, it is possible to improve workability when setting a document to be read on the image forming apparatus.

本発明の構成では、画像形成装置に読取対象の原稿をセットするときの作業性を向上させることができる。   With the configuration of the present invention, it is possible to improve workability when setting a document to be read on the image forming apparatus.

本発明の一実施形態による画像形成装置の全体構成を示す図1 is a diagram illustrating an overall configuration of an image forming apparatus according to an embodiment of the present invention. 本発明の一実施形態による画像形成装置のハードウェア構成を示す図1 is a diagram illustrating a hardware configuration of an image forming apparatus according to an embodiment of the present invention. 本発明の一実施形態による画像形成装置が生成する複数ページの画像データを示す図FIG. 4 is a diagram showing a plurality of pages of image data generated by the image forming apparatus according to the embodiment of the present invention. 本発明の一実施形態による画像形成装置が生成する複数ページの画像データを示す図FIG. 4 is a diagram showing a plurality of pages of image data generated by the image forming apparatus according to the embodiment of the present invention. 本発明の一実施形態による画像形成装置が行う向き調整処理(第1処理)の流れを示すフローチャート6 is a flowchart showing a flow of orientation adjustment processing (first processing) performed by the image forming apparatus according to the embodiment of the present disclosure. 本発明の一実施形態による画像形成装置が向き調整処理(第1処理)を行うことによって向きが調整された複数ページの画像データを示す図FIG. 6 is a diagram illustrating image data of a plurality of pages whose orientations are adjusted by performing an orientation adjustment process (first process) by the image forming apparatus according to the embodiment of the present invention. 本発明の一実施形態による画像形成装置が向き調整処理(第1処理)を行うことによって向きが調整された複数ページの画像データを示す図FIG. 6 is a diagram illustrating image data of a plurality of pages whose orientations are adjusted by performing an orientation adjustment process (first process) by the image forming apparatus according to the embodiment of the present invention. 本発明の一実施形態による画像形成装置が文字認識処理を行うときに対象とする所定領域を示す図The figure which shows the predetermined area | region made into object when the image forming apparatus by one Embodiment of this invention performs a character recognition process 本発明の一実施形態による画像形成装置が行う向き調整処理(第2処理)の流れを示すフローチャート6 is a flowchart showing a flow of orientation adjustment processing (second processing) performed by the image forming apparatus according to the embodiment of the present disclosure. 本発明の一実施形態による画像形成装置が向き調整処理(第2処理)を行うことによって向きが調整された複数ページの画像データを示す図FIG. 6 is a diagram showing image data of a plurality of pages whose orientation is adjusted by the orientation adjustment processing (second processing) performed by the image forming apparatus according to the embodiment of the present invention.

<装置構成>
図1に示すように、本実施形態の画像形成装置100は、画像読取部10および印刷部20を備える。画像読取部10は、原稿Dの読み取りを伴うジョブの実行時に原稿Dを読み取って原稿Dの画像データを生成する。印刷部20は、用紙Pへの画像の印刷を伴うジョブの実行時に画像を形成して用紙Pに印刷する。
<Device configuration>
As shown in FIG. 1, the image forming apparatus 100 of this embodiment includes an image reading unit 10 and a printing unit 20. The image reading unit 10 reads the document D when executing a job that involves reading the document D, and generates image data of the document D. The printing unit 20 forms an image and prints it on the paper P when a job involving printing of the image on the paper P is executed.

画像読取部10は、ランプ11やイメージセンサー12などの光学系部材を含み、原稿Dを光学的に読み取る。ランプ11やイメージセンサー12などの光学系部材は、画像読取部10の筐体(読取筐体)の内部に収容される。なお、読取筐体の上面には、コンタクトガラスG1およびG2が嵌め込まれる。コンタクトガラスG1は搬送読取用のコンタクトガラスであり、コンタクトガラスG2は載置読取用のコンタクトガラスである。   The image reading unit 10 includes optical members such as a lamp 11 and an image sensor 12, and optically reads the document D. Optical system members such as the lamp 11 and the image sensor 12 are accommodated in a housing (reading housing) of the image reading unit 10. Note that contact glasses G1 and G2 are fitted on the upper surface of the reading housing. The contact glass G1 is a contact glass for conveyance reading, and the contact glass G2 is a contact glass for placement reading.

また、画像読取部10は、原稿搬送ユニット13を含む。原稿搬送ユニット13は、読取筐体の上面に対して開閉可能に支持される。原稿搬送ユニット13には、原稿搬送路13P、原稿セットトレイ131および原稿排出トレイ132が設けられる。原稿搬送路13Pは、原稿セットトレイ131から、コンタクトガラスG1上の所定位置を経由し、原稿排出トレイ132に至る。そして、原稿搬送ユニット13は、原稿セットトレイ131にセットされた原稿Dを原稿搬送路13Pに給紙するとともに、原稿搬送路13Pに沿って原稿Dを搬送し、原稿排出トレイ132に原稿Dを排出する。   The image reading unit 10 includes a document transport unit 13. The document transport unit 13 is supported to be openable and closable with respect to the upper surface of the reading housing. The document transport unit 13 is provided with a document transport path 13P, a document set tray 131, and a document discharge tray 132. The document transport path 13P extends from the document set tray 131 to the document discharge tray 132 via a predetermined position on the contact glass G1. The document transport unit 13 feeds the document D set on the document set tray 131 to the document transport path 13P, transports the document D along the document transport path 13P, and places the document D on the document discharge tray 132. Discharge.

搬送読取では、ユーザーによって原稿セットトレイ131に原稿Dがセットされる。原稿搬送ユニット13は、原稿セットトレイ131の原稿Dを原稿搬送路13Pに給紙し、原稿搬送路13Pに沿って原稿Dを搬送する。これにより、コンタクトガラスG1上を原稿Dが通過する。そして、画像読取部10は、コンタクトガラスG1上を通過する原稿Dを読み取り、当該読み取った原稿Dの画像データを生成する。   In the conveyance reading, the document D is set on the document setting tray 131 by the user. The document transport unit 13 feeds the document D on the document set tray 131 to the document transport path 13P, and transports the document D along the document transport path 13P. As a result, the document D passes over the contact glass G1. Then, the image reading unit 10 reads the document D passing over the contact glass G1, and generates image data of the read document D.

載置読取では、ユーザーによってコンタクトガラスG2上に原稿Dがセットされる。そして、画像読取部10は、コンタクトガラスG2上にセットされた原稿Dを読み取り、当該読み取った原稿Dの画像データを生成する。このとき、コンタクトガラスG2上にセットした原稿Dを原稿搬送ユニット13によって押え付けることができる。なお、画像形成装置100には連続読取機能が搭載される。連続読取機能のオンオフ設定をオンにした場合、載置読取によって得られた複数ページの画像データを1ファイルにまとめることができる。   In the placement reading, the document D is set on the contact glass G2 by the user. The image reading unit 10 reads the document D set on the contact glass G2, and generates image data of the read document D. At this time, the document D set on the contact glass G <b> 2 can be pressed by the document transport unit 13. The image forming apparatus 100 is equipped with a continuous reading function. When the ON / OFF setting of the continuous reading function is turned on, a plurality of pages of image data obtained by the placement reading can be combined into one file.

印刷部20は、用紙搬送路20Pに沿って用紙Pを搬送する。また、印刷部20は、画像データ(たとえば、画像読取部10による原稿Dの読み取りによって得られた原稿Dの画像データ)に基づきトナー像を形成する。そして、印刷部20は、搬送中の用紙Pにトナー像を印刷する。印刷部20は、用紙カセットに収容された用紙Pを用紙搬送路20Pに給紙する給紙部21、トナー像を形成して用紙Pに転写する画像形成部22、および、用紙Pに転写されたトナー像を用紙Pに定着させる定着部23を含む。   The printing unit 20 transports the paper P along the paper transport path 20P. The printing unit 20 forms a toner image based on image data (for example, image data of the document D obtained by reading the document D by the image reading unit 10). Then, the printing unit 20 prints a toner image on the paper P being conveyed. The printing unit 20 is transferred to the paper feeding unit 21 that feeds the paper P stored in the paper cassette to the paper transport path 20P, the image forming unit 22 that forms a toner image and transfers the toner image onto the paper P, and is transferred to the paper P. A fixing unit 23 for fixing the toner image on the paper P.

なお、画像形成装置100には、操作パネル30が設けられる。操作パネル30は、タッチパネルディスプレイ31を含む。タッチパネルディスプレイ31は、ソフトウェアキーやメッセージなどを配した画面を表示し、表示画面(ソフトウェアキー)に対するタッチ操作をユーザーから受け付ける。また、操作パネル30は、複数のハードウェアキー32を含む。ハードウェアキー32としては、ジョブ実行指示をユーザーから受け付けるためのスタートキーなどがある。   The image forming apparatus 100 is provided with an operation panel 30. The operation panel 30 includes a touch panel display 31. The touch panel display 31 displays a screen on which software keys and messages are arranged, and accepts a touch operation on the display screen (software key) from the user. The operation panel 30 includes a plurality of hardware keys 32. The hardware key 32 includes a start key for receiving a job execution instruction from the user.

また、図2に示すように、画像形成装置100は、制御部110、記憶部120および通信部130を備える。   As illustrated in FIG. 2, the image forming apparatus 100 includes a control unit 110, a storage unit 120, and a communication unit 130.

制御部110は、画像読取部10に接続され、画像読取部10の画像読取動作(原稿搬送ユニット13の原稿搬送動作を含む)を制御する。また、制御部110は、印刷部20に接続され、印刷部20の印刷動作を制御する。さらに、制御部110は、操作パネル30に接続される。そして、制御部110は、タッチパネルディスプレイ31の表示動作を制御したり、タッチパネルディスプレイ31(ソフトウェアキー)に対するタッチ操作やハードウェアキー32に対する押下操作を検知したりする。   The control unit 110 is connected to the image reading unit 10 and controls the image reading operation of the image reading unit 10 (including the document conveying operation of the document conveying unit 13). The control unit 110 is connected to the printing unit 20 and controls the printing operation of the printing unit 20. Further, the control unit 110 is connected to the operation panel 30. Then, the control unit 110 controls the display operation of the touch panel display 31 or detects a touch operation on the touch panel display 31 (software key) or a press operation on the hardware key 32.

また、制御部110は、画像読取部10による原稿Dの読み取りによって得られた原稿Dの画像データに含まれる文字(数字や記号を含む)を認識する処理である文字認識処理を行う。なお、制御部110による文字認識処理では、たとえば、OCR(Optical Character Reader)技術が用いられる。   Further, the control unit 110 performs a character recognition process that is a process of recognizing characters (including numbers and symbols) included in the image data of the document D obtained by reading the document D by the image reading unit 10. In the character recognition process by the control unit 110, for example, an OCR (Optical Character Reader) technique is used.

制御部110に文字認識処理を行わせるため、たとえば、パターンマッチング用の文字パターン(標準パターン)を格納する文字データベースが記憶部120に記憶される。そして、制御部110は、文字認識処理を行うとき、処理対象の画像データから文字画像を抽出する。その後、制御部110は、文字データベースに格納された文字パターンと抽出文字画像とを比較する処理(マッチング処理)を行い、その比較結果に基づき文字を認識する。   In order to cause the control unit 110 to perform character recognition processing, for example, a character database that stores character patterns for pattern matching (standard patterns) is stored in the storage unit 120. And the control part 110 extracts a character image from the image data of a process target, when performing a character recognition process. Then, the control part 110 performs the process (matching process) which compares the character pattern stored in the character database with the extracted character image, and recognizes a character based on the comparison result.

制御部110は、CPU111、メモリー112および画像処理モジュール113を含む。CPU111は、制御用のプログラムやデータに基づき、画像形成装置100を制御するための処理を実行する。メモリー112は、CPU111を動作させるための制御用のプログラムやデータを記憶する。   The control unit 110 includes a CPU 111, a memory 112, and an image processing module 113. The CPU 111 executes a process for controlling the image forming apparatus 100 based on a control program and data. The memory 112 stores a control program and data for operating the CPU 111.

画像処理モジュール113は、画像データに対して種々の画像処理を行うための専用回路やメモリーを含む。原稿Dの読み取りを伴うジョブでは、画像読取部10による原稿Dの読み取りによって得られた原稿Dの画像データがメモリー112に転送され一旦格納される。そして、制御部110は、画像処理モジュール113を用いて、原稿Dの画像データに対して画像処理を行う。このとき、原稿Dの画像データを拡大/縮小する処理や原稿Dの画像データを回転させる処理などが制御部110によって行われる。そして、制御部110は、原稿Dの画像データから、ジョブで使用する出力用データを生成する。   The image processing module 113 includes a dedicated circuit and a memory for performing various image processing on the image data. In a job involving reading of the document D, the image data of the document D obtained by reading the document D by the image reading unit 10 is transferred to the memory 112 and temporarily stored. Then, the control unit 110 performs image processing on the image data of the document D using the image processing module 113. At this time, the control unit 110 performs processing for enlarging / reducing the image data of the document D, processing for rotating the image data of the document D, and the like. Then, the control unit 110 generates output data used in the job from the image data of the document D.

たとえば、制御部110は、出力用データとしてPDFデータを生成する。そして、制御部110は、通信部130を介して外部機器200にPDFデータを送信したり、記憶部120にPDFデータを格納したりする。あるいは、制御部110は、露光処理(原稿Dの画像データに基づく静電潜像を形成する処理)を制御するための露光用データを生成し、当該生成した露光用データを印刷部20(画像形成部22の露光装置)に出力する。これにより、印刷部20では、原稿Dの画像データに基づくトナー像が形成される。   For example, the control unit 110 generates PDF data as output data. Then, the control unit 110 transmits PDF data to the external device 200 via the communication unit 130 or stores PDF data in the storage unit 120. Alternatively, the control unit 110 generates exposure data for controlling exposure processing (processing for forming an electrostatic latent image based on image data of the document D), and the generated exposure data is printed in the printing unit 20 (image To the exposure device of the forming unit 22. As a result, the printing unit 20 forms a toner image based on the image data of the document D.

記憶部120は、ROM(EEPROMなど)やHDDなどの不揮発性の記憶デバイスを含む。制御部110は、記憶部120に接続され、記憶部120からのデータの読み出しや記憶部120へのデータの書き込みを行う。   The storage unit 120 includes a nonvolatile storage device such as a ROM (such as an EEPROM) or an HDD. The control unit 110 is connected to the storage unit 120, and reads data from the storage unit 120 and writes data to the storage unit 120.

通信部130は、通信回路やメモリー、通信用コネクターを含む。制御部110は、通信部130に接続され、通信部130を介して外部機器200と通信する。たとえば、画像形成装置100には、パーソナルコンピューター(画像形成装置100のユーザーにより使用されるユーザー端末)やファクシミリ装置などが通信可能に接続される。   The communication unit 130 includes a communication circuit, a memory, and a communication connector. The control unit 110 is connected to the communication unit 130 and communicates with the external device 200 via the communication unit 130. For example, a personal computer (a user terminal used by a user of the image forming apparatus 100), a facsimile machine, or the like is communicably connected to the image forming apparatus 100.

<向き調整処理>
制御部110は、原稿Dの読み取りを伴うジョブの実行指示を操作パネル30がユーザーから受け付けたとき、原稿セットトレイ131に原稿Dがセットされているか否かの判断を行う。たとえば、原稿セットトレイ131には、原稿セットトレイ131に原稿Dがセットされているか否かに応じて出力値を変化させる原稿センサー(図示せず)が設けられる。原稿センサーは制御部110に接続される。そして、制御部110は、原稿センサーの出力値に基づき、原稿セットトレイ131に原稿Dがセットされているか否かを判断する。
<Orientation adjustment processing>
The control unit 110 determines whether or not the document D is set on the document set tray 131 when the operation panel 30 receives an instruction to execute a job accompanied by reading the document D from the user. For example, the document set tray 131 is provided with a document sensor (not shown) that changes the output value depending on whether or not the document D is set on the document set tray 131. The document sensor is connected to the control unit 110. Then, control unit 110 determines whether or not document D is set on document set tray 131 based on the output value of the document sensor.

原稿セットトレイ131に原稿Dがセットされている場合、制御部110は、原稿搬送ユニット13に原稿Dを搬送させる。そして、制御部110は、コンタクトガラスG1上を通過する原稿Dを読み取る搬送読取を画像読取部10に行わせる。一方で、原稿セットトレイ131に原稿Dがセットされていない場合、制御部110は、コンタクトガラスG2上にセットされた原稿Dを読み取る載置読取を画像読取部10に行わせる。   When the document D is set on the document set tray 131, the control unit 110 causes the document transport unit 13 to transport the document D. Then, the control unit 110 causes the image reading unit 10 to perform conveyance reading for reading the document D passing over the contact glass G1. On the other hand, when the document D is not set on the document setting tray 131, the control unit 110 causes the image reading unit 10 to perform placement reading for reading the document D set on the contact glass G2.

制御部110は、原稿Dの読み取りを開始して以降、原稿Dの読み取りを終了する終了条件が満たされたか否かを判断する。たとえば、搬送読取では、制御部110は、原稿センサーの出力値に基づき原稿セットトレイ131から原稿Dが無くなったこと(未読取原稿Dが残っていないこと)を検知すると、終了条件が満たされたと判断し、原稿Dの読取完了を画像読取部10に通知する。また、連続読取機能のオンオフ設定がオンに設定された場合の載置読取では、制御部110は、原稿Dの読み取りを終了する旨を操作パネル30がユーザーから受け付けると、終了条件が満たされたと判断し、原稿Dの読取完了を画像読取部10に通知する。   The control unit 110 determines whether an end condition for ending the reading of the document D is satisfied after the reading of the document D is started. For example, in the conveyance reading, when the control unit 110 detects that the document D has disappeared from the document set tray 131 based on the output value of the document sensor (the unread document D does not remain), the end condition is satisfied. Determination is made and the image reading unit 10 is notified of the completion of reading of the document D. Further, in the placement reading when the ON / OFF setting of the continuous reading function is set to ON, when the operation panel 30 accepts from the user that the reading of the document D is finished, the control unit 110 satisfies the end condition. Determination is made and the image reading unit 10 is notified of the completion of reading of the document D.

画像読取部10による原稿Dの読み取りが完了した後、制御部110は、実行ジョブの内容に応じた画像処理を原稿Dの画像データに対して行う。ここで、画像読取部10によって複数ページの画像データが生成された場合には、複数ページの画像データの向きを調整する向き調整処理が制御部110によって行われる。そして、制御部110は、向き調整処理を行った後、複数ページの画像データに基づきジョブで使用する出力用データを生成する。   After the reading of the document D by the image reading unit 10 is completed, the control unit 110 performs image processing on the image data of the document D according to the contents of the execution job. Here, when image data of a plurality of pages is generated by the image reading unit 10, a direction adjustment process for adjusting the direction of the image data of the plurality of pages is performed by the control unit 110. Then, after performing the orientation adjustment process, the control unit 110 generates output data used in the job based on the image data of a plurality of pages.

向き調整処理の一処理として、制御部110は、複数ページの画像データのそれぞれの向きを判別する向き判別処理を行う。このとき、制御部110は、複数ページの画像データのそれぞれに対して文字認識処理を行い、各画像データに含まれる文字を認識するとともに、当該認識した文字の向き(ページの長辺の延伸方向または短辺の延伸方向に対する向き)を認識する。そして、制御部110は、各画像データに含まれる文字の向きに基づき、複数ページの画像データのそれぞれの向きを判別する。   As one process of the orientation adjustment process, the control unit 110 performs an orientation discrimination process for discriminating each orientation of the image data of a plurality of pages. At this time, the control unit 110 performs character recognition processing on each of the image data of a plurality of pages, recognizes characters included in each image data, and recognizes the direction of the recognized characters (the extending direction of the long side of the page). Or the orientation of the short side with respect to the extending direction). Then, the control unit 110 determines the orientations of the image data of a plurality of pages based on the orientations of characters included in each image data.

また、制御部110は、複数ページの画像データのそれぞれについて、対応するページの形式がポートレート形式であるかランドスケープ形式であるかを判別する。なお、ページの長辺方向(長辺の延伸方向)と当該ページ内の文字の向き(文字の上下方向)とを一致させたページの形式がポートレート形式であり、ページの短辺方向(短辺の延伸方向)と当該ページ内の文字の向き(文字の上下方向)とを一致させたページの形式がランドスケープ形式である。   Further, the control unit 110 determines, for each of a plurality of pages of image data, whether the corresponding page format is a portrait format or a landscape format. The page format in which the long side direction of the page (long side extending direction) and the direction of the characters in the page (vertical direction of the characters) match is the portrait format, and the short side direction of the page (short A landscape format is a page format in which the edge extending direction) matches the direction of characters in the page (vertical direction of the characters).

一例として、図3に示すような複数ページの画像データが制御部110による向き判別処理の対象になっているとする。この場合、1ページ目および3ページ目の各画像データの向きが上向きであると判別され、2ページ目および4ページ目の各画像データの向きが下向きであると判別される。また、1ページ目から4ページ目までの画像データにそれぞれ対応するページの形式は全てポートレート形式であると判別される。図3では、1ページ目の文字を「a」で示し、2ページ目の文字を「b」で示し、3ページ目の文字を「c」で示し、4ページ目の文字を「d」で示す。以下の説明で参照する図面についても同様である。   As an example, it is assumed that a plurality of pages of image data as shown in FIG. In this case, it is determined that the direction of the image data on the first page and the third page is upward, and the direction of the image data on the second page and the fourth page is determined to be downward. Further, it is determined that all the page formats corresponding to the image data from the first page to the fourth page are portrait formats. In FIG. 3, the first page character is indicated by “a”, the second page character is indicated by “b”, the third page character is indicated by “c”, and the fourth page character is indicated by “d”. Show. The same applies to the drawings referred to in the following description.

別の例として、図4に示すような複数ページの画像データが制御部110による向き判別処理の対象になっているとする。この場合、1ページ目の画像データの向きが上向きであると判別され、1ページ目の画像データに対応するページの形式がポートレート形式であると判別される。また、3ページ目の画像データの向きが左向きであると判別され、4ページ目の画像データの向きが右向きであると判別される。3ページ目の画像データおよび4ページ目の画像データにそれぞれ対応する各ページの形式はランドスケープ形式であると判別される。   As another example, it is assumed that a plurality of pages of image data as shown in FIG. In this case, it is determined that the orientation of the image data of the first page is upward, and the format of the page corresponding to the image data of the first page is determined to be a portrait format. Further, it is determined that the direction of the image data on the third page is leftward, and the direction of the image data on the fourth page is determined to be rightward. The format of each page corresponding to the third page image data and the fourth page image data is determined to be a landscape format.

ここで、図4に示す例では、2ページ目に着目すると、1ページ内に、ポートレート形式の領域であるポートレート領域A1(「第1領域」に相当)とランドスケープ形式の領域であるランドスケープ領域A2(「第2領域」に相当)とが混在する。このような混在ページの画像データが存在する場合、制御部110は、ポートレート領域A1およびランドスケープ領域A2のうちより大きい領域に含まれる文字の向きに基づいて、混在ページの画像データの向きを判別するとともに、混在ページの形式がポートレート形式であるかランドスケープ形式であるかを判別する。なお、変形例として、ポートレート領域A1およびランドスケープ領域A2のうち文字数がより多い領域に含まれる文字の向きに基づいて、混在ページの画像データの向きおよび混在ページの形式の判別が行われてもよい。   In the example shown in FIG. 4, focusing on the second page, the portrait area A1 (corresponding to “first area”) and the landscape area are landscape areas in one page. Area A2 (corresponding to “second area”) is mixed. When such mixed page image data exists, the control unit 110 determines the orientation of the mixed page image data based on the direction of characters included in a larger area of the portrait area A1 and the landscape area A2. In addition, it is determined whether the mixed page format is a portrait format or a landscape format. As a modification, even if the orientation of the mixed page image data and the format of the mixed page are determined based on the orientation of characters included in the portrait area A1 and the landscape area A2 having a larger number of characters. Good.

図4に示す例では、混在ページの画像データのポートレート領域A1はランドスケープ領域A2よりも大きい。また、ポートレート領域A1に含まれる文字の向きは下向きである。したがって、制御部110は、混在ページの画像データの向きが下向きであると判別し、混在ページの形式がポートレート形式であると判別する。   In the example shown in FIG. 4, the portrait area A1 of the image data of the mixed page is larger than the landscape area A2. The direction of the characters included in the portrait area A1 is downward. Therefore, the control unit 110 determines that the orientation of the mixed page image data is downward, and determines that the format of the mixed page is a portrait format.

複数ページの画像データのそれぞれについて画像データの向きを判別した後、制御部110は、第1処理または第2処理を向き調整処理として行う。たとえば、第1処理および第2処理のうち制御部110が行う処理はユーザーによって設定される。   After determining the orientation of the image data for each of the plurality of pages of image data, the control unit 110 performs the first process or the second process as the orientation adjustment process. For example, the process performed by the control unit 110 among the first process and the second process is set by the user.

まず、図5に示すフローチャートを参照し、制御部110により行われる第1処理(向き調整処理)の流れを説明する。図5に示すフローチャートのスタートは、原稿Dの読み取りを伴うジョブの実行指示を操作パネル30がユーザーから受け付けた後、画像読取部10による原稿Dの読み取りが完了したと制御部110が判断したときである。   First, the flow of the first process (orientation adjustment process) performed by the control unit 110 will be described with reference to the flowchart shown in FIG. The flowchart shown in FIG. 5 starts when the control unit 110 determines that the reading of the document D by the image reading unit 10 is completed after the operation panel 30 receives a job execution instruction accompanying reading of the document D from the user. It is.

画像読取部10による原稿Dの読み取りが完了すると、ステップS1において、制御部110は、複数ページの画像データのそれぞれについて、画像データに含まれる文字を認識するとともに、当該認識した文字の向きを画像データの向きとして判別する向き判別処理を行う。このとき、制御部110は、複数ページの画像データのそれぞれについて、対応するページがポートレート形式であるかランドスケープ形式であるかの判別も行う。   When the reading of the document D by the image reading unit 10 is completed, in step S1, the control unit 110 recognizes the characters included in the image data for each of the plurality of pages of image data, and displays the direction of the recognized characters. An orientation discrimination process for discriminating as the data orientation is performed. At this time, the control unit 110 also determines whether the corresponding page is in a portrait format or a landscape format for each of multiple pages of image data.

ステップS2において、制御部110は、複数ページの画像データのうち先頭ページの画像データを基準データに設定する。また、ステップS3において、制御部110は、複数ページの画像データの中に、向き判別処理で判別した向きが基準データとは異なる画像データである異方向データが存在するか否かを判断する。その結果、異方向データが存在すると制御部110が判断した場合には、ステップS4に移行し、異方向データが存在しないと制御部110が判断した場合には、本フローは終了する。   In step S2, the control unit 110 sets the image data of the first page among the image data of a plurality of pages as reference data. In step S <b> 3, the control unit 110 determines whether there is different direction data in which the orientation determined by the orientation determination process is image data different from the reference data in the image data of a plurality of pages. As a result, when the control unit 110 determines that the different direction data exists, the process proceeds to step S4, and when the control unit 110 determines that the different direction data does not exist, this flow ends.

ステップS4に移行すると、制御部110は、異方向データに対して回転処理を行って異方向データを回転させる(たとえば、時計回り方向に回転させる)。それによって、制御部110は、異方向データの向きを基準データの向きと一致させる。   In step S4, the control unit 110 performs rotation processing on the different direction data to rotate the different direction data (for example, rotate clockwise). Accordingly, the control unit 110 matches the direction of the different direction data with the direction of the reference data.

たとえば、図3に示した例では、基準データに設定される1ページ目の画像データの向きは上向きである。この場合、制御部110は、2ページ目および4ページ目の各画像データを異方向データと認識する。そして、図6に示すように、制御部110は、2ページ目および4ページ目の各画像データを180°回転させる。これにより、2ページ目および4ページ目の各画像データの向きが基準データ(1ページ目の画像データ)の向きと一致する。   For example, in the example shown in FIG. 3, the orientation of the image data of the first page set as the reference data is upward. In this case, the control unit 110 recognizes the image data on the second page and the fourth page as different direction data. Then, as shown in FIG. 6, the control unit 110 rotates the image data of the second page and the fourth page by 180 °. As a result, the orientation of the image data on the second and fourth pages matches the orientation of the reference data (image data on the first page).

また、図4に示した例では、基準データに設定される1ページ目の画像データの向きは上向きである。この場合、制御部110は、2ページ目から4ページ目までの各画像データを異方向データと認識する。そして、図7に示すように、制御部110は、2ページ目の画像データを180°回転させる。また、制御部110は、3ページ目の画像データを90°回転させる。さらに、制御部110は、4ページ目の画像データを270°回転させる。これにより、2ページ目から4ページ目までの各画像データの向きが基準データの向きと一致する。   In the example shown in FIG. 4, the orientation of the image data of the first page set as the reference data is upward. In this case, the control unit 110 recognizes each image data from the second page to the fourth page as different direction data. Then, as shown in FIG. 7, the control unit 110 rotates the image data of the second page by 180 °. Further, the control unit 110 rotates the image data of the third page by 90 °. Further, the control unit 110 rotates the image data of the fourth page by 270 °. Thereby, the direction of each image data from the second page to the fourth page matches the direction of the reference data.

ここで、制御部110は、異方向データに対応するページの形式が基準データに対応するページと異なる場合、異方向データに対して回転処理を行うときに、異方向データを元のサイズよりも縮小する。図7に示す例では、基準データに設定された画像データに対応する1ページ目がポートレート形式であるが、3ページ目および4ページ目はそれぞれランドスケープ形式である。したがって、制御部110は、3ページ目および4ページ目の各画像データ(異方向データ)に対して回転処理を行うとき、当該画像データを元のサイズよりも縮小する。図6に示した例では、全ページがポートレート形式であるので、異方向データの縮小は行われない。   Here, when the page format corresponding to the different direction data is different from the page corresponding to the reference data, the control unit 110 converts the different direction data from the original size when performing the rotation process on the different direction data. to shrink. In the example shown in FIG. 7, the first page corresponding to the image data set as the reference data is in the portrait format, but the third page and the fourth page are each in the landscape format. Therefore, when the rotation processing is performed on the image data (different direction data) on the third page and the fourth page, the control unit 110 reduces the image data from the original size. In the example shown in FIG. 6, since all pages are in the portrait format, the data in the different direction is not reduced.

なお、異方向データに対応するページの形式が基準データに対応するページと異なる場合(異方向データを元のサイズよりも縮小して回転させる場合)、異方向データのサイズの縮小を許可するか否かの指示をユーザーから受け付けてもよい。この場合、たとえば、制御部110は、元のサイズよりも縮小された異方向データに対応するページのプレビュー画像を生成する。そして、制御部110は、異方向データのサイズの縮小を許可するか否かの指示の受け付けを操作パネル30に行わせ、このときに、プレビュー画像の表示を操作パネル30に行わせる。   If the format of the page corresponding to the different direction data is different from the page corresponding to the reference data (when rotating the different direction data smaller than the original size), whether to allow the reduction of the size of the different direction data. An instruction on whether or not may be received from the user. In this case, for example, the control unit 110 generates a preview image of a page corresponding to the different direction data reduced from the original size. Then, the control unit 110 causes the operation panel 30 to accept an instruction as to whether or not to reduce the size of the different direction data, and at this time, causes the operation panel 30 to display a preview image.

ここで、制御部110による文字認識処理において、複数ページの画像データのそれぞれの所定領域PA(図8参照)のみが対象になっていてもよい。たとえば、ページ番号などを付す領域であるヘッダー領域およびフッター領域の少なくとも一部が所定領域PAに設定される。この場合、制御部110は、所定領域PAに存在する文字の向きに基づき複数ページの画像データのそれぞれの向きを判別する。これにより、混在ページのポートレート領域A1およびランドスケープ領域A2の各サイズに差が無い場合(より大きい領域を特定できない場合)であっても、混在ページの画像データの向きを判別することができる。   Here, in the character recognition processing by the control unit 110, only the predetermined areas PA (see FIG. 8) of the image data of a plurality of pages may be targeted. For example, at least a part of a header area and a footer area, which are areas to which page numbers are attached, is set as the predetermined area PA. In this case, the control unit 110 determines the orientations of the plurality of pages of image data based on the orientations of characters existing in the predetermined area PA. Thereby, even when there is no difference in the sizes of the portrait area A1 and the landscape area A2 of the mixed page (when a larger area cannot be specified), the orientation of the image data of the mixed page can be determined.

次に、図9に示すフローチャートを参照し、制御部110により行われる第2処理(向き調整処理)の流れを説明する。図9に示すフローチャートのスタートは、原稿Dの読み取りを伴うジョブの実行指示を操作パネル30がユーザーから受け付けた後、画像読取部10による原稿Dの読み取りが完了したと制御部110が判断したときである。   Next, the flow of the second process (orientation adjustment process) performed by the control unit 110 will be described with reference to the flowchart shown in FIG. 9 starts when the control unit 110 determines that the reading of the document D by the image reading unit 10 is completed after the operation panel 30 receives a job execution instruction accompanying reading of the document D from the user. It is.

画像読取部10による原稿Dの読み取りが完了すると、ステップS11において、制御部110は、向き判別処理を行う。また、ステップS12において、制御部110は、基準データを設定する。ステップS11よびS12の各処理は、それぞれ、図5に示したフローチャートのステップS1およびS2の各処理と同じである。   When the reading of the document D by the image reading unit 10 is completed, in step S11, the control unit 110 performs orientation determination processing. In Step S12, control part 110 sets standard data. Steps S11 and S12 are the same as steps S1 and S2 in the flowchart shown in FIG.

ステップS13において、制御部110は、基準データに対応するページと形式が同じページの画像データであり基準データとは向き判別処理で判別した向きが異なる画像データである第1異方向データが存在するか否かを判断する。その結果、第1異方向データが存在すると制御部110が判断した場合には、ステップS14に移行する。   In step S <b> 13, the control unit 110 includes first different direction data that is image data of a page having the same format as the page corresponding to the reference data, and is different in orientation determined by the orientation determination process from the reference data. Determine whether or not. As a result, when the control unit 110 determines that the first different direction data exists, the process proceeds to step S14.

ステップS14に移行すると、制御部110は、第1異方向データに対して回転処理を行って第1異方向データを回転させる(たとえば、時計回り方向に回転させる)。それによって、制御部110は、第1異方向データの向きを基準データの向きと一致させる。その後、ステップS15に移行する。なお、ステップS13において、第1異方向データが存在しないと制御部110が判断した場合にも、ステップS15に移行する。   If transfering it to step S14, the control part 110 will perform a rotation process with respect to 1st different direction data, and will rotate 1st different direction data (for example, rotate clockwise). Accordingly, the control unit 110 matches the direction of the first different direction data with the direction of the reference data. Thereafter, the process proceeds to step S15. In addition, also when the control part 110 judges that 1st different direction data does not exist in step S13, it transfers to step S15.

ステップS15に移行すると、制御部110は、ポートレート形式のページの画像データとランドスケープ形式のページの画像データとが混在しているか否かを判断する。その結果、混在していると制御部110が判断した場合には、ステップS16に移行し、混在していないと制御部110が判断した場合には、本フローは終了する。   In step S15, the control unit 110 determines whether the image data of the portrait format page and the image data of the landscape format page are mixed. As a result, when the control unit 110 determines that they are mixed, the process proceeds to step S16, and when the control unit 110 determines that they are not mixed, this flow ends.

ステップS16に移行すると、制御部110は、基準データに対応するページとは形式が異なるページのうち最前ページの画像データを追加基準データに設定する。すなわち、基準データに対応するページがポートレート形式であればランドスケープ形式のページの画像データが追加基準データに設定され、基準データに対応するページがランドスケープ形式であればポートレート形式のページの画像データが追加基準データに設定される。   In step S16, the control unit 110 sets the image data of the foremost page among the pages having a format different from the page corresponding to the reference data as additional reference data. That is, if the page corresponding to the reference data is in portrait format, the image data of the landscape format page is set as additional reference data, and if the page corresponding to the reference data is in landscape format, the image data of the portrait format page is set. Is set as additional reference data.

ステップS17において、制御部110は、追加基準データに対応するページと形式が同じページの画像データであり追加基準データとは向き判別処理で判別した向きが異なる画像データである第2異方向データが存在するか否かを判断する。その結果、第2異方向データが存在すると制御部110が判断した場合には、ステップS18に移行し、第2異方向データが存在しないと制御部110が判断した場合には、本フローは終了する。   In step S <b> 17, the control unit 110 stores the second different direction data, which is image data of a page having the same format as the page corresponding to the additional reference data, and is different from the additional reference data in the orientation determined by the orientation determination process. Determine if it exists. As a result, when the control unit 110 determines that the second different direction data exists, the process proceeds to step S18, and when the control unit 110 determines that the second different direction data does not exist, this flow ends. To do.

ステップS18に移行すると、制御部110は、第2異方向データに対して回転処理を行って第2異方向データを回転させる。それによって、制御部110は、第2異方向データの向きを追加基準データの向きと一致させる。   If transfering it to step S18, the control part 110 will perform a rotation process with respect to 2nd different direction data, and will rotate 2nd different direction data. Accordingly, the control unit 110 matches the direction of the second different direction data with the direction of the additional reference data.

たとえば、図4に示した例では、ポートレート形式のページの画像データとランドスケープ形式のページの画像データとが混在する(1ページ目および2ページ目がポートレート形式であり、3ページ目および4ページ目がランドスケープ形式である)。また、1ページ目の画像データの向きは上向きであり、2ページ目の画像データの向きは下向きである。3ページ目の画像データの向きは左向きであり、4ページ目の画像データの向きは右向きである。   For example, in the example shown in FIG. 4, the image data of the portrait format page and the image data of the landscape format page are mixed (the first page and the second page are the portrait format, the third page and the fourth page). Page is in landscape format). The orientation of the image data on the first page is upward, and the orientation of the image data on the second page is downward. The direction of the image data on the third page is leftward, and the direction of the image data on the fourth page is rightward.

この場合、制御部110は、1ページ目の画像データを基準データに設定し、3ページ目の画像データを追加基準データに設定する。また、制御部110は、2ページ目の画像データを第1異方向データと認識し、4ページ目の画像データを第2異方向データと認識する。そして、図10に示すように、制御部110は、2ページ目の画像データを180°回転させるとともに、4ページ目の画像データを180°回転させる。これにより、2ページ目の画像データの向きが基準データ(1ページ目の画像データ)の向きと一致し、4ページ目の画像データの向きが追加基準データ(3ページ目の画像データ)の向きと一致する。   In this case, the control unit 110 sets the image data of the first page as reference data, and sets the image data of the third page as additional reference data. Further, the control unit 110 recognizes the image data of the second page as the first different direction data, and recognizes the image data of the fourth page as the second different direction data. Then, as shown in FIG. 10, the control unit 110 rotates the image data of the second page by 180 ° and rotates the image data of the fourth page by 180 °. Thereby, the orientation of the image data on the second page matches the orientation of the reference data (image data on the first page), and the orientation of the image data on the fourth page is the orientation of the additional reference data (image data on the third page). Matches.

本実施形態の画像形成装置100は、上記のように、複数枚の原稿Dを読み取って複数枚の原稿Dにそれぞれ対応する複数ページの画像データを生成する画像読取部10と、複数ページの画像データのそれぞれについて、画像データに含まれる文字を認識するとともに、当該認識した文字の向きを画像データの向きとして判別する向き判別処理を行い、その後、複数ページの画像データのうち先頭ページの画像データを基準データに設定するとともに、複数ページの画像データの中に向き判別処理で判別した向きが基準データとは異なる画像データである異方向データが存在するか否かを判断し、異方向データが存在する場合、異方向データに対して回転処理を行うことによって異方向データを回転させ、異方向データの向きを基準データの向きと一致させる制御部110と、を備える。すなわち、制御部110は、複数ページの画像データの向きを調整する向き調整処理を行う。   As described above, the image forming apparatus 100 according to the present embodiment reads a plurality of documents D and generates a plurality of pages of image data corresponding to the plurality of documents D, and a plurality of pages of images. For each piece of data, the characters included in the image data are recognized and the orientation determination process is performed to determine the orientation of the recognized characters as the orientation of the image data. Thereafter, the image data of the first page among the image data of a plurality of pages Is set as reference data, and it is determined whether or not there is different direction data in which the orientation determined by the orientation determination processing is different from the reference data in the image data of a plurality of pages. If present, rotate the different direction data by rotating the different direction data, and change the direction of the different direction data to the reference data. And a control unit 110 which can and matched, the. That is, the control unit 110 performs orientation adjustment processing for adjusting the orientation of image data of a plurality of pages.

本実施形態の構成では、制御部110による向き判別処理によって判別される画像データの向きが画像データに含まれる文字の向きと一致する。そして、制御部110は、向き判別処理で判別した向きが基準データ(先頭ページの画像データ)とは異なる異方向データが存在する場合、異方向データの向きを基準データの向きと一致させる。これにより、複数ページの画像データにそれぞれ含まれる文字の向きが先頭ページの画像データに含まれる文字の向きと同一方向に揃えられる。したがって、画像形成装置100に読取対象の原稿Dをセットするときに、各原稿Dの文字の向きを一方向に揃える作業(各原稿Dの文字の向きを1枚ずつ確認する作業など)が不要となる。これにより、画像形成装置100に読取対象の原稿Dをセットするときの作業性を向上させることができる。   In the configuration of the present embodiment, the orientation of image data determined by the orientation determination processing by the control unit 110 matches the orientation of characters included in the image data. Then, when there is different direction data in which the direction determined in the direction determination process is different from the reference data (first page image data), the control unit 110 matches the direction of the different direction data with the direction of the reference data. As a result, the orientations of the characters included in the image data of the plurality of pages are aligned in the same direction as the orientations of the characters included in the image data of the first page. Therefore, when setting the document D to be read on the image forming apparatus 100, the work of aligning the direction of the characters of each document D in one direction (such as checking the direction of the characters of each document D one by one) is unnecessary. It becomes. Thereby, it is possible to improve workability when setting the document D to be read on the image forming apparatus 100.

なお、制御部110は、ポートレート領域A1(第1領域)およびランドスケープ領域A2(第2領域)が1ページ内に混在した混在ページの画像データが存在する場合、混在ページの画像データを対象に向き判別処理を行うときに、ポートレート領域A1およびランドスケープ領域A2のうちより大きい領域に含まれる文字の向きを混在ページの画像データの向きとして判別する。この構成では、複数ページの画像データの中に混在ページの画像データが存在する場合であっても、混在ページの画像データの向きを判別することができる。ここで、通常では、混在ページのポートレート領域A1およびランドスケープ領域A2のうちより大きい領域に主要な情報が含まれていることが多い。したがって、ポートレート領域A1およびランドスケープ領域A2のうちより大きい領域に含まれる文字の向きが混在ページの画像データの向きとして判別されるよう構成するのが好ましい。   In addition, when there is mixed page image data in which the portrait area A1 (first area) and the landscape area A2 (second area) are mixed in one page, the control unit 110 targets the mixed page image data. When performing the orientation determination processing, the orientation of characters included in a larger area of the portrait area A1 and the landscape area A2 is determined as the orientation of the image data of the mixed page. In this configuration, even when mixed page image data is present in a plurality of pages of image data, the orientation of the mixed page image data can be determined. Here, usually, main information is often included in a larger area of the portrait area A1 and the landscape area A2 of the mixed page. Therefore, it is preferable that the orientation of characters included in a larger area of the portrait area A1 and the landscape area A2 is determined as the orientation of the image data of the mixed page.

また、制御部110が第1処理を行う構成では、制御部110は、異方向データに対応するページの形式が基準データに対応するページと異なる場合、異方向データに対して回転処理を行うことにより異方向データの向きを基準データの向きと一致させるとともに、このときに、異方向データを元のサイズよりも縮小する縮小処理を行う。これにより、異方向データに対応するページの形式が基準データに対応するページの形式と異なっていても、異方向データは元のサイズよりも縮小されるが、異方向データに含まれる文字の向きを基準データに含まれる文字の向きと一致させることができる。   In the configuration in which the control unit 110 performs the first process, the control unit 110 performs the rotation process on the different direction data when the format of the page corresponding to the different direction data is different from the page corresponding to the reference data. Thus, the direction of the different direction data is matched with the direction of the reference data, and at this time, a reduction process is performed to reduce the different direction data to be smaller than the original size. As a result, even if the page format corresponding to the different direction data is different from the page format corresponding to the reference data, the different direction data is reduced from the original size, but the direction of the characters included in the different direction data is reduced. Can be matched with the direction of characters included in the reference data.

また、制御部110が第2処理を行う構成では、制御部110は、基準データに対応するページと形式が同じページの画像データであり基準データとは向き判別処理で判別した向きが異なる画像データである第1異方向データが存在するか否かを判断し、第1異方向データが存在する場合、回転処理を行うことによって第1異方向データの向きを基準データの向きと一致させる。そして、制御部110は、ポートレート形式のページの画像データとランドスケープ形式のページの画像データとが混在するとき、基準データに対応するページとは形式が異なるページの画像データのうち最前のページの画像データを追加基準データに設定するとともに、追加基準データに対応するページと形式が同じページの画像データであり追加基準データとは向き判別処理で判別した向きが異なる画像データである第2異方向データが存在するか否かを判断し、第2異方向データが存在する場合、回転処理を行うことによって第2異方向データの向きを追加基準データの向きと一致させる。   Further, in the configuration in which the control unit 110 performs the second process, the control unit 110 is image data of a page having the same format as the page corresponding to the reference data, and is different from the reference data in the orientation determined by the orientation determination process. It is determined whether or not the first different direction data exists. If the first different direction data exists, the direction of the first different direction data is matched with the direction of the reference data by performing a rotation process. Then, when the portrait-format page image data and the landscape-format page image data are mixed, the control unit 110 selects the page of the first page among the image data of the page whose format is different from the page corresponding to the reference data. The second different direction in which the image data is set as the additional reference data and the image data has the same format as the page corresponding to the additional reference data, and the image data has a different orientation determined by the orientation determination process from the additional reference data. It is determined whether or not data exists, and when the second different direction data exists, the direction of the second different direction data is matched with the direction of the additional reference data by performing a rotation process.

これにより、ポートレート形式のページの画像データおよびランドスケープ式のページの画像データの各向きを別々に揃えることができる。さらに、第1異方向データについては対応するページの形式が同じ画像データである基準データの向きと一致するよう回転させ、第2異方向データについては対応するページの形式が同じ画像データである追加基準データの向きと一致するよう回転させるので、制御部110が第1処理を行う構成のように異方向データを縮小させる必要はない。   Accordingly, the orientations of the portrait format page image data and the landscape page image data can be aligned separately. Further, for the first different direction data, the corresponding page format is rotated so as to coincide with the direction of the reference data which is the same image data, and for the second different direction data, the corresponding page format is the same image data. Since it rotates so that it may correspond with the direction of reference | standard data, it is not necessary to reduce different direction data like the structure which the control part 110 performs a 1st process.

今回開示された実施形態は、すべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記実施形態の説明ではなく特許請求の範囲によって示され、さらに、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれる。   It should be thought that embodiment disclosed this time is an illustration and restrictive at no points. The scope of the present invention is shown not by the description of the above-described embodiment but by the scope of claims for patent, and further includes meanings equivalent to the scope of claims for patent and all modifications within the scope.

10 画像読取部
100 画像形成装置
110 制御部
DESCRIPTION OF SYMBOLS 10 Image reading part 100 Image forming apparatus 110 Control part

Claims (3)

複数枚の原稿を読み取って前記複数枚の原稿にそれぞれ対応する複数ページの画像データを生成する画像読取部と、
前記複数ページの画像データのそれぞれについて、前記画像データに含まれる文字を認識するとともに、当該認識した文字の向きを前記画像データの向きとして判別する向き判別処理を行い、その後、前記複数ページの画像データのうち先頭ページの画像データを基準データに設定するとともに、前記複数ページの画像データの中に前記向き判別処理で判別した向きが前記基準データとは異なる画像データである異方向データが存在するか否かを判断し、前記異方向データが存在する場合、前記異方向データに対して回転処理を行うことによって前記異方向データを回転させ、前記異方向データの向きを前記基準データの向きと一致させる向き調整処理を行う制御部と、を備え、
前記制御部は、第1処理および第2処理のうちユーザーによって設定された処理を前記向き調整処理として行い、
前記向き調整処理として前記第1処理を行う場合、前記制御部は、前記複数ページの画像データのそれぞれについて、対応するページの形式がポートレート形式であるかランドスケープ形式であるかを判別し、前記異方向データに対応するページの前記形式が前記基準データに対応するページと異なる場合、前記異方向データに対して前記回転処理を行うときに、前記異方向データを元のサイズよりも縮小し、
前記向き調整処理として前記第2処理を行う場合、前記制御部は、前記複数ページの画像データのそれぞれについて、対応するページの形式がポートレート形式であるかランドスケープ形式であるかの判別を行い、前記基準データに対応するページと前記形式が同じページの画像データであり前記基準データとは前記向き判別処理で判別した向きが異なる画像データである第1異方向データが存在するか否かを判断し、前記第1異方向データが存在する場合、前記回転処理を行うことによって前記第1異方向データの向きを前記基準データの向きと一致させ、
前記向き調整処理として前記第2処理を行う場合において、ポートレート形式のページの画像データとランドスケープ形式のページの画像データとが混在するとき、前記制御部は、前記基準データに対応するページとは前記形式が異なるページの画像データのうち最前のページの画像データを追加基準データに設定するとともに、前記追加基準データに対応するページと前記形式が同じページの画像データであり前記追加基準データとは前記向き判別処理で判別した向きが異なる画像データである第2異方向データが存在するか否かを判断し、前記第2異方向データが存在する場合、前記回転処理を行うことによって前記第2異方向データの向きを前記追加基準データの向きと一致させることを特徴とする画像形成装置。
An image reading unit that reads a plurality of documents and generates a plurality of pages of image data corresponding to each of the plurality of documents;
Recognize characters included in the image data for each of the image data of the plurality of pages, and perform orientation determination processing for determining the orientation of the recognized characters as the orientation of the image data, and then the images of the plurality of pages. Among the data, the image data of the first page is set as the reference data, and there is different direction data in which the orientation determined by the orientation determination processing is different from the reference data in the image data of the plurality of pages. When the different direction data exists, the different direction data is rotated by performing a rotation process on the different direction data, and the direction of the different direction data is set as the direction of the reference data. A control unit that performs a direction adjustment process for matching ,
The control unit performs a process set by the user among the first process and the second process as the orientation adjustment process,
When performing the first process as the orientation adjustment process, the control unit determines, for each of the plurality of pages of image data, whether the corresponding page format is a portrait format or a landscape format, When the format of the page corresponding to the different direction data is different from the page corresponding to the reference data, when performing the rotation processing on the different direction data, the different direction data is reduced from the original size,
When performing the second process as the orientation adjustment process, the control unit determines, for each of the plurality of pages of image data, whether the corresponding page format is a portrait format or a landscape format, It is determined whether or not there is first different direction data which is image data of the same format as the page corresponding to the reference data, and the reference data is image data having a different orientation determined by the orientation determination processing. If the first different direction data exists, the rotation process is performed to match the direction of the first different direction data with the direction of the reference data,
In the case where the second processing is performed as the orientation adjustment processing, when the image data of the portrait format page and the image data of the landscape format page are mixed, the control unit refers to the page corresponding to the reference data. The image data of the first page among the image data of pages with different formats is set as additional reference data, and the page corresponding to the additional reference data is image data of the same format as the page, and the additional reference data is It is determined whether or not there is second different direction data that is image data having different orientations determined in the orientation determination processing. If the second different direction data exists, the second processing is performed by performing the rotation processing. An image forming apparatus characterized in that the direction of the different direction data coincides with the direction of the additional reference data .
前記制御部は、ポートレート形式の領域である第1領域とランドスケープ形式の領域である第2領域とが1ページ内に混在した混在ページの画像データが存在する場合、前記混在ページの画像データを対象に前記向き判別処理を行うときに、前記第1領域および前記第2領域のうちより大きい領域に含まれる文字の向きを前記混在ページの画像データの向きとして判別することを特徴とする請求項1に記載の画像形成装置。   When there is mixed page image data in which a first region that is a portrait format region and a second region that is a landscape format region are mixed in one page, the control unit stores the image data of the mixed page. The character direction included in a larger area of the first area and the second area is determined as an image data direction of the mixed page when the orientation determination process is performed on a target. The image forming apparatus according to 1. 前記制御部は、前記向き判別処理を行うとき、前記画像データの所定領域に含まれる文字を認識するとともに、当該認識した前記所定領域に含まれる文字の向きを前記画像データの向きとして判別することを特徴とする請求項1に記載の画像形成装置。   When performing the orientation determination process, the control unit recognizes characters included in the predetermined region of the image data and determines the orientation of the characters included in the recognized predetermined region as the orientation of the image data. The image forming apparatus according to claim 1.
JP2016253018A 2016-12-27 2016-12-27 Image forming apparatus Expired - Fee Related JP6604320B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016253018A JP6604320B2 (en) 2016-12-27 2016-12-27 Image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016253018A JP6604320B2 (en) 2016-12-27 2016-12-27 Image forming apparatus

Publications (2)

Publication Number Publication Date
JP2018107656A JP2018107656A (en) 2018-07-05
JP6604320B2 true JP6604320B2 (en) 2019-11-13

Family

ID=62788259

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016253018A Expired - Fee Related JP6604320B2 (en) 2016-12-27 2016-12-27 Image forming apparatus

Country Status (1)

Country Link
JP (1) JP6604320B2 (en)

Also Published As

Publication number Publication date
JP2018107656A (en) 2018-07-05

Similar Documents

Publication Publication Date Title
JP2007168382A (en) Printer, printing system, printing method, program for printing method, and storage medium
US20150222787A1 (en) Printing device and printing method
US10757290B2 (en) Image processing apparatus being able to simultaneously read and extract image data
US8203763B2 (en) Image scanning apparatus and method for aligning a stack of scanned images using the stack orientation indicated by a user and an automatically determined image orientation
US9659018B2 (en) File name producing apparatus that produces file name of image
JP5945235B2 (en) Image forming apparatus
CN109479081B (en) Document reading apparatus
JP2018037997A (en) Image forming apparatus
JP6696459B2 (en) Image forming apparatus and image forming method
CN107666547B (en) Image processing apparatus, image processing method, and program
JP6604320B2 (en) Image forming apparatus
JP7192441B2 (en) Information processing device, image rotation method for information processing device, and program
JP4941160B2 (en) Image processing apparatus, image processing method, and image processing program
JP7114892B2 (en) image forming device
JP2021128367A (en) Information formation apparatus
US9239973B1 (en) Image forming apparatus and non-transitory computer readable medium storing program
JP5150594B2 (en) Image processing device
JP6604314B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP2014030080A (en) Image processing apparatus and image processing method
JP7151322B2 (en) Image processing device and image processing method
CN111083303B (en) Image forming apparatus, image processing method, and image processing program recording medium
JP2019022104A (en) Image forming apparatus
JP2010171492A (en) Image processing apparatus, image processing method, and image processing program
JP2008113083A (en) Facsimile machine
JP4929643B2 (en) Image alignment apparatus and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181029

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190718

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190723

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190902

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190917

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190930

R150 Certificate of patent or registration of utility model

Ref document number: 6604320

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees