JP2020088736A - Information processing device, image rotation method of information processing device, and program - Google Patents

Information processing device, image rotation method of information processing device, and program Download PDF

Info

Publication number
JP2020088736A
JP2020088736A JP2018223801A JP2018223801A JP2020088736A JP 2020088736 A JP2020088736 A JP 2020088736A JP 2018223801 A JP2018223801 A JP 2018223801A JP 2018223801 A JP2018223801 A JP 2018223801A JP 2020088736 A JP2020088736 A JP 2020088736A
Authority
JP
Japan
Prior art keywords
image
orientation
read image
character recognition
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018223801A
Other languages
Japanese (ja)
Other versions
JP7192441B2 (en
Inventor
正幸 川▲崎▼
Masayuki Kawasaki
正幸 川▲崎▼
雅巳 石原
Masami Ishihara
雅巳 石原
原田 英一
Eiichi Harada
英一 原田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2018223801A priority Critical patent/JP7192441B2/en
Publication of JP2020088736A publication Critical patent/JP2020088736A/en
Application granted granted Critical
Publication of JP7192441B2 publication Critical patent/JP7192441B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Character Input (AREA)
  • Image Input (AREA)
  • Facsimiles In General (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

To provide an information processing device capable of aligning the direction of a first read image after rotation and the direction of a second read image after rotation.SOLUTION: An information processing device includes an acquisition part for acquiring a first read image obtained by reading a first surface of a document and a second read image obtained by reading a second surface opposite from the first surface of the document, and an information processing part. The information processing part selects one character recognition image direction between a first character recognition image direction being the direction of the first read image specified by character recognition processing to the first read image and a second character recognition image direction being the direction of the second read image specified by character recognition processing to the second read image, and the image processing part rotates the first read image and the second read image on the basis of the selected character recognition image direction.SELECTED DRAWING: Figure 16

Description

本発明は、原稿から読み取られた読取り画像を回転させる情報処理装置、情報処理装置の画像回転方法、およびプログラムに関するものである。 The present invention relates to an information processing device that rotates a read image read from a document, an image rotation method of the information processing device, and a program.

従来、特許文献1が開示するように、原稿から読み取られた読取り画像に対する文字認識処理を行うことで、読取り画像の向きを特定し、特定された読取り画像の向きに基づいて、読取り画像を回転させる画像読取装置が知られている。 Conventionally, as disclosed in Patent Document 1, by performing character recognition processing on a read image read from a document, the direction of the read image is specified, and the read image is rotated based on the specified direction of the read image. There is known an image reading device.

特開2009−194913号公報JP, 2009-194913, A

しかしながら、従来の原稿読取装置により、原稿の両面を読み取り、原稿の第1面の第1読取り画像の向きに基づき第1読取り画像を回転させ、原稿の第2面の第2読取り画像の向きに基づき第1読取り画像を回転させた場合、回転後の第1読取り画像の向きと回転後の第2読取り画像の向きとが違ってしまうことがあった。例えば、第1読取り画像および第2読取り画像の一方については、文字認識処理により正しく向きが特定されたが、第1読取り画像および第2読取り画像の他方については、文字認識処理により誤って向きが特定された場合または第2読取り画像の向きを特定できなかった場合に、回転後の第1読取り画像の向きと回転後の第2読取り画像の向きとを揃えることができなかった。 However, both sides of the original are read by the conventional original reading device, the first read image is rotated based on the direction of the first read image on the first side of the original, and the orientation of the second read image on the second side of the original is changed. When the first read image is rotated on the basis of the rotation, the direction of the first read image after rotation may be different from the direction of the second read image after rotation. For example, for one of the first read image and the second read image, the orientation was correctly specified by the character recognition processing, but for the other of the first read image and the second read image, the orientation was erroneously identified by the character recognition processing. If specified or if the orientation of the second read image could not be identified, the orientation of the first read image after rotation and the orientation of the second read image after rotation could not be aligned.

本発明の情報処理装置は、原稿の第1面を読み取った第1読取り画像と、原稿の第1面とは反対側の第2面を読み取った第2読取り画像と、を取得する取得部と、情報処理部と、を備え、情報処理部は、第1読取り画像に対する文字認識処理により特定された第1読取り画像の向きである第1文字認識画像向き、および第2読取り画像に対する文字認識処理により特定された第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択し、情報処理部は、選択した文字認識画像向きに基づいて、第1読取り画像と第2読取り画像とを回転させる。 An information processing apparatus according to the present invention includes an acquisition unit that acquires a first read image obtained by reading a first side of a document and a second read image obtained by reading a second side of the document opposite to the first side. And an information processing section, wherein the information processing section has a first character recognition image orientation that is the orientation of the first read image identified by the character recognition processing for the first read image, and a character recognition processing for the second read image. From the second character recognition image orientation that is the orientation of the second read image specified by, one of the character recognition image orientations is selected, and the information processing unit performs the first reading based on the selected character recognition image orientation. The image and the second read image are rotated.

本発明の情報処理装置の画像回転方法は、原稿の第1面から読み取られた第1読取り画像と、原稿の第1面とは反対側の第2面から読み取られた第2読取り画像と、を取得し、第1読取り画像に対する文字認識処理により特定された第1読取り画像の向きである第1文字認識画像向き、および第2読取り画像に対する文字認識処理により特定された第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択し、選択した文字認識画像向きに基づいて、第1読取り画像と第2読取り画像とを回転させる。 An image rotation method of an information processing apparatus according to the present invention includes a first read image read from a first surface of a document and a second read image read from a second surface of the document opposite to the first surface. Of the first read image, which is the direction of the first read image specified by the character recognition process for the first read image, and the direction of the second read image specified by the character recognition process for the second read image. Of the second character recognition image orientations, any one of the character recognition image orientations is selected, and the first read image and the second read image are rotated based on the selected character recognition image orientation.

本発明のプログラムは、コンピューターに、原稿の第1面から読み取られた第1読取り画像と、原稿の第1面とは反対側の第2面から読み取られた第2読取り画像と、を取得するステップと、第1読取り画像に対する文字認識処理により特定された第1読取り画像の向きである第1文字認識画像向き、および第2読取り画像に対する文字認識処理により特定された第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択するステップと、選択した文字認識画像向きに基づいて、第1読取り画像と第2読取り画像とを回転させるステップと、を実行させる。 A program of the present invention causes a computer to acquire a first read image read from a first side of a document and a second read image read from a second side opposite to the first side of the document. A first character recognition image orientation that is the orientation of the first read image identified by the character recognition processing for the first read image, and a second read image orientation identified by the character recognition processing for the second read image. A step of selecting any one of the character recognition image orientations from a certain second character recognition image orientation, and a step of rotating the first read image and the second read image based on the selected character recognition image orientation. Let it run.

読取り装置および情報処理装置を備えた読取りシステムを示す図である。It is a figure showing a reading system provided with a reader and an information processor. 読取り装置および情報処理装置のブロック図である。It is a block diagram of a reader and an information processor. 第1原稿の第1面を示す図である。It is a figure which shows the 1st surface of a 1st original. 第1原稿の第2面を示す図である。It is a figure which shows the 2nd surface of a 1st original. 第2原稿の第1面を示す図である。It is a figure which shows the 1st surface of a 2nd original. 第2原稿の第2面を示す図である。It is a figure which shows the 2nd surface of a 2nd original. 第3原稿の第1面を示す図である。It is a figure which shows the 1st surface of a 3rd original. 第3原稿の第2面を示す図である。It is a figure which shows the 2nd surface of a 3rd original. 第1原稿の読取り後、個別回転処理および連動回転処理が行われない場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。FIG. 9 is a diagram showing a first read image and a second read image displayed on the processing side display unit when the individual rotation process and the interlocking rotation process are not performed after the reading of the first document. 第2原稿の読取り後、個別回転処理および連動回転処理が行われない場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。FIG. 10 is a diagram showing a first read image and a second read image displayed on the processing side display unit when the individual rotation process and the interlocking rotation process are not performed after the reading of the second document. 第3原稿の読取り後、個別回転処理および連動回転処理が行われない場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。It is a figure which shows the 1st read image and the 2nd read image displayed on the process side display part, when an individual rotation process and an interlocking rotation process are not performed after reading a 3rd original. 個別回転処理を示すフローチャートである。It is a flow chart which shows individual rotation processing. 第1原稿の読取り後、個別回転処理が行われた場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。FIG. 9 is a diagram showing a first read image and a second read image displayed on the processing side display unit when the individual rotation process is performed after the reading of the first original. 第2原稿の読取り後、個別回転処理が行われた場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。It is a figure which shows the 1st read image and 2nd read image displayed on the process side display part, when an individual rotation process is performed after reading a 2nd original. 第3原稿の読取り後、個別回転処理が行われた場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。It is a figure which shows the 1st read image and 2nd read image displayed on the process side display part, when an individual rotation process is performed after reading the 3rd original. 連動回転処理を示すフローチャートである。It is a flow chart which shows interlocking rotation processing. 第2原稿の読取り後、連動回転処理が行われた場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。FIG. 9 is a diagram showing a first read image and a second read image displayed on the processing side display unit when the interlocked rotation process is performed after the reading of the second document. 第3原稿の読取り後、連動回転処理が行われた場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。It is a figure which shows the 1st read image and 2nd read image displayed on the process side display part, when an interlocking rotation process is performed after reading a 3rd original. 原稿の第1端部領域および第1非端部領域を示す図である。FIG. 3 is a diagram showing a first end area and a first non-end area of a document.

以下、情報処理装置、情報処理装置の画像回転方法およびプログラムの一実施形態について説明する。なお、画像そのもの、および画像を表示するための画像データは、特に区別せずに、画像と称される。 An embodiment of an information processing device, an image rotation method of the information processing device, and a program will be described below. The image itself and the image data for displaying the image are referred to as an image without any particular distinction.

図1に基づいて、読取りシステムSyについて説明する。読取りシステムSyは、読取り装置1と、情報処理装置101とを備えている。読取り装置1と情報処理装置101とは、通信可能に接続されている。 The reading system Sy will be described with reference to FIG. The reading system Sy includes a reading device 1 and an information processing device 101. The reading device 1 and the information processing device 101 are communicably connected.

読取り装置1は、ADF3(Auto Document Feeder)と、第1読取り部5と、第2読取り部7とを備えている。 The reading device 1 includes an ADF 3 (Auto Document Feeder), a first reading unit 5, and a second reading unit 7.

ADF3は、セット部9にセットされた原稿201を搬送する。ADF3は、セット部9と、供給ローラー11と、複数の搬送ローラー対13と、搬送モーター15と、排出部17とを備えている。セット部9には、原稿201がセットされる。なお、本実施形態では、セット部9にセットされた原稿201の両面のうち、斜め下方を向いた面、すなわちセット部9と向かい合った面、を第1面203といい、斜め上方を向いた面、すなわちセット部9とは反対側を向いた面、を第2面205という。供給ローラー11は、セット部9にセットされた原稿201を、搬送モーター15を駆動源として、排出部17に向けて搬送する。搬送ローラー対13は、供給ローラー11により搬送された原稿201を、搬送モーター15を駆動源として、排出部17に向けてさらに搬送する。排出部17には、搬送ローラー対13により搬送された原稿201が排出される。 The ADF 3 conveys the original 201 set on the setting unit 9. The ADF 3 includes a setting unit 9, a supply roller 11, a plurality of conveyance roller pairs 13, a conveyance motor 15, and a discharge unit 17. The original 201 is set on the setting unit 9. In the present embodiment, of the both sides of the document 201 set in the setting section 9, the surface facing diagonally downward, that is, the surface facing the setting section 9 is referred to as a first surface 203, and facing diagonally upward. The surface, that is, the surface facing the side opposite to the setting unit 9, is referred to as a second surface 205. The supply roller 11 conveys the original 201 set in the setting unit 9 toward the discharge unit 17 by using the conveyance motor 15 as a drive source. The transport roller pair 13 further transports the document 201 transported by the supply roller 11 toward the discharge unit 17 by using the transport motor 15 as a drive source. The document 201 transported by the transport roller pair 13 is discharged to the discharge unit 17.

第1読取り部5は、搬送される原稿201の第1面203と向かい合うように設けられており、原稿201の第1面203を読み取る。第1読取り部5は、図示省略したが、光源と、イメージセンサーとを備えている。第2読取り部7は、搬送される原稿201の第2面205と向かい合うように設けられており、原稿201の第2面205を読み取る。第2読取り部7は、図示省略したが、第1読取り部5と同様に、光源と、イメージセンサーとを備えている。 The first reading unit 5 is provided so as to face the first surface 203 of the transported original 201, and reads the first surface 203 of the original 201. Although not shown, the first reading unit 5 includes a light source and an image sensor. The second reading unit 7 is provided so as to face the second surface 205 of the transported original 201, and reads the second surface 205 of the original 201. Although not shown, the second reading unit 7 includes a light source and an image sensor, like the first reading unit 5.

読取り装置1は、第1読取り部5および第2読取り部7を備えたことで、原稿201がセット部9から排出部17まで搬送される間に、原稿201の第1面203と第2面205とを読み取ることができる。第1読取り部5により第1面203から読み取られた第1読取り画像207(図9等参照)と、第2読取り部7により第2面205から読み取られた第2読取り画像209(図9等参照)とは、情報処理装置101に送信される。なお、読取り装置1は、単一の読取り部を備え、ADF3により原稿201を表裏反転させることにより、原稿201の第1面203と第2面205とを読み取る構成でもよい。 Since the reading device 1 includes the first reading unit 5 and the second reading unit 7, the first surface 203 and the second surface of the document 201 are conveyed while the document 201 is conveyed from the setting unit 9 to the discharge unit 17. 205 and can be read. A first read image 207 (see FIG. 9, etc.) read by the first reading unit 5 from the first surface 203, and a second read image 209 (FIG. 9, etc.) read by the second reading unit 7 from the second surface 205. The reference) is transmitted to the information processing apparatus 101. The reading device 1 may be configured to include a single reading unit and read the first surface 203 and the second surface 205 of the original 201 by inverting the original 201 with the ADF 3.

情報処理装置101は、読取り装置1を制御し、読取り装置1から送信された第1読取り画像207および第2読取り画像209を受信する。なお、情報処理装置101としては、例えば、パソコン、スマートフォン、タブレット端末などを用いることができる。 The information processing apparatus 101 controls the reading device 1 and receives the first read image 207 and the second read image 209 transmitted from the reading device 1. As the information processing device 101, for example, a personal computer, a smartphone, a tablet terminal, or the like can be used.

図2に基づいて、読取り装置1および情報処理装置101について説明する。読取り装置1は、上記したADF3、第1読取り部5および第2読取り部7のほか、読取り側CPU19(Central Processing Unit)と、読取り側ROM21(Read Only Memory)と、読取り側RAM23(Random Access Memory)と、読取り側操作部25と、読取り側表示部27と、読取り側通信部29とを備えている。 The reading device 1 and the information processing device 101 will be described with reference to FIG. The reading device 1 includes the reading side CPU 19 (Central Processing Unit), the reading side ROM 21 (Read Only Memory), and the reading side RAM 23 (Random Access Memory) in addition to the ADF 3, the first reading unit 5, and the second reading unit 7 described above. ), a read side operation unit 25, a read side display unit 27, and a read side communication unit 29.

読取り側CPU19は、読取り側ROM21に記憶されたプログラムを、読取り側RAM23を用いて実行することにより、読取り装置1全体を統括的に制御する。読取り側操作部25は、ユーザーからの操作を受け付ける。読取り側操作部25としては、例えば、操作キーを用いることができる。読取り側表示部27は、ユーザーに対して各種情報を表示する。読取り側表示部27としては、例えば、液晶ディスプレーを用いることができる。なお、タッチパネル式ディスプレーを、読取り側操作部25および読取り側表示部27として機能させてもよい。読取り側通信部29は、後述する処理側通信部115との間で、各種コマンドのほか、第1読取り画像207および第2読取り画像209を送受信する。 The reading-side CPU 19 executes the program stored in the reading-side ROM 21 by using the reading-side RAM 23, and thereby controls the reading device 1 as a whole. The reading side operation unit 25 receives an operation from the user. As the reading side operation unit 25, for example, an operation key can be used. The reading side display unit 27 displays various information to the user. As the reading side display unit 27, for example, a liquid crystal display can be used. The touch panel display may function as the reading side operation unit 25 and the reading side display unit 27. The reading-side communication unit 29 transmits/receives various commands, as well as the first read image 207 and the second read image 209, to/from the processing-side communication unit 115 described later.

情報処理装置101は、処理側CPU103と、処理側ROM105と、処理側RAM107と、外部記憶装置109と、処理側操作部111と、処理側表示部113と、処理側通信部115とを備えている。なお、処理側CPU103は、「取得部」および「情報処理部」の一例である。取得部および情報処理部としては、1つに限られず、複数のCPUによって構成するようにしてもよいし、処理側CPU103に代えて、或いは処理側CPU103と協働させて、ASICなどの処理回路を用いた構成としてもよい。また、処理側CPU103は、「コンピューター」の一例である。コンピューターについても、上記と同様に、複数のCPUによって構成してもよいし、処理側CPU103に代えて、或いは処理側CPU103と協働させて、ASICなどの処理回路を用いた構成としてもよい。 The information processing apparatus 101 includes a processing CPU 103, a processing ROM 105, a processing RAM 107, an external storage device 109, a processing operation unit 111, a processing display unit 113, and a processing communication unit 115. There is. The processing side CPU 103 is an example of an “acquisition unit” and an “information processing unit”. The number of the acquisition unit and the information processing unit is not limited to one, and may be configured by a plurality of CPUs, or instead of the processing side CPU 103 or in cooperation with the processing side CPU 103, a processing circuit such as an ASIC. May be used. The processing side CPU 103 is an example of a “computer”. Similarly to the above, the computer may be configured by a plurality of CPUs, or may be configured to use a processing circuit such as an ASIC instead of the processing CPU 103 or in cooperation with the processing CPU 103.

処理側CPU103は、処理側ROM105または外部記憶装置109に記憶されたプログラムを、処理側RAM107を用いて実行することにより、情報処理装置101全体を統括的に制御する。外部記憶装置109は、各種プログラム、例えば、読取り装置1を制御するための制御プログラムであるスキャナードライバー、を記憶する。また、外部記憶装置109は、バッファーとして機能する処理側RAM107を介して、読取り装置1から送信された第1読取り画像207および第2読取り画像209を記憶する。外部記憶装置109としては、例えば、HDD(Hard Disk Drive)、SSD(Solid State Drive)を用いることができる。 The processing-side CPU 103 executes the program stored in the processing-side ROM 105 or the external storage device 109 by using the processing-side RAM 107, thereby controlling the information processing apparatus 101 as a whole. The external storage device 109 stores various programs, for example, a scanner driver which is a control program for controlling the reading device 1. Further, the external storage device 109 stores the first read image 207 and the second read image 209 transmitted from the reading device 1 via the processing side RAM 107 functioning as a buffer. As the external storage device 109, for example, a HDD (Hard Disk Drive) or SSD (Solid State Drive) can be used.

処理側操作部111は、ユーザーからの操作を受け付ける。処理側操作部111としては、例えば、キーボード、マウスなどを用いることができる。処理側表示部113は、読取り装置1を操作するための操作画面、読取り装置1から送信された第1読取り画像207および第2読取り画像209、などの各種情報を表示する。処理側表示部113としては、例えば、液晶ディスプレーを用いることができる。なお、タッチパネル式ディスプレーを、処理側操作部111および処理側表示部113として機能させてもよい。処理側通信部115は、読取り側通信部29との間で、各種コマンドのほか、第1読取り画像207および第2読取り画像209を送受信する。 The processing side operation unit 111 receives an operation from a user. As the processing side operation unit 111, for example, a keyboard, a mouse or the like can be used. The processing side display unit 113 displays various information such as an operation screen for operating the reading device 1 and the first read image 207 and the second read image 209 transmitted from the reading device 1. As the processing side display unit 113, for example, a liquid crystal display can be used. The touch panel display may function as the processing side operation unit 111 and the processing side display unit 113. The processing-side communication unit 115 transmits/receives various commands as well as the first read image 207 and the second read image 209 to/from the read-side communication unit 29.

図3ないし図8に基づいて、セット部9にセットされた第1原稿201a、第2原稿201bおよび第3原稿201cについて説明する。第1原稿201a、第2原稿201bおよび第3原稿201cは、いずれも、縦長且つ長辺綴じ原稿である。すなわち、各原稿201の第1面203における上辺211と、第2面205における上辺211とは、同じ辺である。セット部9には、通常、各原稿201の上辺211がADF3による搬送方向31の先方となるように、原稿201がセットされるが、本実施形態では、各原稿201の上辺211が搬送方向31の後方となるように、原稿201がセットされたものとする。 The first original 201a, the second original 201b, and the third original 201c set in the setting unit 9 will be described with reference to FIGS. The first original 201a, the second original 201b, and the third original 201c are all vertically long and long-edge bound originals. That is, the upper side 211 of the first surface 203 and the upper side 211 of the second surface 205 of each original 201 are the same side. Normally, the originals 201 are set in the setting section 9 so that the upper side 211 of each original 201 is ahead of the conveying direction 31 by the ADF 3, but in the present embodiment, the upper side 211 of each original 201 is the conveying direction 31. It is assumed that the original 201 is set so as to be behind the document.

図3は、第1原稿201aの第1面203を示し、図4は、第1原稿201aの第2面205を示す。第1原稿201aの第1面203には、複数の文字213が正立した向きで印刷されている。同様に、第1原稿201aの第2面205には、複数の文字213が正立した向きで印刷されている。 3 shows the first side 203 of the first original 201a, and FIG. 4 shows the second side 205 of the first original 201a. A plurality of characters 213 are printed upright on the first surface 203 of the first original 201a. Similarly, a plurality of characters 213 are printed upright on the second surface 205 of the first original 201a.

図5は、第2原稿201bの第1面203を示し、図6は、第2原稿201bの第2面205を示す。第2原稿201bの第1面203には、複数の文字213が正立した向きで印刷されている。一方、第2原稿201bの第2面205には、例えば「人物」を表すイラスト215が、正立した向きで印刷されている。すなわち、第2原稿201bの第2面205には、文字213が印刷されていない。 5 shows the first side 203 of the second original 201b, and FIG. 6 shows the second side 205 of the second original 201b. On the first surface 203 of the second document 201b, a plurality of characters 213 are printed in an upright orientation. On the other hand, on the second surface 205 of the second original 201b, an illustration 215 representing, for example, "person" is printed in an upright orientation. That is, the characters 213 are not printed on the second surface 205 of the second original 201b.

図7は、第3原稿201cの第1面203を示し、図8は、第3原稿201cの第2面205を示す。第3原稿201cの第1面203には、イラスト215が正立した向きで印刷されている。同様に、第3原稿201cの第2面205には、イラスト215が正立した向きで印刷されている。すなわち、第3原稿201cの第1面203および第2面205には、文字213が印刷されていない。 7 shows the first side 203 of the third original 201c, and FIG. 8 shows the second side 205 of the third original 201c. The illustration 215 is printed on the first surface 203 of the third original 201c in an upright orientation. Similarly, the illustration 215 is printed in an upright orientation on the second surface 205 of the third original 201c. That is, the characters 213 are not printed on the first surface 203 and the second surface 205 of the third original 201c.

図9は、第1原稿201aが読み取られた後、情報処理装置101が後述する個別回転処理および連動回転処理を実行しない場合に、処理側表示部113に表示された第1読取り画像207および第2読取り画像209を示す。図10は、第2原稿201bが読み取られた後、情報処理装置101が個別回転処理および連動回転処理を実行しない場合に、処理側表示部113に表示された第1読取り画像207および第2読取り画像209を示す。図11は、第3原稿201cが読み取られた後、情報処理装置101が個別回転処理および連動回転処理を実行しない場合に、処理側表示部113に表示された第1読取り画像207および第2読取り画像209を示す。 FIG. 9 shows the first read image 207 and the first read image 207 displayed on the processing side display unit 113 when the information processing apparatus 101 does not execute the individual rotation process and the interlocked rotation process described below after the first original 201a is read. 2 shows a read image 209. FIG. 10 shows the first read image 207 and the second read image displayed on the processing side display unit 113 when the information processing apparatus 101 does not execute the individual rotation process and the interlocked rotation process after the second document 201b is read. An image 209 is shown. FIG. 11 illustrates the first read image 207 and the second read image displayed on the processing side display unit 113 when the information processing apparatus 101 does not execute the individual rotation process and the interlocked rotation process after the third document 201c is read. An image 209 is shown.

セット部9には、上述したように、各原稿201の上辺211が搬送方向31の後方となるように、原稿201がセットされる。そのため、第1原稿201a、第2原稿201bおよび第3原稿201cのいずれについても、第1読取り画像207および第2読取り画像209が、正立した向きから180°回転した向きとなっている。 As described above, the originals 201 are set in the setting section 9 so that the upper side 211 of each original 201 is rearward in the transport direction 31. Therefore, the first read image 207 and the second read image 209 of all of the first original 201a, the second original 201b, and the third original 201c are oriented 180° from the upright orientation.

このように、第1読取り画像207或いは第2読取り画像209が正立した向きから回転していると、第1読取り画像207や第2読取り画像209に含まれる文字213やイラスト215等がユーザーにとって見づらいものとなる。そこで、情報処理装置101は、第1読取り画像207の向きおよび第2読取り画像209の向きを、自動的に補正するようにしている。情報処理装置101には、第1読取り画像207の向きおよび第2読取り画像209の向きを補正するために、個別回転処理と連動回転処理とが用意されている。なお、個別回転処理と連動回転処理とは、処理側表示部113に表示される操作画面において、ユーザーが選択可能となっている。 In this way, when the first read image 207 or the second read image 209 is rotated from the upright direction, the characters 213, the illustration 215, etc. included in the first read image 207 or the second read image 209 are displayed to the user. It becomes hard to see. Therefore, the information processing apparatus 101 automatically corrects the orientation of the first read image 207 and the orientation of the second read image 209. The information processing apparatus 101 is provided with an individual rotation process and an interlocked rotation process in order to correct the orientation of the first read image 207 and the orientation of the second read image 209. The individual rotation process and the interlocked rotation process can be selected by the user on the operation screen displayed on the processing side display unit 113.

図12に基づいて、個別回転処理について説明する。個別回転処理は、処理側CPU103がスキャナードライバーを実行することで、実現される。なお、個別回転処理は、ハードウェアのみで実現されてもよい。 The individual rotation process will be described with reference to FIG. The individual rotation processing is realized by the processing side CPU 103 executing the scanner driver. The individual rotation process may be realized only by hardware.

ステップS01において、処理側CPU103は、読取り装置1から送信された第1読取り画像207および第2読取り画像209を取得する。 In step S01, the processing side CPU 103 acquires the first read image 207 and the second read image 209 transmitted from the reading device 1.

ステップS02において、処理側CPU103は、第1読取り画像207に対して、文字認識処理を行うことで、第1読取り画像207の向きを特定する。すなわち、処理側CPU103は、第1読取り画像207に含まれる文字213を検出し、検出された個々の文字213を、例えば、0°、90°、180°および270°の反時計回りの回転角度で回転させ、予め登録された辞書とのマッチングを行う。処理側CPU103は、0°、90°、180°および270°のなかから、最も正しく文字認識できた回転角度を、その文字213の向きとして特定し、その回転角度を示す変数に投票する。処理側CPU103は、検出されたすべての文字213に対して投票を行った結果から、最も投票数の多い回転角度を、第1読取り画像207の向きと特定する。 In step S02, the processing side CPU 103 specifies the orientation of the first read image 207 by performing character recognition processing on the first read image 207. That is, the processing side CPU 103 detects the character 213 included in the first read image 207, and detects the detected individual characters 213 by, for example, counterclockwise rotation angles of 0°, 90°, 180°, and 270°. Rotate to match with a dictionary registered in advance. The processing-side CPU 103 specifies the rotation angle at which the character is most correctly recognized from 0°, 90°, 180°, and 270° as the direction of the character 213, and votes for the variable indicating the rotation angle. The processing-side CPU 103 specifies the rotation angle with the largest number of votes as the orientation of the first read image 207, based on the result of voting on all the detected characters 213.

ステップS03において、処理側CPU103は、第2読取り画像209に対して、文字認識処理を行うことで、第2読取り画像209の向きを特定する。その具体的な手法は、ステップS02と同様である。 In step S03, the processing side CPU 103 specifies the orientation of the second read image 209 by performing character recognition processing on the second read image 209. The specific method is the same as step S02.

ステップS04において、処理側CPU103は、ステップS02において文字認識処理により特定された第1読取り画像207の向きである第1文字認識画像向きに基づいて、第1読取り画像207を回転させる。ここで、第1文字認識画像向きに基づいて第1読取り画像207を回転させるとは、第1文字認識画像向きをθ1°としたときに、第1読取り画像207を時計回りにθ1°或いは反時計回りに(360−θ1)°回転させることを意味する。例えば、情報処理装置101は、第1文字認識画像向きが90°である場合には、第1読取り画像207を時計回りに90°或いは反時計回りに270°回転させる。これにより、第1読取り画像207の向きが0°となるように、すなわち第1読取り画像207に含まれる文字213が正立した向きとなるように、第1読取り画像207の向きを補正することができる。 In step S04, the processing side CPU 103 rotates the first read image 207 based on the first character recognition image orientation which is the orientation of the first read image 207 identified by the character recognition processing in step S02. Here, rotating the first read image 207 based on the orientation of the first character recognition image means that the first read image 207 is rotated clockwise by θ 1 ° when the orientation of the first character recognition image is θ 1 °. Alternatively, it means rotating in the counterclockwise direction by (360-θ 1 )°. For example, when the orientation of the first character recognition image is 90°, the information processing apparatus 101 rotates the first read image 207 90° clockwise or 270° counterclockwise. Accordingly, the orientation of the first read image 207 is corrected so that the orientation of the first read image 207 becomes 0°, that is, the character 213 included in the first read image 207 is oriented upright. You can

ステップS05において、処理側CPU103は、ステップS03において文字認識処理により特定された第2読取り画像209の向きである第2文字認識画像向きに基づいて、第2読取り画像209を回転させる。ここで、第2文字認識画像向きに基づいて第2読取り画像209を回転させるとは、第1読取り画像207の場合と同様に、第2文字認識画像向きをθ2°としたときに、第2読取り画像209を時計回りにθ2°或いは反時計回りに(360−θ2)°回転させることを意味する。なお、第1読取り画像207の回転方向と、第2読取り画像209の回転方向とは、同じでもよく、反対でもよい。 In step S05, the processing side CPU 103 rotates the second read image 209 based on the second character recognition image orientation which is the orientation of the second read image 209 specified by the character recognition processing in step S03. Here, rotating the second read image 209 based on the orientation of the second character recognition image means, as in the case of the first read image 207, when the orientation of the second character recognition image is set to θ 2 °. 2 This means that the read image 209 is rotated clockwise by θ 2 ° or counterclockwise by (360-θ 2 )°. The rotation direction of the first read image 207 and the rotation direction of the second read image 209 may be the same or opposite.

ステップS06において、処理側CPU103は、回転後の第1読取り画像207と、回転後の第2読取り画像209とを、処理側表示部113に表示させ、個別回転処理を終了する。 In step S06, the processing side CPU 103 causes the processing side display unit 113 to display the rotated first read image 207 and the rotated second read image 209, and ends the individual rotation processing.

ここで、より具体的に、ステップS01において、処理側CPU103が、第1原稿201aから読み取られた第1読取り画像207および第2読取り画像209を取得した場合と、第2原稿201bから読み取られた第1読取り画像207および第2読取り画像209を取得した場合と、第3原稿201cから読み取られた第1読取り画像207および第2読取り画像209を取得した場合とについて、説明する。 Here, more specifically, in step S01, the processing side CPU 103 obtains the first read image 207 and the second read image 209 read from the first original 201a, and the case where the processing side CPU 103 reads the second original 201b. A case where the first read image 207 and the second read image 209 are acquired and a case where the first read image 207 and the second read image 209 read from the third original 201c are acquired will be described.

ステップS01において、処理側CPU103が、第1原稿201aから読み取られた第1読取り画像207および第2読取り画像209(図9参照)を取得した場合には、ステップS02において、処理側CPU103は、文字認識処理により第1読取り画像207の向きを180°と特定する。同様に、ステップS03において、処理側CPU103は、文字認識処理により第2読取り画像209の向きを180°と特定する。 In step S01, when the processing side CPU 103 acquires the first read image 207 and the second read image 209 (see FIG. 9) read from the first original 201a, in step S02, the processing side CPU 103 The orientation of the first read image 207 is specified as 180° by the recognition processing. Similarly, in step S03, the processing side CPU 103 specifies the orientation of the second read image 209 as 180° by the character recognition processing.

ステップS04において、処理側CPU103は、文字認識処理により特定された第1読取り画像207の向きである第1文字認識画像向きが180°であるため、第1読取り画像207を、時計回りに180°或いは反時計回りに180°回転させる。これにより、第1読取り画像207の向きが0°に補正される。 In step S04, the processing side CPU 103 rotates the first read image 207 180° clockwise because the first character recognition image orientation that is the orientation of the first read image 207 identified by the character recognition processing is 180°. Alternatively, rotate 180° counterclockwise. As a result, the orientation of the first read image 207 is corrected to 0°.

ステップS05において、処理側CPU103は、文字認識処理により特定された第2読取り画像209の向きである第2文字認識画像向きが180°であるため、第2読取り画像209を、時計回りに180°或いは反時計回りに180°回転させる。これにより、第2読取り画像209の向きが0°に補正される。 In step S05, the processing side CPU 103 rotates the second read image 209 180° clockwise because the second character recognition image orientation that is the orientation of the second read image 209 specified by the character recognition processing is 180°. Alternatively, rotate 180° counterclockwise. As a result, the orientation of the second read image 209 is corrected to 0°.

ステップS06において、処理側CPU103は、図13に示したように、回転後の第1読取り画像207、すなわち画像の向きが0°に補正された第1読取り画像207と、回転後の第2読取り画像209、すなわち画像の向きが0°に補正された第2読取り画像209と、を処理側表示部113に表示させる。 In step S06, the processing side CPU 103, as shown in FIG. 13, the first read image 207 after rotation, that is, the first read image 207 in which the orientation of the image is corrected to 0°, and the second read image after rotation. The image 209, that is, the second read image 209 in which the orientation of the image is corrected to 0° is displayed on the processing side display unit 113.

このように、処理側CPU103が個別回転処理を行うことで、第1読取り画像207および第2読取り画像209のいずれについても、文字認識処理により正しく向きが特定された場合には、回転後の第1読取り画像207の向きと回転後の第2読取り画像209の向きとを、所望の向き、すなわち0°に揃えることができる。 In this way, when the processing-side CPU 103 performs the individual rotation processing, if the character recognition processing correctly identifies the orientation of both the first read image 207 and the second read image 209, the rotated first image is obtained. The direction of the first read image 207 and the direction of the second read image 209 after rotation can be aligned in a desired direction, that is, 0°.

ステップS01において、処理側CPU103が、第2原稿201bから読み取られた第1読取り画像207および第2読取り画像209(図10参照)を取得した場合には、ステップS02において、処理側CPU103は、第1読取り画像207の向きを180°と特定する。 When the processing-side CPU 103 acquires the first read image 207 and the second read image 209 (see FIG. 10) read from the second original 201b in step S01, the processing-side CPU 103 determines in step S02 1 The direction of the read image 207 is specified as 180°.

ステップS03において、処理側CPU103は、上述したように、第2原稿201bの第2面205には、文字213ではなく、イラスト215が印刷されていることから、文字認識処理によって第2読取り画像209の向きを正確に特定することができない。ここでは、第2読取り画像209の向きは本来180°であるが、処理側CPU103は、第2読取り画像209の向きを誤って0°と特定したものとする。 In step S03, as described above, the processing-side CPU 103 prints the illustration 215 instead of the characters 213 on the second surface 205 of the second original 201b, and thus the second read image 209 is obtained by the character recognition process. Can't pinpoint the direction of. Here, the orientation of the second read image 209 is originally 180°, but the processing side CPU 103 erroneously specifies the orientation of the second read image 209 as 0°.

ステップS04において、処理側CPU103は、文字認識処理により特定された第1読取り画像207の向きである第1文字認識画像向きが180°であるため、第1読取り画像207を、時計回りに180°或いは反時計回りに180°回転させる。これにより、第1読取り画像207の向きが0°に補正される。 In step S04, the processing side CPU 103 rotates the first read image 207 180° clockwise because the first character recognition image orientation that is the orientation of the first read image 207 identified by the character recognition processing is 180°. Alternatively, rotate 180° counterclockwise. As a result, the orientation of the first read image 207 is corrected to 0°.

ステップS05において、処理側CPU103は、文字認識処理により特定された第2読取り画像209の向きである第2文字認識画像向きが0°であるため、第2読取り画像209を、時計回りに0°或いは反時計回りに360°回転させる。すなわち、処理側CPU103は、第2読取り画像209を実質的に回転させない。このため、第2読取り画像209の向きは、180°のままとなる。 In step S05, the processing side CPU 103 rotates the second read image 209 clockwise by 0° because the second character recognition image orientation that is the orientation of the second read image 209 specified by the character recognition processing is 0°. Alternatively, rotate 360° counterclockwise. That is, the processing side CPU 103 does not substantially rotate the second read image 209. Therefore, the orientation of the second read image 209 remains 180°.

ステップS06において、処理側CPU103は、図14に示したように、回転後の第1読取り画像207、すなわち画像の向きが0°に補正された第1読取り画像207と、回転させなかった第2読取り画像209、すなわち画像の向きが180°のままの第2読取り画像209と、を処理側表示部113に表示させる。 In step S06, the processing side CPU 103, as shown in FIG. 14, the first read image 207 after rotation, that is, the first read image 207 in which the orientation of the image is corrected to 0°, and the second image not rotated. The read image 209, that is, the second read image 209 in which the orientation of the image remains 180° is displayed on the processing side display unit 113.

このように、第1読取り画像207および第2読取り画像209の一方については、文字認識処理により正しく向きが特定されたが、第1読取り画像207および第2読取り画像209の他方については、文字認識処理により誤って向きが特定された場合には、処理側CPU103が個別回転処理を行っても、回転後の第1読取り画像207の向きと回転後の第2読取り画像209の向きとを揃えることができない。 As described above, the direction of one of the first read image 207 and the second read image 209 was correctly identified by the character recognition processing, but the direction of the other of the first read image 207 and the second read image 209 was recognized. When the orientation is erroneously specified by the processing, the orientation of the rotated first read image 207 and the orientation of the rotated second read image 209 are aligned even if the processing-side CPU 103 performs the individual rotation processing. I can't.

ステップS01において、処理側CPU103が、第3原稿201cから読み取られた第1読取り画像207および第2読取り画像209(図11参照)を取得した場合、ステップS02において、処理側CPU103は、上述したように、第3原稿201cの第1面203には、文字213ではなく、イラスト215が印刷されていることから、文字認識処理によって第1読取り画像207の向きを正確に特定することができない。ここでは、第1読取り画像207の向きは本来180°であるが、処理側CPU103は、第1読取り画像207の向きを誤って90°と特定したものとする。 When the processing side CPU 103 acquires the first read image 207 and the second read image 209 (see FIG. 11) read from the third original 201c in step S01, the processing side CPU 103 determines in step S02 as described above. In addition, since the illustration 215, not the characters 213, is printed on the first surface 203 of the third original 201c, the orientation of the first read image 207 cannot be accurately specified by the character recognition process. Here, the orientation of the first read image 207 is originally 180°, but the processing side CPU 103 erroneously specifies the orientation of the first read image 207 as 90°.

ステップS03において、処理側CPU103は、第3原稿201cの第2面205には、文字213ではなく、イラスト215が印刷されていることから、文字認識処理によって第2読取り画像209の向きを正確に特定することができない。ここでは、第2読取り画像209の向きは本来180°であるが、処理側CPU103は、第2読取り画像209の向きを誤って0°と特定したものとする。 In step S03, since the processing side CPU 103 prints the illustration 215 instead of the character 213 on the second surface 205 of the third original 201c, the orientation of the second read image 209 is accurately determined by the character recognition processing. I cannot identify. Here, the orientation of the second read image 209 is originally 180°, but the processing side CPU 103 erroneously specifies the orientation of the second read image 209 as 0°.

ステップS04において、処理側CPU103は、文字認識処理により特定された第1読取り画像207の向きである第1文字認識画像向きが90°であるため、第1読取り画像207を、時計回りに90°或いは反時計回りに270°回転させる。このため、第1読取り画像207の向きは、90°となる。 In step S04, the processing-side CPU 103 rotates the first read image 207 90° clockwise because the first character recognition image orientation that is the orientation of the first read image 207 identified by the character recognition processing is 90°. Alternatively, rotate it 270° counterclockwise. Therefore, the orientation of the first read image 207 is 90°.

ステップS05において、処理側CPU103は、文字認識処理により特定された第2読取り画像209の向きである第2文字認識画像向きが0°であるため、第2読取り画像209を、時計回りに0°或いは反時計回りに360°回転させる。すなわち、処理側CPU103は、第2読取り画像209を実質的に回転させない。このため、第2読取り画像209の向きは、180°のままとなる。 In step S05, the processing side CPU 103 rotates the second read image 209 clockwise by 0° because the second character recognition image orientation that is the orientation of the second read image 209 specified by the character recognition processing is 0°. Alternatively, rotate 360° counterclockwise. That is, the processing side CPU 103 does not substantially rotate the second read image 209. Therefore, the orientation of the second read image 209 remains 180°.

ステップS06において、処理側CPU103は、図15に示したように、回転後の第1読取り画像207、すなわち画像の向きが90°となった第1読取り画像207と、回転させなかった第2読取り画像209、すなわち画像の向きが180°のままの第2読取り画像209と、を処理側表示部113に表示させる。 In step S06, the processing-side CPU 103, as shown in FIG. 15, rotates the first read image 207, that is, the first read image 207 whose image orientation is 90°, and the second read image that is not rotated. The image 209, that is, the second read image 209 in which the orientation of the image remains 180° is displayed on the processing side display unit 113.

このように、第1読取り画像207および第2読取り画像209のいずれもが、文字認識処理により誤って向きが特定された場合には、処理側CPU103が個別回転処理を行っても、回転後の第1読取り画像207の向きと回転後の第2読取り画像209の向きとを揃えることができない。 As described above, when the orientations of both the first read image 207 and the second read image 209 are erroneously specified by the character recognition process, even after the processing-side CPU 103 performs the individual rotation process, the rotated image is not rotated. The orientation of the first read image 207 and the orientation of the second read image 209 after rotation cannot be aligned.

そこで、情報処理装置101は、第1読取り画像207および第2読取り画像209の少なくとも一方について、文字認識処理により誤って向きが特定された場合にも、回転後の第1読取り画像207の向きと回転後の第2読取り画像209の向きとを揃えることができる連動回転処理を備えている。 Therefore, the information processing apparatus 101 determines the orientation of the first read image 207 after rotation even when the orientation is erroneously specified by the character recognition process for at least one of the first read image 207 and the second read image 209. An interlocking rotation process that can align the orientation of the second read image 209 after rotation is provided.

図16に基づいて、連動回転処理について説明する。この連動回転処理は、「画像回転方法」の一例である。連動回転処理は、個別回転処理と同様に、処理側CPU103がスキャナードライバーを実行することで、実現される。なお、連動回転処理は、ハードウェアのみで実現されてもよい。 The interlocked rotation process will be described with reference to FIG. This interlocked rotation process is an example of an “image rotation method”. The interlocked rotation process is realized by the processing side CPU 103 executing the scanner driver, similarly to the individual rotation process. The interlocked rotation process may be realized only by hardware.

ステップS11において、処理側CPU103は、読取り装置1から送信された第1読取り画像207および第2読取り画像209を取得する。 In step S11, the processing side CPU 103 acquires the first read image 207 and the second read image 209 transmitted from the reading device 1.

ステップS12において、処理側CPU103は、ステップS02と同様に、第1読取り画像207に対して、文字認識処理を行うことで、第1読取り画像207の向きを特定する。さらに、処理側CPU103は、特定された第1読取り画像207の向きに対する信頼度である第1画像向き信頼度を算出する。すなわち、処理側CPU103は、第1読取り画像207に含まれる個々の文字213について、ステップS02と同様に、最も正しく文字認識できた回転角度を示す変数に投票する。さらに、処理側CPU103は、回転角度ごとに文字認識処理の信頼度を保存し、最も得票数の多い回転角度に対応する信頼度の平均値を、第1画像向き信頼度とする。 In step S12, the processing side CPU 103 specifies the orientation of the first read image 207 by performing character recognition processing on the first read image 207, as in step S02. Further, the processing CPU 103 calculates the first image orientation reliability, which is the reliability with respect to the identified orientation of the first read image 207. That is, the processing-side CPU 103 votes for each character 213 included in the first read image 207, as in step S02, for a variable indicating the rotation angle at which the character is most correctly recognized. Further, the processing side CPU 103 stores the reliability of the character recognition processing for each rotation angle, and sets the average value of the reliability corresponding to the rotation angle with the largest number of votes as the first image orientation reliability.

ステップS13において、処理側CPU103は、第2読取り画像209に対して、文字認識処理を行うことで、第2読取り画像209の向きを特定する。さらに、処理側CPU103は、特定された第2読取り画像209の向きに対する信頼度である第2画像向き信頼度を算出する。その具体的な手法は、ステップS12と同様である。 In step S13, the processing side CPU 103 specifies the orientation of the second read image 209 by performing character recognition processing on the second read image 209. Further, the processing-side CPU 103 calculates the second image orientation reliability, which is the reliability with respect to the identified orientation of the second read image 209. The specific method is the same as step S12.

ステップS14において、処理側CPU103は、第1画像向き信頼度および第2画像向き信頼度がいずれも閾値よりも小さいか否かを判断する。閾値は、文字認識処理によって第1読取り画像207の向きや第2読取り画像209の向きを正確に特定することができないときに得られる信頼度よりも大きな値となるように、設定される。なお、閾値は、例えば、スキャナードライバーに予め設定されたものでもよく、処理側操作部111が受け付けたユーザーの選択操作に基づいて設定されたものでもよい。処理側CPU103は、第1画像向き信頼度および第2画像向き信頼度の少なくとも一方が閾値以上である、と判断した場合(S14;No)、ステップS15に進む。 In step S14, the processing side CPU 103 determines whether the first image orientation reliability and the second image orientation reliability are both smaller than the threshold value. The threshold value is set to be larger than the reliability obtained when the orientation of the first read image 207 and the orientation of the second read image 209 cannot be accurately specified by the character recognition processing. The threshold value may be set in advance in the scanner driver, or may be set based on the user's selection operation received by the processing side operation unit 111. When the processing side CPU 103 determines that at least one of the first image orientation reliability and the second image orientation reliability is greater than or equal to the threshold value (S14; No), the process proceeds to step S15.

ステップS15において、処理側CPU103は、第1画像向き信頼度が、第2画像向き信頼度以上であるか否かを判断する。処理側CPU103は、第1画像向き信頼度が、第2画像向き信頼度以上であると判断した場合(S15;Yes)、ステップS16に進む。 In step S15, the processing side CPU 103 determines whether or not the first image orientation reliability is equal to or higher than the second image orientation reliability. When the processing side CPU 103 determines that the first image orientation reliability is equal to or higher than the second image orientation reliability (S15; Yes), the process proceeds to step S16.

ステップS16において、処理側CPU103は、特定された第1読取り画像207の向きである第1文字認識画像向きに基づいて、第1読取り画像207および第2読取り画像209を回転させる。ここで、第1文字認識画像向きに基づいて第1読取り画像207および第2読取り画像209を回転させるとは、第1文字認識画像向きをθ1°としたときに、第1読取り画像207を時計回りにθ1°或いは反時計回りに(360−θ1)°回転させ、また、第2読取り画像209を時計回りにθ1°或いは反時計回りに(360−θ1)°回転させることを意味する。これにより、回転後の第1読取り画像207の向きと回転後の第2読取り画像209の向きとを揃えることができる。なお、第1読取り画像207の回転方向と、第2読取り画像209の回転方向とは、同じでもよく、反対でもよい。 In step S16, the processing side CPU 103 rotates the first read image 207 and the second read image 209 based on the first character recognition image orientation that is the identified orientation of the first read image 207. Here, rotating the first read image 207 and the second read image 209 based on the first character recognition image orientation means that the first read image 207 is rotated when the first character recognition image orientation is θ 1 °. Rotating clockwise by θ 1 ° or counterclockwise by (360-θ 1 )°, and rotating the second read image 209 clockwise by θ 1 ° or counterclockwise by (360-θ 1 )°. Means Thereby, the orientation of the first read image 207 after rotation and the orientation of the second read image 209 after rotation can be aligned. The rotation direction of the first read image 207 and the rotation direction of the second read image 209 may be the same or opposite.

一方、ステップS15において、処理側CPU103は、第1画像向き信頼度が、第2画像向き信頼度よりも小さいと判断した場合(S15;No)、ステップS17に進む。 On the other hand, in step S15, when the processing side CPU 103 determines that the first image orientation reliability is smaller than the second image orientation reliability (S15; No), the process proceeds to step S17.

ステップS17において、処理側CPU103は、特定された第2読取り画像209の向きである第2文字認識画像向きに基づいて、第1読取り画像207および第2読取り画像209を回転させる。ここで、第2文字認識画像向きに基づいて第1読取り画像207および第2読取り画像209を回転させるとは、第2文字認識画像向きをθ2°としたときに、第1読取り画像207を時計回りにθ2°或いは反時計回りに(360−θ2)°回転させ、また、第2読取り画像209を時計回りにθ2°或いは反時計回りに(360−θ2)°回転させることを意味する。これにより、回転後の第1読取り画像207の向きと回転後の第2読取り画像209の向きとを揃えることができる。なお、第1読取り画像207の回転方向と、第2読取り画像209の回転方向とは、同じでもよく、反対でもよい。 In step S17, the processing side CPU 103 rotates the first read image 207 and the second read image 209 based on the second character recognition image orientation that is the identified orientation of the second read image 209. Here, rotating the first read image 207 and the second read image 209 based on the second character recognition image orientation means that the first read image 207 is rotated when the second character recognition image orientation is θ 2 °. Rotate clockwise by θ 2 ° or counterclockwise by (360-θ 2 )°, and rotate the second read image 209 clockwise by θ 2 ° or counterclockwise by (360-θ 2 )°. Means Thereby, the orientation of the first read image 207 after rotation and the orientation of the second read image 209 after rotation can be aligned. The rotation direction of the first read image 207 and the rotation direction of the second read image 209 may be the same or opposite.

一方、ステップS14において、処理側CPU103は、第1画像向き信頼度および第2画像向き信頼度がいずれも閾値よりも小さい、と判断した場合(S14;Yes)、ステップS18に進む。 On the other hand, in step S14, when the processing-side CPU 103 determines that both the first image orientation reliability and the second image orientation reliability are smaller than the threshold value (S14; Yes), the process proceeds to step S18.

ステップS18において、処理側CPU103は、文字認識処理以外の画像解析処理により、第1読取り画像207の向きを特定する。文字認識処理以外の画像解析処理により、第1読取り画像207の向きを特定する方法としては、例えば、第1読取り画像207に含まれる「人物」の特徴部位の位置関係に基づいて画像の向きを特定する方法、第1読取り画像207に含まれる「空」および「地上」の位置関係に基づいて画像の向きを特定する方法、などを用いることができる。 In step S18, the processing side CPU 103 identifies the orientation of the first read image 207 by image analysis processing other than the character recognition processing. As a method of identifying the orientation of the first read image 207 by image analysis processing other than the character recognition processing, for example, the orientation of the image is determined based on the positional relationship of the characteristic parts of the “person” included in the first read image 207. A method of specifying, a method of specifying the orientation of the image based on the positional relationship between “sky” and “ground” included in the first read image 207, and the like can be used.

ステップS19において、処理側CPU103は、文字認識処理以外の画像解析処理により、第2読取り画像209の向きを特定する。その具体的な手法は、ステップS18と同様である。 In step S19, the processing side CPU 103 specifies the orientation of the second read image 209 by image analysis processing other than the character recognition processing. The specific method is the same as step S18.

ステップS20において、処理側CPU103は、文字認識処理以外の画像解析処理により特定された第1読取り画像207の向きである第1非文字認識画像向きに基づいて、第1読取り画像207を回転させる。ここで、第1非文字認識画像向きに基づいて第1読取り画像207を回転させるとは、第1非文字認識画像向きをα1°としたときに、第1読取り画像207を時計回りにα1°或いは反時計回りに(360−α1)°回転させることを意味する。これにより、第1読取り画像207の向きが0°となるように、すなわち第1読取り画像207に含まれるイラスト215等が正立した向きとなるように、第1読取り画像207の向きを補正することができる。 In step S20, the processing side CPU 103 rotates the first read image 207 based on the first non-character recognized image orientation that is the orientation of the first read image 207 identified by the image analysis processing other than the character recognition processing. Here, rotating the first read image 207 based on the orientation of the first non-character recognized image means that when the orientation of the first non-character recognized image is α 1 °, the first read image 207 is rotated clockwise by α. This means rotating by 1 ° or counterclockwise (360-α 1 )°. Thereby, the orientation of the first read image 207 is corrected so that the orientation of the first read image 207 becomes 0°, that is, the illustration 215 and the like included in the first read image 207 are oriented upright. be able to.

ステップS21において、処理側CPU103は、文字認識処理以外の画像解析処理により特定された第2読取り画像209の向きである第2非文字認識画像向きに基づいて、第2読取り画像209を回転させる。ここで、第2非文字認識画像向きに基づいて第2読取り画像209を回転させるとは、第2非文字認識画像向きをα2°としたときに、第2読取り画像209を時計回りにα2°或いは反時計回りに(360−α2)°回転させることを意味する。これにより、第2読取り画像209の向きが0°となるように、すなわち第2読取り画像209に含まれるイラスト215等が正立した向きとなるように、第2読取り画像209の向きを補正することができる。なお、第1読取り画像207の回転方向と、第2読取り画像209の回転方向とは、同じでもよく、反対でもよい。 In step S21, the processing side CPU 103 rotates the second read image 209 based on the second non-character recognized image orientation which is the orientation of the second read image 209 specified by the image analysis processing other than the character recognition processing. Here, rotating the second read image 209 based on the second non-character recognized image orientation means that the second read image 209 is rotated clockwise by α 2 degrees when the second non-character recognized image orientation is α 2 °. It means rotating by 2 ° or counterclockwise (360-α 2 )°. As a result, the orientation of the second read image 209 is corrected so that the orientation of the second read image 209 is 0°, that is, the illustration 215 and the like included in the second read image 209 are oriented upright. be able to. The rotation direction of the first read image 207 and the rotation direction of the second read image 209 may be the same or opposite.

ステップS22において、処理側CPU103は、回転後の第1読取り画像207と、回転後の第2読取り画像209とを、処理側表示部113に表示させ、連動回転処理を終了する。 In step S22, the processing side CPU 103 displays the rotated first read image 207 and the rotated second read image 209 on the processing side display unit 113, and ends the interlocked rotation process.

ここで、より具体的に、ステップS11において、処理側CPU103が、第2原稿201bから読み取られた第1読取り画像207および第2読取り画像209を取得した場合と、第3原稿201cから読み取られた第1読取り画像207および第2読取り画像209を取得した場合とについて、説明する。 Here, more specifically, in step S11, the processing side CPU 103 acquires the first read image 207 and the second read image 209 read from the second original 201b and the case where the processing side CPU 103 reads the third original 201c. A case where the first read image 207 and the second read image 209 are acquired will be described.

ステップS11において、処理側CPU103が、第2原稿201bから読み取られた第1読取り画像207および第2読取り画像209(図10参照)を取得した場合には、ステップS12において、処理側CPU103は、文字認識処理により第1読取り画像207の向きを180°と特定し、第1画像向き信頼度を、R1と算出する。 When the processing-side CPU 103 acquires the first read image 207 and the second read image 209 (see FIG. 10) read from the second original 201b in step S11, the processing-side CPU 103 determines in step S12 that the character By the recognition processing, the orientation of the first read image 207 is specified as 180°, and the first image orientation reliability is calculated as R 1 .

ステップS13において、処理側CPU103は、上述したように、第2原稿201bの第2面205には、文字213ではなく、イラスト215が印刷されていることから、文字認識処理によって第2読取り画像209の向きを正確に特定することができない。ここでは、第2読取り画像209の向きは本来180°であるが、処理側CPU103は、第2読取り画像209の向きを誤って0°と特定し、第2画像向き信頼度を、R2と算出したものとする。第2読取り画像209には、文字認識可能な文字213が含まれないため、第2画像向き信頼度(R2)は、第1画像向き信頼度(R1)より小さくなる。また、第1画像向き信頼度(R1)は、閾値よりも大きいが、第2画像向き信頼度(R2)は、閾値よりも小さい値である。 In step S13, as described above, the processing-side CPU 103 prints the illustration 215 instead of the characters 213 on the second surface 205 of the second original 201b. Can't pinpoint the direction of. Here, the orientation of the second read image 209 is originally 180°, but the processing side CPU 103 erroneously specifies the orientation of the second read image 209 as 0°, and sets the second image orientation reliability to R 2 . It shall be calculated. Since the second read image 209 does not include the character 213 that can be recognized, the second image orientation reliability (R 2 ) is smaller than the first image orientation reliability (R 1 ). Further, the first image orientation reliability (R 1 ) is larger than the threshold value, but the second image orientation reliability (R 2 ) is a value smaller than the threshold value.

ステップS14において、処理側CPU103は、第1画像向き信頼度(R1)および第2画像向き信頼度(R2)のうち、第1画像向き信頼度が閾値以上であると判断し(S14;No)、ステップS15に進む。 In step S14, the processing side CPU 103 determines that the first image orientation reliability is equal to or higher than the threshold value among the first image orientation reliability (R 1 ) and the second image orientation reliability (R 2 ) (S14; No), and proceeds to step S15.

ステップS15において、処理側CPU103は、第1画像向き信頼度(R1)が、第2画像向き信頼度(R2)以上であると判断し(S15;Yes)、ステップS16に進む。 In step S15, the processing side CPU 103 determines that the first image orientation reliability (R 1 ) is equal to or higher than the second image orientation reliability (R 2 ) (S15; Yes), and proceeds to step S16.

ステップS16において、処理側CPU103は、文字認識処理により特定された第1読取り画像207の向きである第1文字認識画像向きが180°であるため、第1読取り画像207を、時計回りに180°或いは反時計回りに180°回転させ、第2読取り画像209を、時計回りに180°或いは反時計回りに180°回転させる。 In step S16, the processing side CPU 103 rotates the first read image 207 180° clockwise because the first character recognition image orientation that is the orientation of the first read image 207 identified by the character recognition processing is 180°. Alternatively, it is rotated counterclockwise by 180°, and the second read image 209 is rotated clockwise by 180° or counterclockwise by 180°.

ステップS22において、処理側CPU103は、図17に示したように、回転後の第1読取り画像207、すなわち画像の向きが0°に補正された第1読取り画像207と、回転後の第2読取り画像209、すなわち画像の向きが0°に補正された第2読取り画像209と、を処理側表示部113に表示させる。 In step S22, the processing-side CPU 103, as shown in FIG. 17, rotates the first read image 207, that is, the first read image 207 in which the orientation of the image is corrected to 0°, and the second read image after the rotation. The image 209, that is, the second read image 209 in which the orientation of the image is corrected to 0° is displayed on the processing side display unit 113.

このように、処理側CPU103が連動回転処理を行うことで、第1読取り画像207および第2読取り画像209の一方については、文字認識処理により正しく向きが特定されたが、第1読取り画像207および第2読取り画像209の他方については、文字認識処理により誤って向きが特定された場合にも、回転後の第1読取り画像207の向きと回転後の第2読取り画像209の向きとを、所望の向きに揃えることができる。なお、第2原稿201bの第2面205のように、イラスト215のみが印刷された場合に限らず、文字213が印刷されているが、文字認識可能な文字213が少ない場合にも、本構成は有用である。 In this way, the processing-side CPU 103 performs the interlocked rotation process, so that the character recognition process correctly identifies the orientation of one of the first read image 207 and the second read image 209. Regarding the other side of the second read image 209, even if the direction is erroneously specified by the character recognition processing, the direction of the first read image 207 after rotation and the direction of the second read image 209 after rotation are desired. Can be aligned in the direction of. The character 213 is printed not only when only the illustration 215 is printed like the second surface 205 of the second original 201b, but when the number of character recognizable characters 213 is small, the present configuration is also possible. Is useful.

ステップS11において、処理側CPU103が、第3原稿201cから読み取られた第1読取り画像207および第2読取り画像209(図11参照)を取得した場合には、ステップS12において、処理側CPU103は、上述したように、第3原稿201cの第1面203には、文字213ではなく、イラスト215が印刷されていることから、文字認識処理によって第1読取り画像207の向きを正確に特定することができない。ここでは、第1読取り画像207の向きは本来180°であるが、処理側CPU103は、第1読取り画像207の向きを誤って90°と特定し、第1画像向き信頼度を、R3と算出したものとする。 When the processing-side CPU 103 acquires the first read image 207 and the second read image 209 (see FIG. 11) read from the third original 201c in step S11, the processing-side CPU 103 determines in step S12 that As described above, since the illustration 215 is printed on the first surface 203 of the third document 201c instead of the characters 213, the orientation of the first read image 207 cannot be accurately specified by the character recognition process. .. Here, the orientation of the first read image 207 is originally 180°, but the processing side CPU 103 erroneously specifies the orientation of the first read image 207 as 90°, and sets the first image orientation reliability to R 3 . It shall be calculated.

ステップS13において、処理側CPU103は、第3原稿201cの第2面205には、文字213ではなく、イラスト215が印刷されていることから、文字認識処理によって第2読取り画像209の向きを正確に特定することができない。ここでは、第2読取り画像209の向きは本来180°であるが、処理側CPU103は、第2読取り画像209の向きを誤って0°と特定し、第2画像向き信頼度を、R4と算出したものとする。第1画像向き信頼度(R3)および第2画像向き信頼度(R4)は、いずれも閾値以下の値である。 In step S13, the processing-side CPU 103 accurately prints the orientation of the second read image 209 by the character recognition process because the illustration 215 is printed on the second surface 205 of the third document 201c instead of the character 213. I cannot identify. Here, although the orientation of the second read image 209 is originally 180°, the processing side CPU 103 erroneously specifies the orientation of the second read image 209 as 0°, and sets the second image orientation reliability to R 4 . It shall be calculated. The first image orientation reliability (R 3 ) and the second image orientation reliability (R 4 ) are both values equal to or less than the threshold value.

ステップS14において、処理側CPU103は、第1画像向き信頼度(R3)および第2画像向き信頼度(R4)がいずれも閾値以下であると判断し(S14;Yes)、ステップS18に進む。 In step S14, the processing side CPU103 is first image direction reliability (R 3) and a second image orientation reliability (R 4) is determined to either the threshold value or less (S14; Yes), the process proceeds to step S18 ..

ステップS18において、処理側CPU103は、文字認識処理以外の画像解析処理により、第1読取り画像207の向きを180°と特定する。同様に、ステップS19において、処理側CPU103は、文字認識処理以外の画像解析処理により、第2読取り画像209の向きを180°と特定する。 In step S18, the processing side CPU 103 specifies the orientation of the first read image 207 as 180° by the image analysis processing other than the character recognition processing. Similarly, in step S19, the processing side CPU 103 specifies the orientation of the second read image 209 as 180° by the image analysis processing other than the character recognition processing.

ステップS20において、処理側CPU103は、文字認識処理以外の画像解析処理により特定された第1読取り画像207の向きである第1非文字認識画像向きが180°であるため、第1読取り画像207を、時計回りに180°或いは反時計回りに180°回転させる。これにより、第1読取り画像207の向きが0°に補正される。 In step S20, the processing side CPU 103 sets the first read image 207 to the first non-character recognized image orientation of 180°, which is the orientation of the first read image 207 identified by the image analysis processing other than the character recognition processing. , 180° clockwise or 180° counterclockwise. As a result, the orientation of the first read image 207 is corrected to 0°.

ステップS21において、処理側CPU103は、文字認識処理以外の画像解析処理により特定された第2読取り画像209の向きである第2非文字認識画像向きが180°であるため、第2読取り画像209を、時計回りに180°或いは反時計回りに180°回転させる。これにより、第2読取り画像209の向きが0°に補正される。 In step S21, the processing side CPU 103 selects the second read image 209 because the second non-character recognized image orientation, which is the orientation of the second read image 209 specified by the image analysis processing other than the character recognition processing, is 180°. , 180° clockwise or 180° counterclockwise. As a result, the orientation of the second read image 209 is corrected to 0°.

ステップS22において、処理側CPU103は、図18に示したように、回転後の第1読取り画像207、すなわち画像の向きが0°に補正された第1読取り画像207と、回転後の第2読取り画像209、すなわち画像の向きが0°に補正された第2読取り画像209と、を処理側表示部113に表示させる。 In step S22, the processing side CPU 103, as shown in FIG. 18, the first read image 207 after rotation, that is, the first read image 207 in which the orientation of the image is corrected to 0°, and the second read image after rotation. The image 209, that is, the second read image 209 in which the orientation of the image is corrected to 0° is displayed on the processing side display unit 113.

このように、処理側CPU103が連動回転処理を行うことで、第1読取り画像207および第2読取り画像209のいずれについても、文字認識処理により誤って向きが特定された場合にも、回転後の第1読取り画像207の向きと回転後の第2読取り画像209の向きとを、所望の向きに揃えることができる。なお、第3原稿201cの第1面203或いは第2面205のように、イラスト215のみが印刷された場合に限らず、文字213が印刷されているが、文字認識可能な文字213が少ない場合にも、本構成は有用である。 As described above, the processing-side CPU 103 performs the interlocked rotation process, so that the orientation of the first read image 207 and the second read image 209 is not changed even after the orientation is erroneously specified by the character recognition process. The orientation of the first read image 207 and the orientation of the rotated second read image 209 can be aligned in a desired orientation. Note that when the illustration 215 alone is printed as in the case of the first surface 203 or the second surface 205 of the third original 201c, the character 213 is printed, but the number of character recognizable characters 213 is small. However, this configuration is useful.

続いて、個別回転処理や連動回転処理において行われる文字認識処理の変形例について説明する。図19に示すように、原稿201のヘッダー領域217およびフッター領域219には、通常、日付、ファイル名、頁番号等の文字213が含まれ、イラスト215等が含まれることが少ない。一方、原稿201のヘッダー領域217でなくフッター領域219でもない領域には、ヘッダー領域217およびフッター領域219に比べ、イラスト215等が含まれることが多い。そのため、ヘッダー領域217でなくフッター領域219でもない領域に含まれるイラスト215等を、文字認識処理により誤って文字213と認識してしまい、その結果、第1読取り画像207の向きを誤って特定するおそれがある。 Next, a modified example of the character recognition process performed in the individual rotation process or the interlocked rotation process will be described. As shown in FIG. 19, the header area 217 and the footer area 219 of the original 201 usually include characters 213 such as date, file name, page number, and rarely include an illustration 215. On the other hand, the area other than the header area 217 and the footer area 219 of the original 201 often includes the illustration 215 and the like as compared with the header area 217 and the footer area 219. Therefore, the illustration 215 or the like included in the area that is neither the header area 217 nor the footer area 219 is erroneously recognized as the character 213 by the character recognition processing, and as a result, the orientation of the first read image 207 is erroneously specified. There is a risk.

そこで、処理側CPU103は、原稿201の第1面203のうち、ヘッダー領域217およびフッター領域219が含まれる第1端部領域221のみに対して文字認識処理を行い、第1端部領域221に含まれる文字213について特定された向きである第1端部文字向きに基づいて、第1読取り画像207の向きを特定してもよい。処理側CPU103は、原稿201の上辺211から第1寸法の範囲にある領域と、原稿201の下辺223から第2寸法の範囲にある領域とを、第1端部領域221とする。なお、第1寸法および第2寸法は、例えば、スキャナードライバーに予め設定されたものでもよく、処理側操作部111が受け付けたユーザーの選択操作に基づいて設定されたものでもよい。また、第1端部領域221には、ヘッダー領域217およびフッター領域219の少なくとも一方が含まれればよい。このように、第1端部領域221のみに対して文字認識を行うことで、ヘッダー領域217でなくフッター領域219でもない領域に含まれるイラスト215等を、文字認識により誤って文字213と認識することを回避することができる。このため、ヘッダー領域217でなくフッター領域219でもない領域にイラスト215等が含まれる場合にも、第1読取り画像207の向きを精度良く特定することができる。 Therefore, the processing side CPU 103 performs character recognition processing only on the first end area 221 including the header area 217 and the footer area 219 of the first surface 203 of the original 201, and the character recognition processing is performed on the first end area 221. The orientation of the first read image 207 may be identified based on the first edge character orientation that is the orientation identified for the included character 213. The processing side CPU 103 defines a region within the range of the first dimension from the upper side 211 of the document 201 and a region within the range of the second dimension from the lower side 223 of the document 201 as the first end region 221. The first dimension and the second dimension may be preset in the scanner driver or may be set based on the user's selection operation received by the processing side operation unit 111, for example. The first end region 221 may include at least one of the header region 217 and the footer region 219. In this way, by performing character recognition only on the first end area 221, the illustration 215 or the like included in the area that is neither the header area 217 nor the footer area 219 is erroneously recognized as the character 213 by character recognition. You can avoid that. Therefore, even when the illustration 215 or the like is included in a region that is neither the header region 217 nor the footer region 219, the orientation of the first read image 207 can be accurately specified.

また、さらなる変形例として、処理側CPU103は、以下のように文字認識処理を行ってもよい。まず、処理側CPU103は、第1端部領域221に対する文字認識処理を行うことで、第1端部領域221に含まれる文字213の向きを特定する。また、処理側CPU103は、第1面203のうちヘッダー領域217でなくフッター領域219でもない領域である第1非端部領域225に対する文字認識処理を行うことで、第1非端部領域225に含まれる文字213の向きを特定する。続いて、処理側CPU103は、第1非端部領域225に含まれる文字213について特定された向きである第1非端部文字向きよりも、第1端部領域221に含まれる文字213について特定された向きである第1端部文字向きに、大きい重みを付けることにより、第1読取り画像207の向きを特定する。すなわち、処理側CPU103は、上述したように、特定された文字213の向きに対して投票を行う際に、第1非端部文字向きよりも第1端部文字向きに大きい重みを付ける。これにより、第1端部領域221に含まれるイラスト215を、文字認識により誤って文字213と認識した場合にも、その影響を低減することができる。このため、第1非端部領域225にイラスト215等が含まれる場合にも、第1読取り画像207の向きを精度良く特定することができる。 Further, as a further modification, the processing side CPU 103 may perform the character recognition processing as follows. First, the processing-side CPU 103 identifies the orientation of the character 213 included in the first end area 221 by performing character recognition processing on the first end area 221. In addition, the processing-side CPU 103 performs character recognition processing on the first non-edge region 225 that is neither the header region 217 nor the footer region 219 of the first surface 203, so that the first non-edge region 225 is formed. The direction of the included character 213 is specified. Subsequently, the processing side CPU 103 specifies the character 213 included in the first end area 221 rather than the first non-end character direction that is the direction specified for the character 213 included in the first non-end area 225. The orientation of the first read image 207 is specified by giving a large weight to the orientation of the first end portion character that is the generated orientation. That is, as described above, the processing-side CPU 103 gives a greater weight to the first end character direction than to the first non-end character direction when voting for the specified direction of the character 213. Accordingly, even if the illustration 215 included in the first end region 221 is mistakenly recognized as the character 213 by the character recognition, the influence thereof can be reduced. Therefore, even when the first non-edge region 225 includes the illustration 215 and the like, the orientation of the first read image 207 can be accurately specified.

なお、これらの変形例は、第2面205から読み取られた第2読取り画像209についても、同様に適用可能である。すなわち、処理側CPU103は、原稿201の第2面205のうち、ヘッダー領域217およびフッター領域219の少なくとも一方が含まれる第2端部領域(図示省略)のみに対して文字認識処理を行い、第2端部領域に含まれる文字213について特定された向きである第2端部文字向きに基づいて、第2読取り画像209の向きを特定してもよい。また、処理側CPU103は、第2面205のうちヘッダー領域217でなくフッター領域219でもない領域である第2非端部領域に含まれる文字213について特定された向きである第2非端部文字向きよりも、第2端部領域に含まれる文字213について特定された向きである第2端部文字向きに、大きい重みを付けることにより、第2読取り画像209の向きを特定してもよい。 Note that these modified examples can be similarly applied to the second read image 209 read from the second surface 205. That is, the processing side CPU 103 performs the character recognition processing only on the second end area (not shown) of the second surface 205 of the original 201, which includes at least one of the header area 217 and the footer area 219, and The orientation of the second read image 209 may be identified based on the second edge character orientation that is the orientation identified for the character 213 included in the second edge area. Further, the processing-side CPU 103 has the second non-end portion character that is the orientation specified for the character 213 included in the second non-end portion area that is the area that is neither the header area 217 nor the footer area 219 of the second surface 205. The orientation of the second read image 209 may be identified by weighting the second edge character orientation, which is the orientation identified for the character 213 included in the second edge region, more heavily than the orientation.

処理側CPU103は、第1文字認識画像向きおよび第2文字認識画像向きのいずれかを選択する方法として、上記の実施形態とは逆に、信頼度が小さい方を選択してもよい。すなわち、処理側CPU103は、第1画像向き信頼度が第2画像向き信頼度よりも大きいと判断したときに、第2文字認識画像向きを選択し、第1画像向き信頼度が第2画像向き信頼度よりも小さいと判断したときに、第1文字認識画像向きを選択してもよい。また、処理側CPU103は、処理側操作部111が受け付けたユーザーの選択操作に基づいて、第1文字認識画像向きおよび第2文字認識画像向きのいずれかを選択してもよい。 As a method of selecting either the first character recognition image orientation or the second character recognition image orientation, the processing side CPU 103 may select the one with the smaller reliability, contrary to the above embodiment. That is, when the processing side CPU 103 determines that the first image orientation reliability is larger than the second image orientation reliability, it selects the second character recognition image orientation, and the first image orientation reliability is the second image orientation. The first character recognition image orientation may be selected when it is determined to be lower than the reliability. Further, the processing side CPU 103 may select one of the first character recognition image orientation and the second character recognition image orientation based on the user's selection operation received by the processing side operation unit 111.

処理側CPU103は、第1画像向き信頼度および第2画像向き信頼度がいずれも閾値よりも小さい場合に、文字認識処理以外の画像解析処理により特定された第1読取り画像207の向きに対する信頼度と、文字認識処理以外の画像解析処理により特定された第2読取り画像209の向きに対する信頼度と、を比較し、信頼度が大きい方の画像の向きに基づいて、第1読取り画像207と第2読取り画像209とを回転させてもよい。 When the first image orientation reliability and the second image orientation reliability are both smaller than the threshold value, the processing side CPU 103 determines the reliability of the orientation of the first read image 207 specified by the image analysis processing other than the character recognition processing. And the reliability with respect to the orientation of the second read image 209 specified by the image analysis processing other than the character recognition processing, and based on the orientation of the image with the higher reliability, the first read image 207 and the first read image 207 are compared. The two-read image 209 may be rotated.

処理側CPU103は、回転後の第1読取り画像207および回転後の第2読取り画像209を、処理側表示部113に表示させる構成に限定されず、例えば、読取り側表示部27に表示させてもよく、情報処理装置101と通信可能に接続された他の装置に出力してもよい。 The processing-side CPU 103 is not limited to the configuration in which the rotated first read image 207 and the rotated second read image 209 are displayed on the processing-side display unit 113, and may be displayed on the reading-side display unit 27, for example. Of course, the information may be output to another device communicatively connected to the information processing device 101.

セット部9に複数の原稿201がセットされ、複数の原稿201が連続して読み取られた場合には、1枚目の原稿201について得られた第1文字認識画像向きおよび第2文字認識画像向きのうち、選択された画像向きを、2枚目以降の原稿201に適用してもよい。例えば、1枚目の原稿201について得られた第1文字認識画像向き(270°)および第2文字認識画像向き(90°)のうち、第1文字認識画像向き(270°)が選択されたとする。この場合、1枚目の原稿201から読み取られた第1読取り画像207および第2読取り画像209を、1枚目の原稿201について選択された第1文字認識画像向き(270°)に基づいて回転させると共に、2枚目以降の原稿201から読み取られた第1読取り画像207および第2読取り画像209についても、1枚目の原稿201について選択された第1文字認識画像向き(270°)に基づいて回転させてもよい。これにより、2枚目以降の原稿201について、第1読取り画像207の向きおよび第2読取り画像209の向きを特定する処理と、第1文字認識画像向きおよび第2文字認識画像向きのいずれかを選択する処理とを、省略することができる。 When a plurality of originals 201 are set in the setting unit 9 and the plurality of originals 201 are continuously read, the first character recognition image orientation and the second character recognition image orientation obtained for the first original 201 Of these, the selected image orientation may be applied to the second and subsequent originals 201. For example, the first character recognition image orientation (270°) is selected from the first character recognition image orientation (270°) and the second character recognition image orientation (90°) obtained for the first original 201. To do. In this case, the first read image 207 and the second read image 209 read from the first original 201 are rotated based on the first character recognition image orientation (270°) selected for the first original 201. In addition, the first read image 207 and the second read image 209 read from the second and subsequent originals 201 are also based on the first character recognition image orientation (270°) selected for the first original 201. You may rotate it. As a result, with respect to the second and subsequent originals 201, a process of specifying the orientation of the first read image 207 and the orientation of the second read image 209, and either the first character recognition image orientation or the second character recognition image orientation is performed. The process of selecting can be omitted.

文字認識処理を、情報処理装置101が行う構成に限定されず、読取り装置1が行う構成でもよい。すなわち、読取り装置1が、文字認識処理により第1読取り画像207の向きおよび第2読取り画像209の向きを特定し、情報処理装置101が、第1文字認識画像向きおよび第2文字認識画像向きを、読取り装置1から取得する構成でもよい。 The character recognition process is not limited to the configuration performed by the information processing device 101, and may be performed by the reading device 1. That is, the reading device 1 specifies the orientation of the first read image 207 and the orientation of the second read image 209 by the character recognition processing, and the information processing device 101 determines the orientation of the first character recognition image and the orientation of the second character recognition image. The configuration may be obtained from the reading device 1.

読取り装置1は、上記の実施形態や変形例をそれぞれ組み合わせた構成でもよい。また、読取り装置1は、上記の実施形態および変形例に限定されず、その趣旨を逸脱しない範囲で種々の構成を採用可能であることは言うまでもない。 The reading device 1 may have a configuration in which the above-described embodiments and modifications are combined. Further, it is needless to say that the reading device 1 is not limited to the above-described embodiments and modified examples, and various configurations can be adopted without departing from the spirit of the present invention.

以下、情報処理装置、情報処理装置の画像回転方法およびプログラムについて付記する。
原稿の第1面を読み取った第1読取り画像と、原稿の第1面とは反対側の第2面を読み取った第2読取り画像と、を取得する取得部と、情報処理部と、を備え、情報処理部は、第1読取り画像に対する文字認識処理により特定された第1読取り画像の向きである第1文字認識画像向き、および第2読取り画像に対する文字認識処理により特定された第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択し、情報処理部は、選択した文字認識画像向きに基づいて、第1読取り画像と第2読取り画像とを回転させる。
Hereinafter, the information processing apparatus, the image rotation method of the information processing apparatus, and the program will be additionally described.
An acquisition unit for acquiring a first read image obtained by reading the first surface of the document and a second read image obtained by reading the second surface of the document opposite to the first surface, and an information processing unit. And an information processing unit configured to detect the first read image, which is the direction of the first read image specified by the character recognition process for the first read image, and the second read image specified by the character recognition process for the second read image. Of the second character recognition image orientations, the information processing unit selects the first read image and the second read image based on the selected character recognition image orientation. Rotate.

この構成によれば、第1文字認識画像向きおよび第2文字認識画像向きのいずれか一方に基づいて、第1読取り画像と第2読取り画像とを回転させる。したがって、第1読取り画像および第2読取り画像の一方については、文字認識処理により正しく向きが特定されたが、第1読取り画像および第2読取り画像の他方については、文字認識処理により誤って向きが特定された場合にも、回転後の第1読取り画像の向きと回転後の第2読取り画像の向きとを、揃えることができる。 According to this configuration, the first read image and the second read image are rotated based on either the first character recognition image orientation or the second character recognition image orientation. Therefore, for one of the first read image and the second read image, the direction is correctly specified by the character recognition process, but for the other of the first read image and the second read image, the direction is erroneously specified by the character recognition process. Even when specified, the orientation of the first read image after rotation and the orientation of the second read image after rotation can be aligned.

この場合、情報処理部は、第1文字認識画像向きに対する信頼度である第1画像向き信頼度が、第2文字認識画像向きに対する信頼度である第2画像向き信頼度よりも大きいか否かを判断し、情報処理部は、第1画像向き信頼度が第2画像向き信頼度よりも大きいと判断したときには、第1文字認識画像向きおよび第2文字認識画像向きのうち、第1文字認識画像向きを選択し、第1画像向き信頼度が第2画像向き信頼度よりも小さいと判断したときには、第1文字認識画像向きおよび第2文字認識画像向きのうち、第2文字認識画像向きを選択することが好ましい。 In this case, the information processing unit determines whether the first image orientation reliability, which is the reliability for the first character recognition image orientation, is greater than the second image orientation reliability, which is the reliability for the second character recognition image orientation. And the information processing unit determines that the first image orientation reliability is higher than the second image orientation reliability, the first character recognition image orientation of the first character recognition image orientation and the second character recognition image orientation is determined. When the image orientation is selected and it is determined that the first image orientation reliability is lower than the second image orientation reliability, the second character recognition image orientation is selected from the first character recognition image orientation and the second character recognition image orientation. It is preferable to select.

この構成によれば、第1文字認識画像向きおよび第2文字認識画像向きのうち、信頼度が大きい方に基づいて、第1読取り画像と第2読取り画像とを回転させる。したがって、第1読取り画像および第2読取り画像の一方については、文字認識処理により正しく向きが特定されたが、第1読取り画像および第2読取り画像の他方については、文字認識処理により誤って向きが特定された場合にも、回転後の第1読取り画像の向きと回転後の第2読取り画像の向きとを、所望の向きに揃えることができる。 According to this configuration, the first read image and the second read image are rotated based on whichever of the first character recognition image orientation and the second character recognition image orientation has the higher reliability. Therefore, for one of the first read image and the second read image, the direction is correctly specified by the character recognition process, but for the other of the first read image and the second read image, the direction is erroneously specified by the character recognition process. Even when specified, the orientation of the first read image after rotation and the orientation of the second read image after rotation can be aligned in the desired orientation.

この場合、情報処理部は、第1画像向き信頼度および第2画像向き信頼度が閾値よりも小さいか否かを判断し、情報処理部は、第1画像向き信頼度および第2画像向き信頼度が閾値よりも小さいと判断したときに、第1読取り画像に対して文字認識処理以外の画像解析処理を行うことで、第1読取り画像の向きを特定し、第2読取り画像に対して文字認識処理以外の画像解析処理を行うことで、第2読取り画像の向きを特定し、情報処理部は、第1読取り画像に対する文字認識処理以外の画像解析処理により特定された第1読取り画像の向きである第1非文字認識画像向きに基づいて、第1読取り画像を回転させ、第2読取り画像に対する文字認識処理以外の画像解析処理により特定された第2読取り画像の向きである第2非文字認識画像向きに基づいて、第2読取り画像を回転させることが好ましい。 In this case, the information processing unit determines whether the first image orientation reliability and the second image orientation reliability are smaller than the threshold value, and the information processing unit determines the first image orientation reliability and the second image orientation reliability. When it is determined that the degree is smaller than the threshold value, the direction of the first read image is specified by performing an image analysis process other than the character recognition process on the first read image, and the character is detected on the second read image. By performing an image analysis process other than the recognition process, the orientation of the second read image is identified, and the information processing unit causes the orientation of the first read image identified by the image analysis process other than the character recognition process for the first read image. The second non-character which is the orientation of the second read image specified by the image analysis processing other than the character recognition processing for the second read image by rotating the first read image based on the first non-character recognized image orientation It is preferable to rotate the second read image based on the orientation of the recognized image.

この構成によれば、第1画像向き信頼度および第2画像向き信頼度が閾値よりも小さいときに、第1非文字認識画像向きに基づいて、第1読取り画像を回転させ、第2非文字認識画像向きに基づいて、第2読取り画像を回転させる。したがって、第1読取り画像および第2読取り画像のいずれについても、文字認識処理により誤って向きが特定された場合にも、回転後の第1読取り画像の向きと回転後の第2読取り画像の向きとを、所望の向きに揃えることができる。 According to this configuration, when the first image orientation reliability and the second image orientation reliability are smaller than the threshold value, the first read image is rotated based on the first non-character recognized image orientation, and the second non-character recognition image is rotated. The second read image is rotated based on the orientation of the recognized image. Therefore, for both the first read image and the second read image, even if the orientation is erroneously specified by the character recognition processing, the orientation of the first read image after rotation and the orientation of the second read image after rotation And can be aligned in a desired direction.

この場合、情報処理部は、第1面のヘッダー領域およびフッター領域の少なくとも一方を含む第1端部領域に対する文字認識処理を行うことで、第1端部領域に含まれる文字の向きを特定し、第1端部領域に含まれる文字について特定された向きである第1端部文字向きに基づいて、第1読取り画像の向きを特定し、情報処理部は、第2面のヘッダー領域およびフッター領域の少なくとも一方を含む第2端部領域に対する文字認識処理を行うことで、第2端部領域に含まれる文字の向きを特定し、第2端部領域に含まれる文字について特定された向きである第2端部文字向きに基づいて、第2読取り画像の向きを特定することが好ましい。 In this case, the information processing unit specifies the orientation of the characters included in the first end area by performing character recognition processing on the first end area including at least one of the header area and the footer area on the first surface. , The orientation of the first read image is identified based on the orientation of the first edge character, which is the orientation identified for the characters included in the first edge area, and the information processing unit causes the information processing unit to identify the header area and the footer of the second surface. By performing character recognition processing on the second edge area including at least one of the areas, the orientation of the character included in the second edge area is specified, and the orientation of the character included in the second edge area is specified. It is preferable to specify the direction of the second read image based on a certain second edge character direction.

この構成によれば、第1面のうちヘッダー領域でなくフッター領域でもない領域に含まれるイラスト等を、文字認識により誤って文字と認識することを回避できる。このため、ヘッダー領域でなくフッター領域でもない領域にイラスト等が含まれる場合にも、第1読取り画像の向きを、精度良く特定することができる。同様に、第2面のうちヘッダー領域でなくフッター領域でもない領域に含まれるイラスト等を、文字認識により誤って文字と認識することを回避できる。このため、ヘッダー領域でなくフッター領域でもない領域にイラスト等が含まれる場合にも、第2読取り画像の向きを、精度良く特定することができる。 With this configuration, it is possible to avoid erroneously recognizing an illustration or the like included in the area of the first surface that is neither the header area nor the footer area as a character by character recognition. Therefore, even when an illustration or the like is included in a region that is neither the header region nor the footer region, the orientation of the first read image can be accurately specified. Similarly, it is possible to avoid erroneously recognizing an illustration or the like included in the area of the second surface which is neither the header area nor the footer area as a character by character recognition. Therefore, even when an illustration or the like is included in a region that is neither the header region nor the footer region, the orientation of the second read image can be accurately specified.

この場合、情報処理部は、第1面のうちヘッダー領域でなくフッター領域でもない第1非端部領域に対する文字認識処理を行うことで、第1非端部領域に含まれる文字の向きを特定し、第1非端部領域に含まれる文字について特定された向きである第1非端部文字向きよりも、第1端部文字向きに大きい重みを付けることにより、第1読取り画像の向きを特定し、情報処理部は、第2面のうちヘッダー領域でなくフッター領域でもない第2非端部領域に対する文字認識処理を行うことで、第2非端部領域に含まれる文字の向きを特定し、第2非端部領域に含まれる文字について特定された向きである第2非端部文字向きよりも、第2端部文字向きに大きい重みを付けることにより、第2読取り画像の向きを特定することが好ましい。 In this case, the information processing unit identifies the orientation of the character included in the first non-edge region by performing the character recognition process on the first non-edge region that is neither the header region nor the footer region of the first surface. However, by giving a greater weight to the first end character direction than to the first non-end character direction that is the direction specified for the characters included in the first non-end region, the direction of the first read image is changed. The information processing unit identifies the orientation of the character included in the second non-edge region by performing character recognition processing on the second non-edge region that is neither the header region nor the footer region of the second surface. However, by giving a greater weight to the second end character direction than to the second non-end character direction that is the direction specified for the characters included in the second non-end region, the direction of the second read image is changed. It is preferable to specify.

この構成によれば、第1非端部領域に含まれるイラスト等を、文字認識により誤って文字と認識した場合にも、その影響を低減することができる。このため、第1非端部領域にイラスト等が含まれる場合にも、第1読取り画像の向きを、精度良く特定することができる。同様に、第2非端部領域に含まれるイラスト等を、文字認識により誤って文字と認識した場合にも、その影響を低減することができる。このため、第2非端部領域にイラスト等が含まれる場合にも、第2読取り画像の向きを、精度良く特定することができる。 According to this configuration, even when the illustration or the like included in the first non-edge portion area is erroneously recognized as a character by character recognition, the influence thereof can be reduced. Therefore, even when an illustration or the like is included in the first non-edge portion area, the orientation of the first read image can be accurately specified. Similarly, even when an illustration or the like included in the second non-edge portion area is erroneously recognized as a character by character recognition, the influence can be reduced. Therefore, even when an illustration or the like is included in the second non-edge portion area, the orientation of the second read image can be accurately specified.

情報処理装置の画像回転方法は、原稿の第1面から読み取られた第1読取り画像と、原稿の第1面とは反対側の第2面から読み取られた第2読取り画像と、を取得し、第1読取り画像に対する文字認識処理により特定された第1読取り画像の向きである第1文字認識画像向き、および第2読取り画像に対する文字認識処理により特定された第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択し、選択した文字認識画像向きに基づいて、第1読取り画像と第2読取り画像とを回転させる。 An image rotation method of an information processing apparatus obtains a first read image read from a first side of a document and a second read image read from a second side opposite to the first side of the document. , A first character recognition image orientation that is the orientation of the first read image identified by the character recognition processing for the first read image, and a second orientation of the second read image that is identified by the character recognition processing for the second read image One of the two character recognition image orientations is selected, and the first read image and the second read image are rotated based on the selected character recognition image orientation.

この構成によれば、第1文字認識画像向きおよび第2文字認識画像向きのいずれか一方に基づいて、第1読取り画像と第2読取り画像とを回転させる。したがって、第1読取り画像および第2読取り画像の一方については、文字認識処理により正しく向きが特定されたが、第1読取り画像および第2読取り画像の他方については、文字認識処理により誤って向きが特定された場合にも、回転後の第1読取り画像の向きと回転後の第2読取り画像の向きとを、揃えることができる。 According to this configuration, the first read image and the second read image are rotated based on either the first character recognition image orientation or the second character recognition image orientation. Therefore, for one of the first read image and the second read image, the direction is correctly specified by the character recognition process, but for the other of the first read image and the second read image, the direction is erroneously specified by the character recognition process. Even when specified, the orientation of the first read image after rotation and the orientation of the second read image after rotation can be aligned.

プログラムは、コンピューターに、原稿の第1面から読み取られた第1読取り画像と、原稿の第1面とは反対側の第2面から読み取られた第2読取り画像と、を取得するステップと、第1読取り画像に対する文字認識処理により特定された第1読取り画像の向きである第1文字認識画像向き、および第2読取り画像に対する文字認識処理により特定された第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択するステップと、選択した文字認識画像向きに基づいて、第1読取り画像と第2読取り画像とを回転させるステップと、を実行させる。 The program causes the computer to obtain a first read image read from the first side of the document and a second read image read from the second side opposite to the first side of the document. A first character recognition image orientation that is the orientation of the first read image identified by the character recognition processing for the first read image, and a second orientation that is the orientation of the second read image identified by the character recognition processing for the second read image A step of selecting any one of the character recognition image orientations and a step of rotating the first read image and the second read image based on the selected character recognition image orientation are executed.

この構成によれば、第1文字認識画像向きおよび第2文字認識画像向きのいずれか一方に基づいて、第1読取り画像と第2読取り画像とを回転させる。したがって、第1読取り画像および第2読取り画像の一方については、文字認識処理により正しく向きが特定されたが、第1読取り画像および第2読取り画像の他方については、文字認識処理により誤って向きが特定された場合にも、回転後の第1読取り画像の向きと回転後の第2読取り画像の向きとを、揃えることができる。 According to this configuration, the first read image and the second read image are rotated based on either the first character recognition image orientation or the second character recognition image orientation. Therefore, for one of the first read image and the second read image, the direction is correctly specified by the character recognition process, but for the other of the first read image and the second read image, the direction is erroneously specified by the character recognition process. Even when specified, the orientation of the first read image after rotation and the orientation of the second read image after rotation can be aligned.

101…情報処理装置、103…処理側CPU、201…原稿、203…第1面、205…第2面、207…第1読取り画像、209…第2読取り画像、217…ヘッダー領域、219…フッター領域、221…第1端部領域、225…第1非端部領域。 Reference numeral 101... Information processing apparatus, 103... Processing side CPU, 201... Original, 203... First side, 205... Second side, 207... First read image, 209... Second read image, 217... Header area, 219... Footer Regions, 221,... First end regions, 225,... First non-end regions.

Claims (7)

原稿の第1面を読み取った第1読取り画像と、前記原稿の前記第1面とは反対側の第2面を読み取った第2読取り画像と、を取得する取得部と、
情報処理部と、を備え、
前記情報処理部は、前記第1読取り画像に対する文字認識処理により特定された前記第1読取り画像の向きである第1文字認識画像向き、および前記第2読取り画像に対する文字認識処理により特定された前記第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択し、
前記情報処理部は、選択した前記文字認識画像向きに基づいて、前記第1読取り画像と前記第2読取り画像とを回転させることを特徴とする情報処理装置。
An acquisition unit for acquiring a first read image obtained by reading the first surface of the document and a second read image obtained by reading the second surface of the document opposite to the first surface;
An information processing unit,
The information processing unit includes a first character recognition image orientation that is the orientation of the first read image identified by the character recognition processing for the first read image, and the character identification processing identified for the second read image. Select one of the character recognition image orientations from the second character recognition image orientation that is the orientation of the second read image,
The information processing unit, wherein the information processing unit rotates the first read image and the second read image based on the selected orientation of the character recognition image.
前記情報処理部は、前記第1文字認識画像向きに対する信頼度である第1画像向き信頼度が、前記第2文字認識画像向きに対する信頼度である第2画像向き信頼度よりも大きいか否かを判断し、
前記情報処理部は、前記第1画像向き信頼度が前記第2画像向き信頼度よりも大きいと判断したときには、前記第1文字認識画像向きおよび前記第2文字認識画像向きのうち、前記第1文字認識画像向きを選択し、前記第1画像向き信頼度が前記第2画像向き信頼度よりも小さいと判断したときには、前記第1文字認識画像向きおよび前記第2文字認識画像向きのうち、前記第2文字認識画像向きを選択することを特徴とする請求項1に記載の情報処理装置。
The information processing unit determines whether the first image orientation reliability, which is the reliability for the first character recognition image orientation, is greater than the second image orientation reliability, which is the reliability for the second character recognition image orientation. Judge,
When the information processing unit determines that the first image orientation reliability is higher than the second image orientation reliability, the first information recognition direction among the first character recognition image orientation and the second character recognition image orientation is the first character recognition image orientation. When a character recognition image orientation is selected and it is determined that the first image orientation reliability is lower than the second image orientation reliability, the one of the first character recognition image orientation and the second character recognition image orientation is The information processing apparatus according to claim 1, wherein the orientation of the second character recognition image is selected.
前記情報処理部は、前記第1画像向き信頼度および前記第2画像向き信頼度が閾値よりも小さいか否かを判断し、
前記情報処理部は、前記第1画像向き信頼度および前記第2画像向き信頼度が前記閾値よりも小さいと判断したときに、前記第1読取り画像に対して文字認識処理以外の画像解析処理を行うことで、前記第1読取り画像の向きを特定し、前記第2読取り画像に対して文字認識処理以外の画像解析処理を行うことで、前記第2読取り画像の向きを特定し、
前記情報処理部は、前記第1読取り画像に対する文字認識処理以外の画像解析処理により特定された前記第1読取り画像の向きである第1非文字認識画像向きに基づいて、前記第1読取り画像を回転させ、前記第2読取り画像に対する文字認識処理以外の画像解析処理により特定された前記第2読取り画像の向きである第2非文字認識画像向きに基づいて、前記第2読取り画像を回転させることを特徴とする請求項2に記載の情報処理装置。
The information processing unit determines whether the first image orientation reliability and the second image orientation reliability are smaller than a threshold value,
When determining that the first image orientation reliability and the second image orientation reliability are smaller than the threshold value, the information processing unit performs image analysis processing other than character recognition processing on the first read image. By doing so, the direction of the first read image is specified, and by performing image analysis processing other than character recognition processing on the second read image, the direction of the second read image is specified,
The information processing unit determines the first read image based on a first non-character-recognized image orientation, which is the orientation of the first read image identified by an image analysis process other than the character recognition process on the first read image. Rotating the second read image based on a second non-character-recognized image orientation that is the orientation of the second read image identified by image analysis processing other than the character recognition processing for the second read image. The information processing apparatus according to claim 2, wherein:
前記情報処理部は、前記第1面のヘッダー領域およびフッター領域の少なくとも一方を含む第1端部領域に対する文字認識処理を行うことで、前記第1端部領域に含まれる文字の向きを特定し、前記第1端部領域に含まれる文字について特定された向きである第1端部文字向きに基づいて、前記第1読取り画像の向きを特定し、
前記情報処理部は、前記第2面のヘッダー領域およびフッター領域の少なくとも一方を含む第2端部領域に対する文字認識処理を行うことで、前記第2端部領域に含まれる文字の向きを特定し、前記第2端部領域に含まれる文字について特定された向きである第2端部文字向きに基づいて、前記第2読取り画像の向きを特定することを特徴とする請求項1ないし3のいずれか一項に記載の情報処理装置。
The information processing unit specifies a direction of a character included in the first end area by performing character recognition processing on a first end area including at least one of a header area and a footer area on the first surface. The orientation of the first read image is identified based on the orientation of the first edge character, which is the orientation identified for the characters included in the first edge area,
The information processing unit specifies a direction of a character included in the second end area by performing character recognition processing on a second end area including at least one of a header area and a footer area on the second surface. 4. The orientation of the second read image is identified based on the second edge character orientation that is the orientation identified for the character included in the second edge area. The information processing device according to claim 1.
前記情報処理部は、前記第1面のうち前記ヘッダー領域でなく前記フッター領域でもない第1非端部領域に対する文字認識処理を行うことで、前記第1非端部領域に含まれる文字の向きを特定し、前記第1非端部領域に含まれる文字について特定された向きである第1非端部文字向きよりも、前記第1端部文字向きに大きい重みを付けることにより、前記第1読取り画像の向きを特定し、
前記情報処理部は、前記第2面のうち前記ヘッダー領域でなく前記フッター領域でもない第2非端部領域に対する文字認識処理を行うことで、前記第2非端部領域に含まれる文字の向きを特定し、前記第2非端部領域に含まれる文字について特定された向きである第2非端部文字向きよりも、前記第2端部文字向きに大きい重みを付けることにより、前記第2読取り画像の向きを特定することを特徴とする請求項4に記載の情報処理装置。
The information processing unit performs character recognition processing on a first non-edge portion of the first surface that is neither the header region nor the footer region, so that the orientation of characters included in the first non-edge region And assigning a greater weight to the first end character direction than to the first non-end character direction, which is the direction specified for the characters included in the first non-end region, Specify the orientation of the scanned image,
The information processing unit performs a character recognition process on a second non-edge portion of the second surface that is neither the header region nor the footer region, so that the orientation of the characters included in the second non-edge region is increased. And assigning a greater weight to the second end character direction than to the second non-end character direction, which is the direction specified for the characters included in the second non-end region, The information processing apparatus according to claim 4, wherein the direction of the read image is specified.
原稿の第1面から読み取られた第1読取り画像と、前記原稿の前記第1面とは反対側の第2面から読み取られた第2読取り画像と、を取得し、
前記第1読取り画像に対する文字認識処理により特定された前記第1読取り画像の向きである第1文字認識画像向き、および前記第2読取り画像に対する文字認識処理により特定された前記第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択し、
選択した前記文字認識画像向きに基づいて、前記第1読取り画像と前記第2読取り画像とを回転させる
ことを特徴とする情報処理装置の画像回転方法。
Acquiring a first read image read from the first side of the original and a second read image read from the second side of the original opposite to the first side,
A first character recognition image orientation that is the orientation of the first read image identified by the character recognition processing for the first read image, and a orientation of the second read image identified by the character recognition processing for the second read image Select one of the character recognition image orientations from the second character recognition image orientation
An image rotation method for an information processing apparatus, comprising rotating the first read image and the second read image based on the selected orientation of the character recognition image.
コンピューターに、
原稿の第1面から読み取られた第1読取り画像と、前記原稿の前記第1面とは反対側の第2面から読み取られた第2読取り画像と、を取得するステップと、
前記第1読取り画像に対する文字認識処理により特定された前記第1読取り画像の向きである第1文字認識画像向き、および前記第2読取り画像に対する文字認識処理により特定された前記第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択するステップと、
選択した前記文字認識画像向きに基づいて、前記第1読取り画像と前記第2読取り画像とを回転させるステップと、
を実行させることを特徴とするプログラム。
On the computer,
Acquiring a first read image read from the first side of the original document and a second read image read from the second side of the original opposite to the first side;
A first character recognition image orientation that is the orientation of the first read image identified by the character recognition processing for the first read image, and a orientation of the second read image identified by the character recognition processing for the second read image Selecting one of the character recognition image orientations among the second character recognition image orientations
Rotating the first read image and the second read image based on the selected orientation of the character recognition image;
A program characterized by causing to execute.
JP2018223801A 2018-11-29 2018-11-29 Information processing device, image rotation method for information processing device, and program Active JP7192441B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018223801A JP7192441B2 (en) 2018-11-29 2018-11-29 Information processing device, image rotation method for information processing device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018223801A JP7192441B2 (en) 2018-11-29 2018-11-29 Information processing device, image rotation method for information processing device, and program

Publications (2)

Publication Number Publication Date
JP2020088736A true JP2020088736A (en) 2020-06-04
JP7192441B2 JP7192441B2 (en) 2022-12-20

Family

ID=70909149

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018223801A Active JP7192441B2 (en) 2018-11-29 2018-11-29 Information processing device, image rotation method for information processing device, and program

Country Status (1)

Country Link
JP (1) JP7192441B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749694A (en) * 2021-01-20 2021-05-04 中科云谷科技有限公司 Method and device for identifying image direction and nameplate characters

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05110814A (en) * 1991-10-17 1993-04-30 Ricoh Co Ltd Copying picture recorder
JPH10191018A (en) * 1996-12-20 1998-07-21 Canon Inc Image processing method and device
JP2015015566A (en) * 2013-07-04 2015-01-22 京セラドキュメントソリューションズ株式会社 Image processing apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05110814A (en) * 1991-10-17 1993-04-30 Ricoh Co Ltd Copying picture recorder
JPH10191018A (en) * 1996-12-20 1998-07-21 Canon Inc Image processing method and device
JP2015015566A (en) * 2013-07-04 2015-01-22 京セラドキュメントソリューションズ株式会社 Image processing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749694A (en) * 2021-01-20 2021-05-04 中科云谷科技有限公司 Method and device for identifying image direction and nameplate characters
CN112749694B (en) * 2021-01-20 2024-05-21 中科云谷科技有限公司 Method and device for recognizing image direction and nameplate characters

Also Published As

Publication number Publication date
JP7192441B2 (en) 2022-12-20

Similar Documents

Publication Publication Date Title
US11538235B2 (en) Methods and apparatus to determine the dimensions of a region of interest of a target object from an image using target object landmarks
JP4963809B2 (en) Outlier detection during scanning
US10694098B2 (en) Apparatus displaying guide for imaging document, storage medium, and information processing method
US10706581B2 (en) Image processing apparatus for clipping and sorting images from read image according to cards and control method therefor
JPH1139428A (en) Direction correcting method for document video
US10452943B2 (en) Information processing apparatus, control method of information processing apparatus, and storage medium
US20190191078A1 (en) Information processing apparatus, a non-transitory computer readable storage medium and information processing method
US10997406B2 (en) Image processing apparatus for determining proper reading order of documents
US10375269B2 (en) Image processing device, image reading device, and image forming apparatus
JP7192441B2 (en) Information processing device, image rotation method for information processing device, and program
JP6592873B2 (en) Image reading apparatus, image forming apparatus, image reading method, and image reading program
US11436733B2 (en) Image processing apparatus, image processing method and storage medium
US9110926B1 (en) Skew detection for vertical text
US20160286065A1 (en) Document reading device and document reading method
US10706337B2 (en) Character recognition device, character recognition method, and recording medium
US10657309B2 (en) Information processing apparatus capable of correcting a written object on the basis of a detected reference direction
JP6598080B2 (en) Image reading apparatus, image reading method, image forming apparatus, and image reading program
US10623603B1 (en) Image processing apparatus, non-transitory computer readable recording medium that records an image processing program, and image processing method
WO2020183628A1 (en) Image processing device, image reading device, image processing method, and program
JP2017120455A (en) Information processing device, program and control method
US20220335738A1 (en) Image processing system, image processing method, and storage medium
US11853844B2 (en) Information processing apparatus, image orientation determination method, and medium
JP6604320B2 (en) Image forming apparatus
US9247089B2 (en) Scanning apparatus
US11722615B2 (en) Image processing including adjusting image orientation

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211105

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220729

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220816

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221006

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: 20221108

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221121

R150 Certificate of patent or registration of utility model

Ref document number: 7192441

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150