JP7192441B2 - Information processing device, image rotation method for information processing device, and program - Google Patents

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

Info

Publication number
JP7192441B2
JP7192441B2 JP2018223801A JP2018223801A JP7192441B2 JP 7192441 B2 JP7192441 B2 JP 7192441B2 JP 2018223801 A JP2018223801 A JP 2018223801A JP 2018223801 A JP2018223801 A JP 2018223801A JP 7192441 B2 JP7192441 B2 JP 7192441B2
Authority
JP
Japan
Prior art keywords
orientation
image
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.)
Active
Application number
JP2018223801A
Other languages
Japanese (ja)
Other versions
JP2020088736A (en
Inventor
正幸 川▲崎▼
雅巳 石原
英一 原田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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

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

Description

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

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

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

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

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

本発明の情報処理装置の画像回転方法は、原稿の第1面から読み取られた第1読取り画像と、原稿の第1面とは反対側の第2面から読み取られた第2読取り画像と、を取得し、第1読取り画像に対する文字認識処理により特定された第1読取り画像の向きである第1文字認識画像向き、および第2読取り画像に対する文字認識処理により特定された第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択し、選択した文字認識画像向きに基づいて、第1読取り画像と第2読取り画像とを回転させる。 An image rotation method for an information processing apparatus according to the present invention comprises: a first read image read from a first side of a document; a second read image read from a second side opposite to the first side of the document; , and a first character recognition image orientation that is the orientation of the first read image specified by character recognition processing on the first read image, and an orientation of the second read image that is specified by character recognition processing on the second read image is selected from among the second character recognition image orientations, 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読取り画像とを回転させるステップと、を実行させる。 The program of the present invention causes the computer to acquire 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, which is the orientation of the first read image specified by character recognition processing for the first read image, and a second read image orientation, which is the orientation of the second read image specified by character recognition processing for the second read image; selecting one of the second character recognition image orientations; and rotating the first read image and the second read image based on the selected character recognition image orientation. let it run.

読取り装置および情報処理装置を備えた読取りシステムを示す図である。1 shows a reading system with a reading device and an information processing device; FIG. 読取り装置および情報処理装置のブロック図である。1 is a block diagram of a reading device and an information processing device; FIG. 第1原稿の第1面を示す図である。FIG. 4 is a diagram showing the first side of the first document; 第1原稿の第2面を示す図である。FIG. 10 is a diagram showing the second side of the first document; 第2原稿の第1面を示す図である。FIG. 10 is a diagram showing the first side of the second document; 第2原稿の第2面を示す図である。FIG. 10 is a diagram showing the second side of the second document; 第3原稿の第1面を示す図である。FIG. 12 is a diagram showing the first side of the third document; 第3原稿の第2面を示す図である。FIG. 10 is a diagram showing the second side of the third document; 第1原稿の読取り後、個別回転処理および連動回転処理が行われない場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。FIG. 10 is a diagram showing a first read image and a second read image displayed on the processing-side display section when individual rotation processing and interlocked rotation processing are not performed after reading the first document; 第2原稿の読取り後、個別回転処理および連動回転処理が行われない場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。FIG. 10 is a diagram showing the first read image and the second read image displayed on the processing-side display section when the individual rotation process and the interlocked rotation process are not performed after reading the second document; 第3原稿の読取り後、個別回転処理および連動回転処理が行われない場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。FIG. 10 is a diagram showing the first read image and the second read image displayed on the processing-side display section when the individual rotation process and the interlocked rotation process are not performed after reading the third document; 個別回転処理を示すフローチャートである。4 is a flowchart showing individual rotation processing; 第1原稿の読取り後、個別回転処理が行われた場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。FIG. 10 is a diagram showing a first read image and a second read image displayed on the processing-side display section when individual rotation processing is performed after reading 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 section when individual rotation processing is performed after reading the second document; 第3原稿の読取り後、個別回転処理が行われた場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。FIG. 10 is a diagram showing a first read image and a second read image displayed on the processing-side display section when individual rotation processing is performed after reading the third document; 連動回転処理を示すフローチャートである。9 is a flowchart showing an interlocking rotation process; 第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 interlocking rotation process is performed after reading the second document; 第3原稿の読取り後、連動回転処理が行われた場合に、処理側表示部に表示された第1読取り画像および第2読取り画像を示す図である。FIG. 10 is a diagram showing a first read image and a second read image displayed on the processing-side display section when the interlocking rotation process is performed after reading the third document; 原稿の第1端部領域および第1非端部領域を示す図である。FIG. 2 is a diagram showing a first edge area and a first non-edge area of a document;

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

図1に基づいて、読取りシステムSyについて説明する。読取りシステムSyは、読取り装置1と、情報処理装置101とを備えている。読取り装置1と情報処理装置101とは、通信可能に接続されている。 The reading system Sy will be described based on 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 reader 1 includes an ADF 3 (Auto Document Feeder), a first reader 5 and a second reader 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 document 201 set on the setting section 9 . The ADF 3 includes a set section 9 , a supply roller 11 , a plurality of transport roller pairs 13 , a transport motor 15 and a discharge section 17 . A document 201 is set on the setting section 9 . In the present embodiment, of the two surfaces of the document 201 set on the setting section 9, the side facing obliquely downward, that is, the side facing the setting section 9 is referred to as a first side 203. A surface facing away from the setting portion 9 is referred to as a second surface 205 . The supply roller 11 conveys the document 201 set on the setting section 9 toward the discharge section 17 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 section 17 using the transport motor 15 as a drive source. The document 201 conveyed by the conveying roller pair 13 is discharged to the discharge section 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 to face the first surface 203 of the document 201 being conveyed, and reads the first surface 203 of the document 201 . Although not shown, the first reading unit 5 includes a light source and an image sensor. The second reading unit 7 is provided to face the second surface 205 of the document 201 being conveyed, and reads the second surface 205 of the document 201 . Although not shown, the second reading section 7, like the first reading section 5, includes a light source and an image sensor.

読取り装置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 section 5 and the second reading section 7 , the first side 203 and the second side of the document 201 are scanned while the document 201 is conveyed from the setting section 9 to the discharge section 17 . 205 can be read. A first read image 207 (see FIG. 9 etc.) read from the first surface 203 by the first reading unit 5 and a second read image 209 (see FIG. 9 etc.) read from the second surface 205 by the second reading unit 7 reference) is transmitted to the information processing apparatus 101 . Note that the reading device 1 may be configured to have a single reading unit and read the first side 203 and the second side 205 of the document 201 by turning the document 201 upside down using the ADF 3 .

情報処理装置101は、読取り装置1を制御し、読取り装置1から送信された第1読取り画像207および第2読取り画像209を受信する。なお、情報処理装置101としては、例えば、パソコン、スマートフォン、タブレット端末などを用いることができる。 Information processing apparatus 101 controls reading device 1 and receives first read image 207 and second read image 209 transmitted from reading device 1 . As the information processing device 101, for example, a personal computer, a smart phone, 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. In addition to the ADF 3, the first reading section 5, and the second reading section 7, the reading device 1 includes a reading side CPU 19 (Central Processing Unit), a reading side ROM 21 (Read Only Memory), and a reading side RAM 23 (Random Access Memory). ), a reading side operation section 25 , a reading side display section 27 and a reading side communication section 29 .

読取り側CPU19は、読取り側ROM21に記憶されたプログラムを、読取り側RAM23を用いて実行することにより、読取り装置1全体を統括的に制御する。読取り側操作部25は、ユーザーからの操作を受け付ける。読取り側操作部25としては、例えば、操作キーを用いることができる。読取り側表示部27は、ユーザーに対して各種情報を表示する。読取り側表示部27としては、例えば、液晶ディスプレーを用いることができる。なお、タッチパネル式ディスプレーを、読取り側操作部25および読取り側表示部27として機能させてもよい。読取り側通信部29は、後述する処理側通信部115との間で、各種コマンドのほか、第1読取り画像207および第2読取り画像209を送受信する。 The reader CPU 19 controls the entire reader 1 by executing programs stored in the reader ROM 21 using the reader RAM 23 . The read-side operation unit 25 receives operations from the user. For example, an operation key can be used as the reading side operation unit 25 . The read-side display unit 27 displays various information to the user. For example, a liquid crystal display can be used as the read-side display unit 27 . Note that the touch panel display may function as the read-side operation section 25 and the read-side display section 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, which will be 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 side CPU 103, a processing side ROM 105, a processing side RAM 107, an external storage device 109, a processing side operation section 111, a processing side display section 113, and a processing side communication section 115. there is Note that the processing-side CPU 103 is an example of an “acquisition unit” and an “information processing unit”. The acquisition unit and the information processing unit are not limited to one, and may be configured by a plurality of CPUs. may be used. Also, the processing-side CPU 103 is an example of a "computer". The computer may also be composed of a plurality of CPUs in the same manner as described above, or may be configured using a processing circuit such as an ASIC instead of the processing side CPU 103 or in cooperation with the processing side 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 programs stored in the processing-side ROM 105 or the external storage device 109 using the processing-side RAM 107 , thereby controlling the entire information processing apparatus 101 . The external storage device 109 stores various programs such as a scanner driver, which is a control program for controlling the reading device 1 . Also, 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, an HDD (Hard Disk Drive) or an 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, etc. can be used. The processing-side display unit 113 displays various information such as an operation screen for operating the reading device 1, the first read image 207 and the second read image 209 transmitted from the reading device 1, and the like. For example, a liquid crystal display can be used as the processing-side display unit 113 . Note that 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 reading-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 document 201a, the second document 201b and the third document 201c set on the setting section 9 will be described with reference to FIGS. 3 to 8. FIG. The first manuscript 201a, the second manuscript 201b, and the third manuscript 201c are all vertically long manuscripts bound on the long side. That is, the upper side 211 of the first surface 203 of each document 201 and the upper side 211 of the second surface 205 are the same side. Normally, the documents 201 are set on the setting portion 9 so that the upper side 211 of each document 201 faces the conveying direction 31 of the ADF 3 . It is assumed that the document 201 is set so as to be behind the .

図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 document 201a, and FIG. 4 shows the second side 205 of the first document 201a. A plurality of characters 213 are printed in an upright orientation on the first surface 203 of the first document 201a. Similarly, a plurality of characters 213 are printed in an upright orientation on the second surface 205 of the first document 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 document 201b, and FIG. 6 shows the second side 205 of the second document 201b. A plurality of characters 213 are printed in an upright orientation on the first surface 203 of the second document 201b. On the other hand, on the second surface 205 of the second document 201b, an illustration 215 representing, for example, a "person" is printed in an upright orientation. That is, the characters 213 are not printed on the second surface 205 of the second document 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 document 201c, and FIG. 8 shows the second side 205 of the third document 201c. An illustration 215 is printed in an upright orientation on the first surface 203 of the third document 201c. Similarly, an illustration 215 is printed in an upright orientation on the second surface 205 of the third document 201c. That is, the characters 213 are not printed on the first surface 203 and the second surface 205 of the third document 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 a first read image 207 and a first read image 207 displayed on the processing-side display unit 113 when the information processing apparatus 101 does not execute individual rotation processing and interlocked rotation processing, which will be described later, after the first document 201a is read. 2 read image 209 is shown. FIG. 10 shows a first read image 207 and a second read image displayed on the processing-side display unit 113 when the information processing apparatus 101 does not execute the individual rotation processing and the interlocked rotation processing after the second original 201b is read. An image 209 is shown. FIG. 11 shows a first read image 207 and a second read image displayed on the processing-side display unit 113 when the information processing apparatus 101 does not execute the individual rotation processing and the interlocked rotation processing after reading the third document 201c. An image 209 is shown.

セット部9には、上述したように、各原稿201の上辺211が搬送方向31の後方となるように、原稿201がセットされる。そのため、第1原稿201a、第2原稿201bおよび第3原稿201cのいずれについても、第1読取り画像207および第2読取り画像209が、正立した向きから180°回転した向きとなっている。 Documents 201 are set on the setting portion 9 such that the upper side 211 of each document 201 is positioned rearward in the transport direction 31 as described above. Therefore, for each of the first document 201a, the second document 201b, and the third document 201c, the first read image 207 and the second read image 209 are rotated 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 orientation, the characters 213, the illustration 215, etc. included in the first read image 207 or the second read image 209 are not visible 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 separate rotation processing and linked rotation processing 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. Note that the individual rotation processing may be realized only by hardware.

ステップS01において、処理側CPU103は、読取り装置1から送信された第1読取り画像207および第2読取り画像209を取得する。 In step S<b>01 , processing-side CPU 103 acquires first read image 207 and second read image 209 transmitted from 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 S<b>02 , processing-side CPU 103 identifies the orientation of first read image 207 by performing character recognition processing on first read image 207 . That is, the processing-side CPU 103 detects the characters 213 included in the first read image 207, and rotates the detected individual characters 213 at counterclockwise rotation angles of 0°, 90°, 180°, and 270°, for example. , and matching with a pre-registered dictionary is performed. The processing-side CPU 103 specifies the rotation angle at which character recognition is most correctly performed from 0°, 90°, 180°, and 270° as the orientation of the character 213, and votes for the variable indicating the rotation angle. Processing-side CPU 103 identifies the rotation angle with the largest number of votes as the orientation of first read image 207 from the results of voting for all detected characters 213 .

ステップS03において、処理側CPU103は、第2読取り画像209に対して、文字認識処理を行うことで、第2読取り画像209の向きを特定する。その具体的な手法は、ステップS02と同様である。 In step S<b>03 , processing-side CPU 103 identifies the orientation of second read image 209 by performing character recognition processing on 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, processing-side CPU 103 rotates first read image 207 based on the first character recognition image orientation, which is the orientation of first read image 207 specified 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 (360-θ 1 )° counterclockwise. For example, when the orientation of the first character recognition image is 90 degrees, the information processing apparatus 101 rotates the first read image 207 clockwise by 90 degrees or counterclockwise by 270 degrees. As a result, the orientation of the first read image 207 is corrected so that the orientation of the first read image 207 is 0°, that is, the characters 213 included in the first read image 207 are oriented upright. can be done.

ステップ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, processing-side CPU 103 rotates second read image 209 based on the second character recognition image orientation, which is the orientation of 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 that when the orientation of the second character recognition image is set to θ 2 , as in the case of the first read image 207, 2 means rotating the read image 209 clockwise by θ 2 degrees or counterclockwise by (360-θ 2 ) degrees. Note that 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, processing-side CPU 103 causes processing-side display section 113 to display rotated first read image 207 and rotated second read image 209, and the individual rotation process ends.

ここで、より具体的に、ステップ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, processing-side CPU 103 obtains first read image 207 and second read image 209 read from first document 201a, and obtains first read image 207 and second read image 209 read from second document 201b A case where the first read image 207 and the second read image 209 are obtained, and a case where the first read image 207 and the second read image 209 read from the third document 201c are obtained 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 document 201a, in step S02, the processing side CPU 103 obtains the character The orientation of the first read image 207 is specified as 180° by recognition processing. Similarly, in step S03, processing-side CPU 103 identifies the orientation of second read image 209 as 180° through 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 clockwise by 180 degrees because the orientation of the first read image 207 specified by the character recognition process is 180 degrees. Or 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 clockwise by 180 degrees because the orientation of the second read image 209 specified by the character recognition process is 180 degrees. Or 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, as shown in FIG. 13, the processing-side CPU 103 generates the first read image 207 after rotation, that is, the first read image 207 whose image orientation is corrected to 0°, and the second read image after rotation. The processing-side display unit 113 is caused to display the image 209 , that is, the second read image 209 whose image orientation is corrected to 0°.

このように、処理側CPU103が個別回転処理を行うことで、第1読取り画像207および第2読取り画像209のいずれについても、文字認識処理により正しく向きが特定された場合には、回転後の第1読取り画像207の向きと回転後の第2読取り画像209の向きとを、所望の向き、すなわち0°に揃えることができる。 In this way, the processing-side CPU 103 performs the individual rotation processing, so that if the orientation of both the first read image 207 and the second read image 209 is correctly specified by the character recognition processing, the orientation after rotation is determined. The orientation of the first read image 207 and the orientation of the second read image 209 after rotation can be aligned with the desired orientation, 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 document 201b in step S01, the processing side CPU 103 acquires the first read image 209 (see FIG. 10) in step S02. 1 The orientation 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, the processing-side CPU 103 recognizes that the illustration 215 is printed on the second surface 205 of the second document 201b instead of the characters 213 as described above. orientation cannot be determined accurately. Here, the orientation of the second read image 209 is originally 180°, but the processing-side CPU 103 incorrectly 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 clockwise by 180 degrees because the orientation of the first read image 207 specified by the character recognition process is 180 degrees. Or 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 orientation of the second read image 209 specified by the character recognition process is 0°. Or 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, as shown in FIG. 14, the processing-side CPU 103 generates the first read image 207 after rotation, that is, the first read image 207 whose image orientation is corrected to 0°, and the second read image 207 which is not rotated. The read image 209 , that is, the second read image 209 whose image orientation 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 orientation of one of the first read image 207 and the second read image 209 was correctly specified by the character recognition processing, but the orientation of the other of the first read image 207 and the second read image 209 was not recognized. If the orientation is erroneously specified by the processing, even if the processing-side CPU 103 performs individual rotation processing, the orientation of the first read image 207 after rotation and the orientation of the second read image 209 after rotation are aligned. 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°と特定したものとする。 In step S01, 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 S02, the processing side CPU 103 Moreover, 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 specified accurately 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, processing-side CPU 103 corrects the orientation of second read image 209 by character recognition processing because illustration 215 is printed on second surface 205 of third document 201c instead of characters 213. cannot be specified. Here, the orientation of the second read image 209 is originally 180°, but the processing-side CPU 103 incorrectly 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 clockwise by 90 degrees because the orientation of the first read image 207 specified by the character recognition process is 90 degrees. Or rotate 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 orientation of the second read image 209 specified by the character recognition process is 0°. Or 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, as shown in FIG. 15, the processing-side CPU 103 divides the first read image 207 after rotation, that is, the first read image 207 whose image orientation is 90°, and the The processing-side display unit 113 is caused to display the image 209 , that is, the second read image 209 whose image orientation remains 180°.

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

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

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

ステップS11において、処理側CPU103は、読取り装置1から送信された第1読取り画像207および第2読取り画像209を取得する。 In step S<b>11 , 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, processing-side CPU 103 identifies the orientation of first read image 207 by performing character recognition processing on first read image 207, as in step S02. Further, the processing-side CPU 103 calculates a first image orientation reliability, which is the reliability of the specified orientation of the first read image 207 . That is, the processing-side CPU 103 votes for the variable indicating the rotation angle at which the character was most correctly recognized for each character 213 included in the first read image 207, as in step S02. Further, the processing-side CPU 103 stores the reliability of the character recognition process 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 S<b>13 , processing-side CPU 103 identifies the orientation of second read image 209 by performing character recognition processing on second read image 209 . Further, the processing-side CPU 103 calculates a second image orientation reliability, which is the reliability of the identified orientation of the second read image 209 . A specific method thereof is the same as in 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 both the first image orientation reliability and the second image orientation reliability are smaller than a threshold. The threshold is set to a value greater than the reliability obtained when the orientation of the first read image 207 or the orientation of the second read image 209 cannot be specified accurately by character recognition processing. Note that the threshold value may be preset in the scanner driver, or may be set based on the user's selection operation accepted by the processing-side operation unit 111, for example. 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 greater than or equal to the second image orientation reliability. When the processing-side CPU 103 determines that the first image orientation reliability is greater than or equal to 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 S<b>16 , processing-side CPU 103 rotates first read image 207 and second read image 209 based on the identified first character recognition image orientation, which is the orientation of first read image 207 . Here, rotating the first read image 207 and the second read image 209 based on the orientation of the first character recognition image means that the first read image 207 is rotated when the orientation of the first character recognition image is θ 1 °. Rotate θ 1 ° clockwise or (360−θ 1 )° counterclockwise, and rotate the second read image 209 clockwise θ 1 ° or (360−θ 1 )° counterclockwise. means As a result, the orientation of the first read image 207 after rotation and the orientation of the second read image 209 after rotation can be aligned. Note that 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, when the processing-side CPU 103 determines in step S15 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 S<b>17 , processing-side CPU 103 rotates first read image 207 and second read image 209 based on the specified second character recognition image orientation, which is the orientation of second read image 209 . Here, rotating the first read image 207 and the second read image 209 based on the orientation of the second character recognition image means rotating the first read image 207 when the orientation of the second character recognition image is θ 2 °. Rotate θ 2 degrees clockwise or (360-θ 2 ) degrees counterclockwise, and rotate the second read image 209 clockwise θ 2 degrees or (360-θ 2 ) degrees counterclockwise. means As a result, the orientation of the first read image 207 after rotation and the orientation of the second read image 209 after rotation can be aligned. Note that 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, when the processing-side CPU 103 determines in step S14 that both the first image orientation reliability and the second image orientation reliability are smaller than the threshold (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 character recognition processing. As a method of specifying the orientation of the first read image 207 by image analysis processing other than 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 identifies the orientation of the second read image 209 by image analysis processing other than 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 recognition image orientation, which is the orientation of the first read image 207 specified 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 recognition image means that when the orientation of the first non-character recognition image is α 1 °, the first read image 207 is rotated clockwise by α It means rotating by 1 ° or (360-α 1 )° counterclockwise. As a result, the orientation of the first read image 207 is corrected so that the orientation of the first read image 207 is 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 recognition 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 orientation of the second non-character recognition image means that when the orientation of the second non-character recognition image is α 2 °, the second read image 209 is rotated clockwise by α It means rotating by 2 degrees or (360-α 2 ) degrees counterclockwise. 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 included in the second read image 209 is oriented upright. be able to. Note that 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 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 interlocking rotation processing.

ここで、より具体的に、ステップ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 document 201b, and acquires the image read from the third document 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と算出する。 In step S11, 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 document 201b, in step S12, the processing side CPU 103 obtains the character The orientation of the first read image 207 is identified as 180° by recognition processing, and the reliability of the first image orientation is calculated as R1 .

ステップ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, the processing-side CPU 103 recognizes that the illustration 215 is printed on the second surface 205 of the second document 201b instead of the characters 213 as described above. orientation cannot be determined accurately. Here, the orientation of the second read image 209 is originally 180°, but the processing-side CPU 103 erroneously identifies the orientation of the second read image 209 as 0°, and sets the reliability of the second image orientation to R 2 . calculated. Since the second read image 209 does not include characters 213 that can be recognized, the second image orientation reliability (R 2 ) is smaller than the first image orientation reliability (R 1 ). Also, the first image orientation reliability (R 1 ) is larger than the threshold, but the second image orientation reliability (R 2 ) is smaller than the threshold.

ステップ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 out of the first image orientation reliability (R 1 ) and the second image orientation reliability (R 2 ) is greater than or equal to the threshold (S14; No), go 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 greater than or equal to 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 clockwise by 180 degrees because the orientation of the first read image 207 specified by the character recognition process is 180 degrees. Alternatively, it is rotated counterclockwise by 180 degrees, and the second read image 209 is rotated clockwise by 180 degrees or counterclockwise by 180 degrees.

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

このように、処理側CPU103が連動回転処理を行うことで、第1読取り画像207および第2読取り画像209の一方については、文字認識処理により正しく向きが特定されたが、第1読取り画像207および第2読取り画像209の他方については、文字認識処理により誤って向きが特定された場合にも、回転後の第1読取り画像207の向きと回転後の第2読取り画像209の向きとを、所望の向きに揃えることができる。なお、第2原稿201bの第2面205のように、イラスト215のみが印刷された場合に限らず、文字213が印刷されているが、文字認識可能な文字213が少ない場合にも、本構成は有用である。 In this manner, the processing-side CPU 103 performs the interlocking rotation processing, so that the orientation of one of the first read image 207 and the second read image 209 is correctly specified by the character recognition processing, but the orientation of the first read image 207 and Regarding the other of the second read image 209, even if the orientation is erroneously specified by the character recognition process, the orientation of the first read image 207 after rotation and the orientation of the second read image 209 after rotation can be set as desired. can be aligned in the direction of It should be noted that this configuration is not limited to the case where only the illustration 215 is printed, as in the case of the second surface 205 of the second document 201b. 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と算出したものとする。 In step S11, 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 document 201c, in step S12, the processing side CPU 103 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 specified accurately by character recognition processing. . Here, the orientation of the first read image 207 is originally 180°, but the processing-side CPU 103 erroneously identifies the orientation of the first read image 207 as 90°, and sets the reliability of the first image orientation to R3. 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 corrects the orientation of the second read image 209 by character recognition processing because the illustration 215 is printed on the second surface 205 of the third document 201c instead of the characters 213. cannot be specified. Here, the orientation of the second read image 209 is originally 180°, but the processing-side CPU 103 erroneously identifies the orientation of the second read image 209 as 0°, and sets the reliability of the second image orientation to R4 . calculated. Both the first image orientation reliability (R 3 ) and the second image orientation reliability (R 4 ) are values below the threshold.

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

ステップS18において、処理側CPU103は、文字認識処理以外の画像解析処理により、第1読取り画像207の向きを180°と特定する。同様に、ステップS19において、処理側CPU103は、文字認識処理以外の画像解析処理により、第2読取り画像209の向きを180°と特定する。 In step S18, the processing-side CPU 103 identifies the orientation of the first read image 207 as 180° by image analysis processing other than the character recognition processing. Similarly, in step S19, the processing-side CPU 103 identifies the orientation of the second read image 209 as 180° by 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 determines that the orientation of the first read image 207 specified by the image analysis processing other than the character recognition processing is 180°. , rotate 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 determines that the orientation of the second read image 209, which is the orientation of the second read image 209 specified by the image analysis processing other than the character recognition processing, is 180°. , rotate 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, as shown in FIG. 18, the processing-side CPU 103 generates the first read image 207 after rotation, that is, the first read image 207 whose image orientation is corrected to 0°, and the second read image after rotation. The processing-side display unit 113 is caused to display the image 209 , that is, the second read image 209 whose image orientation is corrected to 0°.

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

続いて、個別回転処理や連動回転処理において行われる文字認識処理の変形例について説明する。図19に示すように、原稿201のヘッダー領域217およびフッター領域219には、通常、日付、ファイル名、頁番号等の文字213が含まれ、イラスト215等が含まれることが少ない。一方、原稿201のヘッダー領域217でなくフッター領域219でもない領域には、ヘッダー領域217およびフッター領域219に比べ、イラスト215等が含まれることが多い。そのため、ヘッダー領域217でなくフッター領域219でもない領域に含まれるイラスト215等を、文字認識処理により誤って文字213と認識してしまい、その結果、第1読取り画像207の向きを誤って特定するおそれがある。 Next, modified examples of character recognition processing performed in the individual rotation processing and the interlocked rotation processing will be described. As shown in FIG. 19, header area 217 and footer area 219 of document 201 usually contain characters 213 such as date, file name, and page number, and rarely contain illustrations 215 and the like. On the other hand, areas of the document 201 that are neither the header area 217 nor the footer area 219 often include the illustration 215 and the like compared to the header area 217 and the footer area 219 . Therefore, the illustration 215 or the like included in an area that is neither the header area 217 nor the footer area 219 is erroneously recognized as the character 213 by the character recognition process, 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 region 221 including the header region 217 and the footer region 219 on the first side 203 of the document 201, and The orientation of the first read image 207 may be determined based on the first end character orientation, which is the orientation specified for the contained characters 213 . The processing-side CPU 103 defines the area within the first dimension range from the upper edge 211 of the document 201 and the area within the second dimension range from the lower edge 223 of the document 201 as the first end area 221 . Note that the first dimension and the second dimension may be, for example, preset in the scanner driver, or may be set based on the user's selection operation accepted by the processing-side operation unit 111 . Also, the first end region 221 may include at least one of the header region 217 and the footer region 219 . By performing character recognition only on the first end region 221 in this way, the illustration 215 or the like included in the region that is neither the header region 217 nor the footer region 219 is erroneously recognized as the character 213 by character recognition. can be avoided. Therefore, even if the illustration 215 or the like is included in an area that is neither the header area 217 nor the footer area 219, the orientation of the first read image 207 can be specified with high accuracy.

また、さらなる変形例として、処理側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の向きを精度良く特定することができる。 As a further modification, the processing-side CPU 103 may perform character recognition processing as follows. First, the processing-side CPU 103 identifies the orientation of the characters 213 included in the first end region 221 by performing character recognition processing on the first end region 221 . In addition, the processing-side CPU 103 performs character recognition processing on the first non-end region 225, which is a region of the first surface 203 that is neither the header region 217 nor the footer region 219, so that the first non-end region 225 Identify the orientation of the included characters 213 . Subsequently, the processing-side CPU 103 specifies the character 213 included in the first end region 221 rather than the first non-end character orientation, which is the direction specified for the character 213 included in the first non-end region 225. The orientation of the first read image 207 is specified by assigning a greater weight to the first end character orientation, which is the selected orientation. That is, as described above, the processing-side CPU 103 gives greater weight to the orientation of the first end character than to the orientation of the first non-end character when voting for the orientation of the specified character 213 . Accordingly, even if the illustration 215 included in the first end region 221 is erroneously recognized as the character 213 by character recognition, the effect can be reduced. Therefore, even when the illustration 215 or the like is included in the first non-end region 225, the orientation of the first read image 207 can be specified with high accuracy.

なお、これらの変形例は、第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の向きを特定してもよい。 It should be noted that these modified examples are similarly applicable to the second read image 209 read from the second surface 205 as well. That is, the processing-side CPU 103 performs character recognition processing only on the second end region (not shown) that includes at least one of the header region 217 and the footer region 219 on the second side 205 of the document 201. The orientation of the second read image 209 may be identified based on the second edge character orientation, which is the orientation identified for the character 213 included in the two edge region. In addition, the processing-side CPU 103 selects a second non-edge character in the specified orientation for the character 213 included in the second non-edge area that is neither the header area 217 nor the footer area 219 on the second surface 205 . The orientation of the second read image 209 may be specified by assigning a greater weight to the second end character orientation, which is the orientation specified for the character 213 included in the second end region, than the orientation.

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

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

処理側CPU103は、回転後の第1読取り画像207および回転後の第2読取り画像209を、処理側表示部113に表示させる構成に限定されず、例えば、読取り側表示部27に表示させてもよく、情報処理装置101と通信可能に接続された他の装置に出力してもよい。 The processing-side CPU 103 is not limited to displaying the rotated first read image 207 and the rotated second read image 209 on the processing-side display section 113 . Alternatively, the information may be output to another device communicably 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 manuscripts 201 are set on the setting unit 9 and the plurality of manuscripts 201 are read continuously, the orientation of the first character recognition image and the orientation of the second character recognition image obtained for the first manuscript 201 are Of these, the selected image orientation may be applied to the second and subsequent originals 201 . For example, if 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 document 201, do. In this case, the first read image 207 and the second read image 209 read from the first document 201 are rotated based on the first character recognition image orientation (270°) selected for the first document 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 can also rotate it. As a result, for the second and subsequent originals 201, the process of specifying the orientation of the first read image 207 and the orientation of the second read image 209 and the orientation of either the first character recognition image or the second character recognition image are determined. The process of selecting can be omitted.

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

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

以下、情報処理装置、情報処理装置の画像回転方法およびプログラムについて付記する。
原稿の第1面を読み取った第1読取り画像と、原稿の第1面とは反対側の第2面を読み取った第2読取り画像と、を取得する取得部と、情報処理部と、を備え、情報処理部は、第1読取り画像に対する文字認識処理により特定された第1読取り画像の向きである第1文字認識画像向き、および第2読取り画像に対する文字認識処理により特定された第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択し、情報処理部は、選択した文字認識画像向きに基づいて、第1読取り画像と第2読取り画像とを回転させる。
The information processing apparatus, the image rotation method of the information processing apparatus, and the program will be described below.
an acquisition unit that acquires 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 to the first surface of the document; and an information processing unit. , the information processing unit determines a first character recognition image orientation, which is the orientation of the first read image specified by the character recognition processing for the first read image, and a second read image specified by the character recognition processing for the second read image. one of the orientations of the second character recognition image is selected, and the information processing unit converts the first read image and the second read image based on the selected orientation of the character recognition image. 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 orientation of the first character recognition image or the orientation of the second character recognition image. Therefore, the orientation of one of the first read image and the second read image is correctly specified by the character recognition processing, but the orientation of the other of the first read image and the second read image is erroneously specified by the character recognition processing. Even if it is 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 section determines whether the first image orientation reliability, which is the reliability of the first character recognition image orientation, is greater than the second image orientation reliability, which is the reliability of the second character recognition image orientation. When the information processing section determines that the reliability of the first image orientation is greater than the reliability of the second image orientation, the information processing section determines whether the first character recognition image orientation or the second character recognition image orientation is the first character recognition image orientation or the second character recognition image orientation. When the image orientation is selected and it is determined that the first image orientation reliability is smaller than the second image orientation reliability, the second character recognition image orientation is selected from among the first character recognition image orientation and the second character recognition image orientation. Select is preferred.

この構成によれば、第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 orientation of the first character recognition image and the orientation of the second character recognition image has a higher degree of reliability. Therefore, the orientation of one of the first read image and the second read image is correctly specified by the character recognition processing, but the orientation of the other of the first read image and the second read image is erroneously specified by the character recognition processing. Even when it is specified, the orientation of the first read image after rotation and the orientation of the second read image after rotation can be aligned with 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 or not the first image orientation reliability and the second image orientation reliability are smaller than a threshold, and the information processing unit determines whether the first image orientation reliability and the second image orientation reliability When it is determined that the degree is smaller than the threshold, the orientation of the first read image is specified by performing image analysis processing other than character recognition processing on the first read image, and character recognition is performed on the second read image. By performing image analysis processing other than recognition processing, the orientation of the second read image is specified, and the information processing unit determines the orientation of the first read image specified by image analysis processing other than character recognition processing for the first read image. The first read image is rotated based on the orientation of the first non-character recognition image that is Preferably, the second read image is rotated based on the recognized image orientation.

この構成によれば、第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, the first read image is rotated based on the orientation of the first non-character recognition image, and the second non-character recognition image is rotated. Rotate the second read image based on the recognized image orientation. Therefore, even if the orientations of both the first read image and the second read image are erroneously specified by the character recognition process, the orientation of the first read image after rotation and the orientation of the second read image after rotation are corrected. 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 section identifies the orientation of the characters included in the first end region by performing character recognition processing on the first end region including at least one of the header region and the footer region of the first surface. , the first edge character orientation, which is the orientation specified for the characters included in the first edge area, and the information processing section identifies the orientation of the first read image, and the information processing section determines the header area and footer By performing character recognition processing on a second end region including at least one of the regions, the orientation of the characters included in the second end region is specified, and the orientation of the characters included in the second end region is specified. Preferably, the orientation of the second read image is determined based on some second edge character orientation.

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

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

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

情報処理装置の画像回転方法は、原稿の第1面から読み取られた第1読取り画像と、原稿の第1面とは反対側の第2面から読み取られた第2読取り画像と、を取得し、第1読取り画像に対する文字認識処理により特定された第1読取り画像の向きである第1文字認識画像向き、および第2読取り画像に対する文字認識処理により特定された第2読取り画像の向きである第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択し、選択した文字認識画像向きに基づいて、第1読取り画像と第2読取り画像とを回転させる。 An image rotation method for an information processing apparatus acquires 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 specified by the character recognition processing for the first read image, and a second read image orientation that is the orientation of the second read image specified 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 orientation of the first character recognition image or the orientation of the second character recognition image. Therefore, the orientation of one of the first read image and the second read image is correctly specified by the character recognition processing, but the orientation of the other of the first read image and the second read image is erroneously specified by the character recognition processing. Even if it is 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読取り画像とを回転させるステップと、を実行させる。 a program for obtaining, in a computer, 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 specified by character recognition processing on the first read image, and a second read image orientation that is the orientation of the second read image specified by character recognition processing on the second read image Selecting one of the character recognition image orientations and rotating the first read image and the second read image based on the selected character recognition image orientation are performed.

この構成によれば、第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 orientation of the first character recognition image or the orientation of the second character recognition image. Therefore, the orientation of one of the first read image and the second read image is correctly specified by the character recognition processing, but the orientation of the other of the first read image and the second read image is erroneously specified by the character recognition processing. Even when it is 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 numerals 101: information processing apparatus 103: processing side CPU 201: document 203: first side 205: second side 207: first read image 209: second read image 217: header area 219: footer Regions 221... First end region 225... First non-end region.

Claims (7)

原稿の第1面を読み取った第1読取り画像と、前記原稿の前記第1面とは反対側の第2面を読み取った第2読取り画像と、を取得する取得部と、
情報処理部と、を備え、
前記情報処理部は、前記第1読取り画像に対する文字認識処理により前記第1読取り画像の向きである第1文字認識画像向きを、前記第1読取り画像を第1方向に回転させる角度θ °として特定し、前記第2読取り画像に対する文字認識処理により前記第2読取り画像の向きである第2文字認識画像向きを、前記第2読取り画像を前記第1方向に回転させる角度θ °として特定し、前記第1文字認識画像向きおよび前記第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択し、
前記情報処理部は、選択した前記文字認識画像向きが前記第1文字認識画像向きである場合には、前記第1読取り画像を前記第1方向にθ °または前記第1方向とは反対の第2方向に(360-θ )°回転させ、前記第2読取り画像を前記第1方向にθ °または前記第2方向に(360-θ )°回転させ、選択した前記文字認識画像向きが前記第2文字認識画像向きである場合には、前記第1読取り画像を前記第1方向にθ °または前記第2方向に(360-θ )°回転させ、前記第2読取り画像を前記第1方向にθ °または前記第2方向に(360-θ )°回転させることを特徴とする情報処理装置。
an acquisition unit that acquires a first read image obtained by reading a first surface of a document and a second read image obtained by reading a second surface of the document opposite to the first surface;
and an information processing unit,
The information processing section rotates the orientation of the first read image, which is the orientation of the first read image, in the first direction by an angle θ 1 ° by performing character recognition processing on the first read image. and the orientation of the second character recognition image, which is the orientation of the second read image, is set to the angle θ 2 ° by which the second read image is rotated in the first direction by character recognition processing on the second read image. selecting one of the first character recognition image orientation and the second character recognition image orientation ;
When the orientation of the selected character recognition image is the orientation of the first character recognition image, the information processing section aligns the first read image in the first direction by θ 1 ° or in the direction opposite to the first direction. Rotate (360−θ 1 )° in a second direction, rotate the second read image by θ 1 ° in the first direction or (360−θ 1 )° in the second direction, and select the character recognition image When the orientation is the orientation of the second character recognition image, the first read image is rotated by θ 2 degrees in the first direction or (360−θ 2 ) degrees in the second direction, and the second read image is rotated. is rotated in the first direction by θ 2 ° or in the second direction by (360−θ 2 )°.
前記情報処理部は、前記第1文字認識画像向きに対する信頼度である第1画像向き信頼度が、前記第2文字認識画像向きに対する信頼度である第2画像向き信頼度よりも大きいか否かを判断し、
前記情報処理部は、前記第1画像向き信頼度が前記第2画像向き信頼度よりも大きいと判断したときには、前記第1文字認識画像向きおよび前記第2文字認識画像向きのうち、前記第1文字認識画像向きを選択し、前記第1画像向き信頼度が前記第2画像向き信頼度よりも小さいと判断したときには、前記第1文字認識画像向きおよび前記第2文字認識画像向きのうち、前記第2文字認識画像向きを選択することを特徴とする請求項1に記載の情報処理装置。
The information processing unit determines whether a first image orientation reliability, which is a reliability of the first character recognition image orientation, is greater than a second image orientation reliability, which is a reliability of the second character recognition image orientation. to judge
When the information processing section determines that the first image orientation reliability is greater than the second image orientation reliability, the information processing section determines that the first character recognition image orientation or the second character recognition image orientation is the first character recognition image orientation. A character recognition image orientation is selected, and when it is determined that the first image orientation reliability is smaller than the second image orientation reliability, one of the first character recognition image orientation and the second character recognition image orientation is selected. 2. 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読取り画像の向きを、前記第1読取り画像を前記第1方向に回転させる角度α °として特定し、前記第2読取り画像に対して文字認識処理以外の画像解析処理を行うことで、前記第2読取り画像の向きを、前記第2読取り画像を前記第1方向に回転させる角度α °として特定し、
前記情報処理部は、前記第1読取り画像に対する文字認識処理以外の画像解析処理により特定された前記第1読取り画像の向きである第1非文字認識画像向きに基づいて、前記第1読取り画像を前記第1方向にα °または前記第2方向に(360-α )°回転させ、前記第2読取り画像に対する文字認識処理以外の画像解析処理により特定された前記第2読取り画像の向きである第2非文字認識画像向きに基づいて、前記第2読取り画像を前記第1方向にα °または前記第2方向に(360-α )°回転させることを特徴とする請求項2に記載の情報処理装置。
The information processing unit determines whether the first image orientation reliability and the second image orientation reliability are smaller than a threshold,
The information processing section performs image analysis processing other than character recognition processing on the first read image when determining that the first image orientation reliability degree and the second image orientation reliability degree are smaller than the threshold value. by specifying the orientation of the first read image as an angle α 1 ° for rotating the first read image in the first direction, and performing image analysis processing other than character recognition processing on the second read image By performing _
The information processing section recognizes the first read image based on a first non-character recognition image orientation that is the orientation of the first read image specified by image analysis processing other than character recognition processing on the first read image. In the orientation of the second read image specified by image analysis processing other than character recognition processing on the second read image, rotated by α 1 ° in the first direction or (360−α 1 in the second direction 3. The method according to claim 2, wherein the second read image is rotated by α 2 degrees in the first direction or (360−α 2 ) degrees in the second direction based on a certain orientation of the second non-character recognition image. The information processing device described.
前記情報処理部は、前記第1面のヘッダー領域およびフッター領域の少なくとも一方を含む第1端部領域に対する文字認識処理を行うことで、前記第1端部領域に含まれる文字の向きを特定し、前記第1端部領域に含まれる文字について特定された向きである第1端部文字向きに基づいて、前記第1読取り画像の向きを特定し、
前記情報処理部は、前記第2面のヘッダー領域およびフッター領域の少なくとも一方を含む第2端部領域に対する文字認識処理を行うことで、前記第2端部領域に含まれる文字の向きを特定し、前記第2端部領域に含まれる文字について特定された向きである第2端部文字向きに基づいて、前記第2読取り画像の向きを特定することを特徴とする請求項1ないし3のいずれか一項に記載の情報処理装置。
The information processing unit identifies the orientation of characters included in the first end region by performing character recognition processing on a first end region including at least one of a header region and a footer region of the first surface. , identifying the orientation of the first read image based on a first end character orientation that is the orientation identified for characters included in the first end region;
The information processing unit identifies the orientation of characters included in the second end region by performing character recognition processing on a second end region including at least one of a header region and a footer region of the second surface. 4. The orientation of the second read image is specified based on the second end character orientation, which is the specified orientation of the characters included in the second end region. or 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 section performs character recognition processing on a first non-end region that is neither the header region nor the footer region on the first surface, thereby determining the direction of characters included in the first non-end region. and assigning a greater weight to the first end character orientation than to the first non-end character orientation, which is the orientation specified for the characters included in the first non-end region, thereby obtaining the first Identify the orientation of the read image,
The information processing section performs character recognition processing on a second non-end region that is neither the header region nor the footer region on the second surface, thereby determining the direction of the characters included in the second non-end region. and assigning a larger weight to the second end character orientation than the second non-end character orientation, which is the orientation specified for the characters included in the second non-end region, thereby obtaining the second 5. The information processing apparatus according to claim 4, wherein the orientation of the read image is specified.
原稿の第1面から読み取られた第1読取り画像と、前記原稿の前記第1面とは反対側の第2面から読み取られた第2読取り画像と、を取得し、
前記第1読取り画像に対する文字認識処理により、前記第1読取り画像の向きである第1文字認識画像向きを、前記第1読取り画像を第1方向に回転させる角度θ °として特定し、前記第2読取り画像に対する文字認識処理により、前記第2読取り画像の向きである第2文字認識画像向きを、前記第2読取り画像を前記第1方向に回転させる角度θ °として特定し、前記第1文字認識画像向きおよび前記第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択し、
選択した前記文字認識画像向きが前記第1文字認識画像向きである場合には、前記第1読取り画像を前記第1方向にθ °または前記第1方向とは反対の第2方向に(360-θ )°回転させ、前記第2読取り画像を前記第1方向にθ °または前記第2方向に(360-θ )°回転させ、選択した前記文字認識画像向きが前記第2文字認識画像向きである場合には、前記第1読取り画像を前記第1方向にθ °または前記第2方向に(360-θ )°回転させ、前記第2読取り画像を前記第1方向にθ °または前記第2方向に(360-θ )°回転させる
ことを特徴とする情報処理装置の画像回転方法。
acquiring 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;
In character recognition processing for the first read image, the orientation of the first character recognition image, which is the orientation of the first read image, is specified as an angle θ 1 ° by which the first read image is rotated in the first direction, and character recognition processing for the second read image , specifying the orientation of the second character recognition image, which is the orientation of the second read image, as an angle θ 2 ° by which the second read image is rotated in the first direction ; selecting one of the orientation of the first character recognition image and the orientation of the second character recognition image ;
If the selected character recognition image orientation is the first character recognition image orientation, then the first read image is oriented θ 1 ° in the first direction or in a second direction opposite to the first direction (360 −θ 1 )°, rotating the second read image in the first direction by θ 1 ° or in the second direction by (360−θ 1 )°, so that the selected orientation of the character recognition image is the second character If the recognition image is oriented, the first read image is rotated by θ 2 degrees in the first direction or (360−θ 2 ) degrees in the second direction, and the second read image is rotated in the first direction. Rotate by θ 2 ° or (360−θ 2 )° in the second direction
An image rotation method for an information processing device, characterized by:
コンピューターに、
原稿の第1面から読み取られた第1読取り画像と、前記原稿の前記第1面とは反対側の第2面から読み取られた第2読取り画像と、を取得するステップと、
前記第1読取り画像に対する文字認識処理により前記第1読取り画像の向きである第1文字認識画像向きを、前記第1読取り画像を第1方向に回転させる角度θ °として特定し、前記第2読取り画像に対する文字認識処理により前記第2読取り画像の向きである第2文字認識画像向きを、前記第2読取り画像を前記第1方向に回転させる角度θ °として特定し、前記第1文字認識画像向きおよび前記第2文字認識画像向きのうち、いずれかの文字認識画像向きを選択するステップと、
選択した前記文字認識画像向きが前記第1文字認識画像向きである場合には、前記第1読取り画像を前記第1方向にθ °または前記第1方向とは反対の第2方向に(360-θ )°回転させ、前記第2読取り画像を前記第1方向にθ °または前記第2方向に(360-θ )°回転させ、選択した前記文字認識画像向きが前記第2文字認識画像向きである場合には、前記第1読取り画像を前記第1方向にθ °または前記第2方向に(360-θ )°回転させ、前記第2読取り画像を前記第1方向にθ °または前記第2方向に(360-θ )°回転させるステップと、
を実行させることを特徴とするプログラム。
to the computer,
acquiring 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;
By character recognition processing on the first read image, the orientation of the first character recognition image, which is the orientation of the first read image, is specified as an angle θ 1 ° by which the first read image is rotated in the first direction, and Through character recognition processing on the second read image, the orientation of the second character recognition image, which is the orientation of the second read image, is specified as an angle θ 2 ° by which the second read image is rotated in the first direction, and the first selecting one of the character recognition image orientation and the second character recognition image orientation ;
If the selected character recognition image orientation is the first character recognition image orientation, then the first read image is oriented θ 1 ° in the first direction or in a second direction opposite to the first direction (360 −θ 1 )°, rotating the second read image in the first direction by θ 1 ° or in the second direction by (360−θ 1 )°, so that the selected orientation of the character recognition image is the second character If the recognition image is oriented, the first read image is rotated by θ 2 degrees in the first direction or (360−θ 2 ) degrees in the second direction, and the second read image is rotated in the first direction. rotating by θ 2 ° or (360−θ 2 )° in the second direction ;
A program characterized by causing the execution of
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 JP2020088736A (en) 2020-06-04
JP7192441B2 true 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)

Families Citing this family (1)

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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015015566A (en) 2013-07-04 2015-01-22 京セラドキュメントソリューションズ株式会社 Image processing apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3251959B2 (en) * 1991-10-17 2002-01-28 株式会社リコー Image forming device
JPH10191018A (en) * 1996-12-20 1998-07-21 Canon Inc Image processing method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015015566A (en) 2013-07-04 2015-01-22 京セラドキュメントソリューションズ株式会社 Image processing apparatus

Also Published As

Publication number Publication date
JP2020088736A (en) 2020-06-04

Similar Documents

Publication Publication Date Title
US10984233B2 (en) Image processing apparatus, control method, and non-transitory storage medium that obtain text data for an image
JP4963809B2 (en) Outlier detection during scanning
US9324073B2 (en) Systems for mobile image capture and remittance processing
US10694098B2 (en) Apparatus displaying guide for imaging document, storage medium, and information processing method
JPH1139428A (en) Direction correcting method for document video
US10706581B2 (en) Image processing apparatus for clipping and sorting images from read image according to cards and control method therefor
US8203763B2 (en) Image scanning apparatus and method for aligning a stack of scanned images using the stack orientation indicated by a user and an automatically determined image orientation
JP7192441B2 (en) Information processing device, image rotation method for information processing device, and program
US10375269B2 (en) Image processing device, image reading device, and image forming apparatus
JP6592873B2 (en) Image reading apparatus, image forming apparatus, image reading method, and image reading program
US20210097275A1 (en) Image processing apparatus, control method of image processing apparatus, and storage medium
US11436733B2 (en) Image processing apparatus, image processing method and storage medium
US10943108B2 (en) Image reader performing character correction
US9749487B2 (en) Document reading device that detects orientation of image read from spread document
US10706337B2 (en) Character recognition device, character recognition method, and recording medium
US10356276B2 (en) Image processing apparatus, image forming apparatus, and computer readable medium
US20170344517A1 (en) Information processing apparatus and program
WO2020183628A1 (en) Image processing device, image reading device, image processing method, and program
CN110991451B (en) Correction method and device for card area image of scanned image
US11328425B2 (en) Image processing apparatus and non-transitory computer readable medium
US20070146814A1 (en) Read Control System, Method and Computer Readable Medium
JP6604320B2 (en) Image forming apparatus
US20220335738A1 (en) Image processing system, image processing method, and storage medium
US11722615B2 (en) Image processing including adjusting image orientation
US10334132B2 (en) Image reading device for rotating read image in accordance with orientation of face image, image forming apparatus, and image reading method

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