JP6365894B2 - Image reading device - Google Patents

Image reading device Download PDF

Info

Publication number
JP6365894B2
JP6365894B2 JP2015231048A JP2015231048A JP6365894B2 JP 6365894 B2 JP6365894 B2 JP 6365894B2 JP 2015231048 A JP2015231048 A JP 2015231048A JP 2015231048 A JP2015231048 A JP 2015231048A JP 6365894 B2 JP6365894 B2 JP 6365894B2
Authority
JP
Japan
Prior art keywords
image
sum
pixel values
line
upside down
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2015231048A
Other languages
Japanese (ja)
Other versions
JP2017098848A (en
Inventor
有儀 彦阪
有儀 彦阪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2015231048A priority Critical patent/JP6365894B2/en
Publication of JP2017098848A publication Critical patent/JP2017098848A/en
Application granted granted Critical
Publication of JP6365894B2 publication Critical patent/JP6365894B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像読取装置に関するものである。   The present invention relates to an image reading apparatus.

ある画像読取装置は、文字認識処理によって、原稿画像内の文字の方向を特定し、特定した文字の方向から原稿画像の向きを特定している(例えば特許文献1参照)。   A certain image reading device specifies the direction of characters in a document image by character recognition processing, and specifies the direction of the document image from the specified character direction (see, for example, Patent Document 1).

特開2011−61635号公報JP 2011-61635 A

しかしながら、すべての原稿画像に対して上述のようにして文字認識処理を行い、天地逆になっている原稿画像を検出しようとすると、複数ページの原稿画像に対する処理時間が長くなってしまう。   However, if character recognition processing is performed on all document images as described above to detect a document image that is upside down, the processing time for a plurality of pages of document images will increase.

本発明は、上記の問題に鑑みてなされたもので、比較的短時間で、原稿画像が天地逆であるか否かを判定する画像読取装置を得ることを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image reading apparatus that determines whether a document image is upside down in a relatively short time.

本発明に係る画像読取装置は、1ページの原稿画像の画像データを1ラインずつ取得する画像取得部と、前記画像取得部により取得された各ラインにおいて、前半部分における画素値の総和と後半部分における画素値の総和とを計算し、前記1ページの原稿画像内のラインのうち、写真領域を含まないラインに対する前記前半部分における画素値の総和と前記後半部分における画素値の総和とに基づいて、前記原稿画像が天地逆であるか否かを判定する1次判定部とを備える。

An image reading apparatus according to the present invention includes an image acquisition unit that acquires image data of a one-page document image line by line, and the sum of pixel values in the first half and the second half of each line acquired by the image acquisition unit. calculates a sum of pixel values in, among all lines in the original image of the first page, based on the sum of pixel values in the summation and the second half of the pixel value in the first half to the line without the photo region And a primary determination unit for determining whether or not the document image is upside down.

本発明によれば、比較的短時間で、原稿画像が天地逆であるか否かを判定する画像読取装置が得られる。   According to the present invention, it is possible to obtain an image reading apparatus that determines whether a document image is upside down in a relatively short time.

本発明の上記又は他の目的、特徴および優位性は、添付の図面とともに以下の詳細な説明から更に明らかになる。   These and other objects, features and advantages of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.

図1は、本発明の実施の形態に係る画像読取装置を示す斜視図である。FIG. 1 is a perspective view showing an image reading apparatus according to an embodiment of the present invention. 図2は、図1における画像読取装置1の構成を示すブロック図である。FIG. 2 is a block diagram showing a configuration of the image reading apparatus 1 in FIG. 図3は、原稿画像の一例を示す図である。FIG. 3 is a diagram illustrating an example of a document image. 図4は、図2における1次判定部42の構成例を示すブロック図である。FIG. 4 is a block diagram illustrating a configuration example of the primary determination unit 42 in FIG. 図5は、実施の形態1に係る画像読取装置1の動作について説明するフローチャートである。FIG. 5 is a flowchart for explaining the operation of the image reading apparatus 1 according to the first embodiment. 図6は、実施の形態2に係る画像読取装置1の動作について説明するフローチャートである。FIG. 6 is a flowchart for explaining the operation of the image reading apparatus 1 according to the second embodiment.

以下、図に基づいて本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

実施の形態1. Embodiment 1 FIG.

図1は、本発明の実施の形態に係る画像読取装置を示す斜視図である。図1において、画像読取装置1は、画像読取機能を有する複合機であり、画像読取装置の一種である。端末装置2は、例えば、スマートフォン、タブレット型パーソナルコンピューターなどの、ユーザーが携帯する端末装置であって、画像読取装置1と通信可能である。   FIG. 1 is a perspective view showing an image reading apparatus according to an embodiment of the present invention. In FIG. 1, an image reading apparatus 1 is a multifunction machine having an image reading function, and is a kind of image reading apparatus. The terminal device 2 is a terminal device carried by the user, such as a smartphone or a tablet personal computer, and can communicate with the image reading device 1.

図2は、図1における画像読取装置1の構成を示すブロック図である。図1に示す画像読取装置1は、画像読取部11、印刷装置12、ファクシミリ装置13、通信装置14、操作パネル15、演算処理装置16などを備える。   FIG. 2 is a block diagram showing a configuration of the image reading apparatus 1 in FIG. An image reading apparatus 1 shown in FIG. 1 includes an image reading unit 11, a printing apparatus 12, a facsimile apparatus 13, a communication apparatus 14, an operation panel 15, an arithmetic processing apparatus 16, and the like.

画像読取部11は、プラテングラスに載置された原稿や、自動原稿送り装置によりフィードされた原稿から原稿画像を光学的に読み取り、その原稿画像の画像データを生成する。原稿のあるページが、プラテングラスや自動原稿送り装置の給紙トレイに天地逆に載置された場合、そのページの原稿画像も天地逆となる。   The image reading unit 11 optically reads a document image from a document placed on a platen glass or a document fed by an automatic document feeder, and generates image data of the document image. When a page with a document is placed upside down on a platen glass or a paper feed tray of an automatic document feeder, the document image on that page is also upside down.

印刷装置12は、スキャンで得られた画像データなどに基づく画像を印刷する内部装置である。   The printing device 12 is an internal device that prints an image based on image data obtained by scanning.

ファクシミリ装置13は、スキャンで得られた画像データをファクシミリ信号として送信し、ファクシミリ信号を受信して画像データを生成する内部装置である。   The facsimile machine 13 is an internal device that transmits image data obtained by scanning as a facsimile signal and receives the facsimile signal to generate image data.

通信装置14は、ネットワークインターフェイス、近距離通信インターフェイスなどであって、端末装置2とデータ通信を行う装置である。   The communication device 14 is a device that performs data communication with the terminal device 2 such as a network interface or a short-range communication interface.

操作パネル15は、画像読取装置1の筺体上面側に配置され、ユーザーに対して画面を表示する表示装置21およびそのユーザーによる操作を受け付ける入力装置22を有する。表示装置21は、液晶ディスプレイなどである。また、入力装置22は、ハードキー、表示装置21とともにソフトキーを実現するタッチパネルなどである。   The operation panel 15 is disposed on the upper surface side of the housing of the image reading apparatus 1 and includes a display device 21 that displays a screen for the user and an input device 22 that receives an operation by the user. The display device 21 is a liquid crystal display or the like. The input device 22 is a hard key, a touch panel that implements a soft key together with the display device 21, or the like.

演算処理装置16は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)などを有するコンピューター、ASIC(Application Specific Integrated Circuit)などを備え、各種処理部として動作する。つまり、演算処理装置16は、ROMや図示せぬ記憶装置に記憶されているプログラムをRAMにロードしてCPUで実行して、ソフトウェアによって各種処理部として動作したり、ASICなどで、ハードウェアによって各種処理部として動作したりする。   The arithmetic processing unit 16 includes a computer having a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM), an application specific integrated circuit (ASIC), and the like, and operates as various processing units. That is, the arithmetic processing unit 16 loads a program stored in a ROM or a storage device (not shown) into the RAM and executes it by the CPU, and operates as various processing units by software, or by hardware such as an ASIC. It operates as various processing units.

演算処理装置16は、画像取得部41、1次判定部42、2次判定部43、および回転処理部44として動作する。   The arithmetic processing device 16 operates as an image acquisition unit 41, a primary determination unit 42, a secondary determination unit 43, and a rotation processing unit 44.

画像取得部41は、画像読取部11を制御して、原稿画像を読み取らせ、各ページの原稿画像のデータを1ラインずつ画像読取部11から取得する。   The image acquisition unit 41 controls the image reading unit 11 to read the original image, and acquires the original image data of each page from the image reading unit 11 line by line.

例えば、画像取得部41は、コピージョブまたはスキャントゥセンドジョブを実行する際に原稿画像を取得する。   For example, the image acquisition unit 41 acquires a document image when executing a copy job or a scan-to-send job.

1次判定部42は、画像取得部41により取得された各ラインにおいて、前半部分における画素値と後半部分における画素値とをカウントし、原稿画像内のラインのうち、写真領域を含まないラインに対する前半部分における画素値の総和と後半部分における画素値の総和とに基づいて、原稿画像が天地逆であるか否かを判定する。   In each line acquired by the image acquisition unit 41, the primary determination unit 42 counts the pixel value in the first half and the pixel value in the second half, and among the lines in the document image that does not include the photographic area. Whether the document image is upside down is determined based on the sum of the pixel values in the first half and the sum of the pixel values in the second half.

図3は、原稿画像の一例を示す図である。   FIG. 3 is a diagram illustrating an example of a document image.

図3に示すように、1ラインの画素数をNpとすると、前半部分の画素数はNp/2であり、後半部分の画素数はNp/2である。図3に示すように、原稿画像におけるテキストは、横書きの場合、左詰めで記述されることが多い。したがって、原稿画像の向きが正しい場合、テキストの最終行では、前半部分における文字の画素値は、後半部分における文字の画素値より多くなる。そのため、後半部分における画素値の総和N2が、前半部分における画素値の総和N1より多い場合、原稿画像の向きが正しくない、つまり、原稿画像が天地逆である可能性が高い。したがって、例えば、1次判定部42は、比率N2/N1が、所定の閾値(>1)を超えている場合、原稿画像が天地逆であると判定する。   As shown in FIG. 3, if the number of pixels in one line is Np, the number of pixels in the first half is Np / 2, and the number of pixels in the second half is Np / 2. As shown in FIG. 3, in the case of horizontal writing, the text in the original image is often written with left justification. Therefore, when the orientation of the original image is correct, the pixel value of the character in the first half is larger than the pixel value of the character in the second half in the last line of the text. Therefore, when the sum N2 of the pixel values in the second half is larger than the sum N1 of the pixel values in the first half, it is highly likely that the orientation of the document image is incorrect, that is, the document image is upside down. Therefore, for example, when the ratio N2 / N1 exceeds a predetermined threshold (> 1), the primary determination unit 42 determines that the document image is upside down.

実施の形態1では、1次判定部42は、各ラインの各画素について領域判定を行い、写真領域を含むライン(図3における中間調ライン)を特定し、特定したラインを除外して、上述の前半部分における画素値の総和と上述の後半部分における画素値の総和とを特定する。   In the first embodiment, the primary determination unit 42 performs region determination for each pixel of each line, specifies a line including a photo region (halftone line in FIG. 3), excludes the specified line, and The total sum of the pixel values in the first half part and the total sum of the pixel values in the second half part described above are specified.

図4は、図2における1次判定部42の構成例を示すブロック図である。   FIG. 4 is a block diagram illustrating a configuration example of the primary determination unit 42 in FIG.

1次判定部42は、ラインバッファー部61、領域判定部62、カウンター部63、および画像向き判定部64を備える。   The primary determination unit 42 includes a line buffer unit 61, a region determination unit 62, a counter unit 63, and an image orientation determination unit 64.

ラインバッファー部61は、注目ラインの画像データ他、注目ラインが写真領域を含むか否かの判定のために必要なラインの画像データを一時的に格納する。注目ラインは、原稿画像の先頭から順番に選択されていく。   The line buffer unit 61 temporarily stores image data of a line of interest, as well as image data of a line necessary for determining whether or not the line of interest includes a photo area. The attention line is selected in order from the top of the document image.

領域判定部62は、ラインバッファー部61に格納されているラインの画像データに基づいて、注目ラインの各画素について、その画素が写真領域に属するか否かを判定する。注目ラインにおいて少なくとも1つの画素が写真領域に属する場合、領域判定部62は、例えば図3に示すように、注目ラインが写真領域を含むと判定する。ここでは、写真領域を含むラインを中間調ラインという。   The area determination unit 62 determines, for each pixel of the target line, whether or not the pixel belongs to the photographic area based on the line image data stored in the line buffer unit 61. When at least one pixel belongs to the photographic area in the attention line, the area determination unit 62 determines that the attention line includes the photographic area, for example, as shown in FIG. Here, the line including the photographic area is referred to as a halftone line.

カウンター部63は、注目ラインの前半部分における画素値をカウントするとともに、注目ラインの後半部分における画素値をカウントする。さらに、カウンター部63は、全ラインの前半部分における画素値の総和N1の初期値をゼロとし、注目ラインの前半部分における画素値をN1に加算していく。同様に、カウンター部63は、全ラインの後半部分における画素値の総和N2の初期値をゼロとし、注目ラインの後半部分における画素値をN2に加算していく。   The counter unit 63 counts pixel values in the first half of the target line and counts pixel values in the second half of the target line. Further, the counter unit 63 sets the initial value of the sum N1 of pixel values in the first half of all lines to zero, and adds the pixel value in the first half of the target line to N1. Similarly, the counter unit 63 sets the initial value of the sum N2 of pixel values in the latter half of all lines to zero and adds the pixel value in the latter half of the target line to N2.

領域判定部62は、既知の方法によって、所定サイズ(例えば7×7画素)の画素ブロックの濃度パターンに基づいて、画素ブロックの中心画素が写真領域に属するか否かを判定する。したがって、カウンター部63は、注目ラインについてカウントされた前半部分の画素値および後半部分の画素値を、領域判定部62の画素ブロックに含まれるすべてのラインが取得され注目ラインが写真領域を含むか否かが判定されるまで保持し、注目ラインが写真領域に属さないと判定された場合、前半部分の画素値の総和N1および後半部分の画素値の総和N2にそれぞれ加算する。一方、注目ラインが写真領域に属すると判定された場合(つまり、注目ラインにおける少なくとも1つの画素が写真領域に属すると判定された場合)、注目ラインについてカウントされた前半部分の画素値および前半部分の画素値は、前半部分の画素値の総和N1および後半部分の画素値の総和N2にそれぞれ加算されない。   The area determination unit 62 determines whether or not the central pixel of the pixel block belongs to the photographic area based on the density pattern of the pixel block having a predetermined size (for example, 7 × 7 pixels) by a known method. Therefore, the counter unit 63 obtains the pixel values of the first half part and the second half part counted for the target line, whether all the lines included in the pixel block of the area determination unit 62 are acquired, and whether the target line includes a photo area. If it is determined that the target line does not belong to the photographic area, it is added to the sum N1 of the pixel values in the first half and the sum N2 of the pixel values in the second half, respectively. On the other hand, when it is determined that the target line belongs to the photo area (that is, when it is determined that at least one pixel in the target line belongs to the photo area), the pixel values of the first half and the first half counted for the target line Are not added to the sum N1 of the pixel values of the first half part and the sum N2 of the pixel values of the second half part, respectively.

画像向き判定部64は、全ラインについての前半部分における画素値および後半部分における画素値がカウントされ、1ページの原稿画像についての前半部分の画素値の総和N1および後半部分の画素値の総和N2が特定されると、ただちに、前半部分における画素値の総和と後半部分における画素値の総和とに基づいて、原稿画像が天地逆であるか否かを判定する。   The image orientation determination unit 64 counts the pixel values in the first half and the pixel values in the second half of all lines, and sums the pixel values N1 and N2 of the first half and the pixels in the second half of one page of the document image. Is immediately determined based on the sum of the pixel values in the first half and the sum of the pixel values in the second half to determine whether the document image is upside down.

つまり、1次判定部42は、(a)画像取得部41によって原稿画像の1ラインの画像データが取得されるたびに、その1ラインにおいて、前半部分における画素値と後半部分における画素値とをカウントし、その1ラインが写真領域を含むラインとして除外されない場合、前半部分における画素値の総和および後半部分における画素値の総和にそれぞれ加算し、(b)画像取得部41によって原稿画像の最後のラインが取得され、前半部分における画素値の総和と後半部分における画素値の総和が特定されると、ただちに、前半部分における画素値の総和と後半部分における画素値の総和とに基づいて、原稿画像が天地逆であるか否かを判定する。   That is, the primary determination unit 42 (a) every time image data of one line of a document image is acquired by the image acquisition unit 41, the pixel value in the first half part and the pixel value in the second half part are obtained for the one line. When one line is not excluded as a line including a photographic area, it is added to the sum of the pixel values in the first half and the sum of the pixel values in the second half, respectively. (B) The image acquisition unit 41 As soon as the line is acquired and the sum of the pixel values in the first half and the sum of the pixel values in the second half are specified, the original image is based on the sum of the pixel values in the first half and the sum of the pixel values in the second half. It is determined whether or not is upside down.

2次判定部43は、1次判定部42によって原稿画像が天地逆であると判定された場合に、画像取得部41により取得された1ページの原稿画像に対して文字認識処理を行って原稿画像内の文字を検出し、原稿画像に対する文字認識処理により特定された原稿画像内の文字の向きに基づいて、原稿画像が天地逆であるか否かを判定する。   When the primary determination unit 42 determines that the document image is upside down, the secondary determination unit 43 performs character recognition processing on the one-page document image acquired by the image acquisition unit 41 and performs document recognition. A character in the image is detected, and it is determined whether or not the document image is upside down based on the direction of the character in the document image specified by the character recognition process for the document image.

上述のように、2次判定部43は、原稿画像全体が取得された後、文字認識処理で、原稿画像が天地逆であるか否かを判定するが、1次判定部42は、原稿画像の取得に並行して画素値の総和N1,N2を上述のように特定していき、原稿画像全体が取得された後、リアルタイムで、ただちに、原稿画像が天地逆であるか否かを判定する。したがって、1次判定部42は、2次判定部43より早いタイミングで、原稿画像が天地逆であるか否かを判定できる。他方、2次判定部43は、文字認識処理に基づく文字の向きで、原稿画像が天地逆であるか否かを判定するため、正確に、原稿画像が天地逆であるか否かを判定できる。   As described above, the secondary determination unit 43 determines whether the document image is upside down in the character recognition process after the entire document image is acquired. The primary determination unit 42 determines whether the document image is upside down. In parallel with the acquisition, the sum N1 and N2 of the pixel values are specified as described above, and after the entire original image is acquired, it is immediately determined in real time whether the original image is upside down. . Therefore, the primary determination unit 42 can determine whether the document image is upside down at an earlier timing than the secondary determination unit 43. On the other hand, since the secondary determination unit 43 determines whether or not the document image is upside down based on the character orientation based on the character recognition process, it can accurately determine whether or not the document image is upside down. .

回転処理部44は、実施の形態1では、1次判定部42によって原稿画像が天地逆であると判定され、かつ2次判定部43により原稿画像が天地逆であると判定された場合に、原稿画像を180度だけ反転させる。   In the first embodiment, the rotation processing unit 44 determines that the document image is upside down by the primary determination unit 42 and the document image is determined to be upside down by the secondary determination unit 43. The original image is reversed by 180 degrees.

次に、実施の形態1に係る画像読取装置1の動作について説明する。図5は、実施の形態1に係る画像読取装置1の動作について説明するフローチャートである。   Next, the operation of the image reading apparatus 1 according to the first embodiment will be described. FIG. 5 is a flowchart for explaining the operation of the image reading apparatus 1 according to the first embodiment.

まず、コピージョブまたはスキャントゥセンドジョブにおいて、画像取得部41は、複数ページの原稿から、画像読取部11で1ページずつ原稿画像を読み取らせ、原稿画像の画像データの取得を開始する(ステップS1)。   First, in a copy job or a scan-to-send job, the image acquisition unit 41 causes the image reading unit 11 to read a document image page by page from a plurality of pages of documents and starts acquiring image data of the document image (step S1). ).

そして、1次判定部42は、上述のようにして、各ラインについての前半部分の画素値および後半部分の画素値をカウントするとともに、各ラインが写真領域を含むか否かを判定する(ステップS2)。   Then, the primary determination unit 42 counts the pixel values of the first half and the second half of each line as described above, and determines whether each line includes a photographic region (step) S2).

そして、画像取得部41による原稿画像の画像データの取得が完了し、原稿画像全体(つまり、全ライン)について、写真領域を含むラインの画素値を除外した、前半部分の画素値の総和N1および後半部分の画素値の総和N2のカウントを完了すると(ステップS3)、1次判定部42は、その前半部分の画素値の総和N1および後半部分の画素値の総和N2に基づいて、原稿画像が天地逆であるか否かを判定する(ステップS4)。   Then, the acquisition of the image data of the document image by the image acquisition unit 41 is completed, and for the entire document image (that is, all lines), the sum N1 of the pixel values of the first half portion excluding the pixel values of the line including the photographic region and When the counting of the sum N2 of the pixel values in the second half is completed (step S3), the primary determination unit 42 determines that the document image is based on the sum N1 of the pixel values in the first half and the sum N2 of the pixel values in the second half. It is determined whether it is upside down (step S4).

原稿画像が天地逆である場合(ステップS5)、2次判定部43は、取得された原稿画像に対して文字認識処理を実行し(ステップS6)、文字認識処理によって特定された、原稿画像内の文字の向きに基づいて、原稿画像が天地逆であるか否かを判定する(ステップS7)。そして、原稿画像が天地逆である場合(ステップS8)、画像回転部44は、原稿画像を反転させる。   When the document image is upside down (step S5), the secondary determination unit 43 executes character recognition processing on the acquired document image (step S6), and the inside of the document image specified by the character recognition processing. Whether or not the original image is upside down is determined based on the direction of the character (step S7). If the document image is upside down (step S8), the image rotation unit 44 inverts the document image.

一方、ステップS5またはステップS8において原稿画像が天地逆ではない場合には、画像回転部44は、原稿画像を反転させない。   On the other hand, if the document image is not upside down in step S5 or step S8, the image rotation unit 44 does not invert the document image.

その後、コピージョブの場合には、読み取られた原稿画像が印刷され、スキャントゥセンドの場合には、読み取られた原稿画像が所定の通信プロトコルで所定の宛先に送信される。   Thereafter, in the case of a copy job, the read original image is printed, and in the case of scan to send, the read original image is transmitted to a predetermined destination using a predetermined communication protocol.

以上のように、上記実施の形態1によれば、画像取得部41は、1ページの原稿画像の画像データを1ラインずつ取得する。1次判定部42は、画像取得部41により取得された各ラインにおいて、前半部分における画素値と後半部分における画素値とをカウントし、原稿画像内のラインのうち、写真領域を含まないラインに対する前半部分における画素値の総和と後半部分における画素値の総和とに基づいて、原稿画像が天地逆であるか否かを判定する。   As described above, according to the first embodiment, the image acquisition unit 41 acquires image data of one page of document image line by line. In each line acquired by the image acquisition unit 41, the primary determination unit 42 counts the pixel value in the first half and the pixel value in the second half, and among the lines in the document image that does not include the photographic area. Whether the document image is upside down is determined based on the sum of the pixel values in the first half and the sum of the pixel values in the second half.

したがって、1次判定部42により天地逆であると判定されたページの原稿画像についてのみ、2次判定部43により天地逆であるか否かが判定されるため、1次判定部42により天地逆ではないと判定されたページの原稿画像については、文字認識処理が実行されない。これにより、比較的短時間で、原稿画像が天地逆であるか否かが判定される。   Accordingly, only the document image of the page determined to be upside down by the primary determination unit 42 is determined by the secondary determination unit 43 as to whether it is upside down. Character recognition processing is not executed for the document image of the page determined to be not. Thereby, it is determined in a relatively short time whether the document image is upside down.

実施の形態2. Embodiment 2. FIG.

実施の形態2では、1次判定部42の判定結果およびユーザー操作に基づいて、原稿画像の回転を行うか否かが判定される。したがって、実施の形態2では、2次判定部43は必要ない。   In the second embodiment, whether or not to rotate the document image is determined based on the determination result of the primary determination unit 42 and the user operation. Therefore, in the second embodiment, the secondary determination unit 43 is not necessary.

実施の形態2では、1次判定部42は、原稿画像が天地逆であると判定した場合、原稿画像が天地逆であることを示すメッセージを所定の表示装置に表示させる。そして、実施の形態2では、画像回転部44は、所定の入力装置に対する所定のユーザー操作が検出されると、原稿画像を反転させる。   In the second embodiment, when the primary determination unit 42 determines that the document image is upside down, a message indicating that the document image is upside down is displayed on a predetermined display device. In the second embodiment, the image rotation unit 44 inverts the document image when a predetermined user operation on a predetermined input device is detected.

その表示装置および入力装置としては、画像読取装置1の操作パネル15(表示装置21および入力装置22)、または当該画像読取装置1と通信する端末装置2の図示せぬ表示装置および入力装置が使用される。   As the display device and the input device, an operation panel 15 (display device 21 and input device 22) of the image reading device 1 or a display device and an input device (not shown) of the terminal device 2 communicating with the image reading device 1 are used. Is done.

なお、実施の形態2に係る画像読取装置1のその他の構成については、実施の形態1のものと同様であるので、その説明を省略する。   Since the other configuration of the image reading apparatus 1 according to the second embodiment is the same as that of the first embodiment, the description thereof is omitted.

次に、実施の形態2に係る画像読取装置1の動作について説明する。図6は、実施の形態2に係る画像読取装置1の動作について説明するフローチャートである。   Next, the operation of the image reading apparatus 1 according to the second embodiment will be described. FIG. 6 is a flowchart for explaining the operation of the image reading apparatus 1 according to the second embodiment.

図6におけるステップS11〜S15の処理については、実施の形態1(図5)と同一であるので、その説明を省略する。   Since the processing in steps S11 to S15 in FIG. 6 is the same as that in the first embodiment (FIG. 5), description thereof is omitted.

原稿画像が天地逆であると判定した場合(ステップS15)、1次判定部42は、原稿画像が天地逆であることを示すメッセージを、表示装置21または端末装置2に表示させる(ステップS16)。これにより、原稿画像が天地逆であると判定されたことがユーザーに報知される。   When it is determined that the document image is upside down (step S15), the primary determination unit 42 causes the display device 21 or the terminal device 2 to display a message indicating that the document image is upside down (step S16). . This notifies the user that the document image has been determined to be upside down.

なお、そのメッセージを端末装置2に表示させる場合には、画像読取装置1へログインする際に提示されたユーザーIDに関連付けられている端末装置2へメッセージが送信され、表示される。また、メッセージとともに、原稿画像のサムネイル画像が表示されるようにしてもよい。   When the message is displayed on the terminal device 2, the message is transmitted to the terminal device 2 associated with the user ID presented when logging into the image reading device 1 and displayed. Further, a thumbnail image of the document image may be displayed together with the message.

メッセージ表示開始後、ユーザーが端末装置2または入力装置22に対して所定の操作(画像回転のための操作)を行うと、その操作が検出された旨が画像回転部44に通知され、画像回転部44は、ユーザーが画像回転を指示したと判定し(ステップS17)、原稿画像を180度回転させる(ステップS18)。   When the user performs a predetermined operation (operation for image rotation) on the terminal device 2 or the input device 22 after the message display starts, the image rotation unit 44 is notified that the operation has been detected, and the image rotation is performed. The unit 44 determines that the user has instructed image rotation (step S17), and rotates the document image by 180 degrees (step S18).

例えば、上述のように、天地逆であると判定された原稿画像のサムネイル画像が表示される場合、そのサムネイル画像がユーザーにより押下されると、その押下を画像回転のための操作として端末装置2または入力装置22のタッチパネルで検出されるようにしてもよい。   For example, as described above, when a thumbnail image of a document image that is determined to be upside down is displayed, when the thumbnail image is pressed by the user, the pressing is regarded as an operation for image rotation. Alternatively, it may be detected by a touch panel of the input device 22.

一方、ステップS15において原稿画像が天地逆ではない場合には、画像回転部44は、原稿画像を反転させない。また、上述のメッセージ表示開始後、ユーザーが端末装置2または入力装置22に対して所定の操作(画像回転を行わせないための操作)を行うと、その操作が検出された旨が画像回転部44に通知され、画像回転部44は、ユーザーが画像回転を指示しなかったと判定し(ステップS17)、原稿画像を回転させない。   On the other hand, if the document image is not upside down in step S15, the image rotation unit 44 does not invert the document image. When the user performs a predetermined operation (operation not to rotate the image) on the terminal device 2 or the input device 22 after the message display starts, the image rotation unit indicates that the operation has been detected. 44, the image rotation unit 44 determines that the user has not instructed image rotation (step S17), and does not rotate the document image.

その後、コピージョブの場合には、読み取られた原稿画像が印刷され、スキャントゥセンドの場合には、読み取られた原稿画像が所定の通信プロトコルで所定の宛先に送信される。   Thereafter, in the case of a copy job, the read original image is printed, and in the case of scan to send, the read original image is transmitted to a predetermined destination using a predetermined communication protocol.

以上のように、上記実施の形態2によれば、文字認識処理を行わずに原稿画像が天地逆であるか否かが判定されるため、比較的短時間で、原稿画像が天地逆であるか否かが判定される。   As described above, according to the second embodiment, since it is determined whether or not the document image is upside down without performing the character recognition process, the document image is upside down in a relatively short time. It is determined whether or not.

なお、上述の実施の形態に対する様々な変更および修正については、当業者には明らかである。そのような変更および修正は、その主題の趣旨および範囲から離れることなく、かつ、意図された利点を弱めることなく行われてもよい。つまり、そのような変更および修正が請求の範囲に含まれることを意図している。   Various changes and modifications to the above-described embodiment will be apparent to those skilled in the art. Such changes and modifications may be made without departing from the spirit and scope of the subject matter and without diminishing its intended advantages. That is, such changes and modifications are intended to be included within the scope of the claims.

例えば、実施の形態1において、1次判定部42により原稿画像が天地逆であると判定された場合、実施の形態2のようにして、原稿画像が天地逆である旨を示すメッセージを所定の表示装置(表示装置22または端末装置2)に表示させるようにしてもよい。   For example, in the first embodiment, when the primary determination unit 42 determines that the document image is upside down, a message indicating that the document image is upside down is displayed in a predetermined manner as in the second embodiment. You may make it display on a display apparatus (the display apparatus 22 or the terminal device 2).

また、実施の形態1,2において、1次判定部42により原稿画像が天地逆であると判定された場合、ブザーなどの音によって原稿画像が天地逆である旨を報知するようにしてもよい。   In the first and second embodiments, when the primary determination unit 42 determines that the document image is upside down, a sound such as a buzzer may notify that the document image is upside down. .

また、実施の形態2において、1次判定部42によりあるページの原稿画像が天地逆であると判定された場合、後続ページがあるときには、上述のメッセージ表示開始後のユーザー操作の検出を待たずに、画像取得部41は、画像読取部11に、後続ページについての原稿画像の読み取りを開始させるとともに、原稿画像の画像データの取得を開始し、1次判定部42は、後続ページに対する上述の画素値のカウントおよび画素値の総和の計算を行うようにしてもよい。   In the second embodiment, when the primary determination unit 42 determines that the document image of a certain page is upside down, when there is a subsequent page, the detection of the user operation after the start of the message display is not waited. In addition, the image acquisition unit 41 causes the image reading unit 11 to start reading the document image for the subsequent page, and also starts to acquire the image data of the document image. The pixel value may be counted and the sum of the pixel values may be calculated.

また、実施の形態2において、1次判定部42によりあるページの原稿画像が天地逆であると判定された場合、1次判定部42により天地逆であると判定された原稿画像を含むジョブに対する画像読取が完了すると、画像取得部41は、そのジョブの読み取られた原稿画像の画像データを保存するとともに、後続のジョブの実行を開始するようにしてもよい。その場合、そのジョブの読み取られた原稿画像の画像データは、上述のユーザー操作が検出されるまで保存され、上述のユーザー操作の検出後、元のジョブが再開される。   Further, in the second embodiment, when the primary determination unit 42 determines that the original image of a page is upside down, for a job including the original image determined by the primary determination unit 42 to be upside down. When the image reading is completed, the image acquisition unit 41 may store the image data of the document image read by the job and start the subsequent job. In that case, the image data of the original image read from the job is stored until the above-described user operation is detected, and after the above-described user operation is detected, the original job is resumed.

また、実施の形態1,2において、コピージョブにおいて自動原稿送り装置を使用する場合、上述のようにして天地逆である原稿画像を検出するか否かを設定データで設定可能としてもよい。設定データで上述のようにして天地逆である原稿画像の検出を指定する場合、(a)上述のようにして原稿画像が天地逆であるか否かの判定に並行して、読み取られた原稿画像をそのままの向きで印刷し、印刷完了後に、原稿画像が天地逆であると判定されたページを示すメッセージを表示するか(つまり、この場合には、原稿画像の回転は行われない)、(b)すべてのページの原稿画像について上述のようにして原稿画像が天地逆であるか否かの判定をし必要に応じて原稿画像の回転を行った上で原稿画像の印刷を行うかを、設定データで選択できるようにしてもよい。   In the first and second embodiments, when an automatic document feeder is used in a copy job, whether or not to detect a document image that is upside down may be set by setting data as described above. When specifying the detection of a document image that is upside down in the setting data as described above, (a) the document that has been read in parallel with the determination as to whether or not the document image is upside down as described above Print the image in its original orientation and display a message indicating the page where the original image is determined to be upside down after printing is completed (that is, in this case, the original image is not rotated), (B) It is determined whether or not the original image is upside down for the original images of all pages, and whether or not the original image is printed after the original image is rotated as necessary. The setting data may be selected.

本発明は、例えば、複合機などの画像形成装置に適用可能である。   The present invention is applicable to an image forming apparatus such as a multifunction machine.

1 画像読取装置
41 画像取得部
42 1次判定部
43 2次判定部
44 画像回転部
DESCRIPTION OF SYMBOLS 1 Image reader 41 Image acquisition part 42 Primary determination part 43 Secondary determination part 44 Image rotation part

Claims (8)

1ページの原稿画像の画像データを1ラインずつ取得する画像取得部と、
前記画像取得部により取得された各ラインにおいて、前半部分における画素値の総和と後半部分における画素値の総和とを計算し、前記1ページの原稿画像内のラインのうち、写真領域を含まないラインに対する前記前半部分における画素値の総和と前記後半部分における画素値の総和とに基づいて、前記原稿画像が天地逆であるか否かを判定する1次判定部と、
を備えることを特徴とする画像読取装置。
An image acquisition unit for acquiring image data of one page of document image line by line;
In each line acquired by the image acquisition section, and a sum of pixel values in the summation and the second half portion of the pixel values in the first half is calculated, among all lines in the original image of the first page, not including photographic area A primary determination unit that determines whether or not the document image is upside down based on a sum of pixel values in the first half portion and a sum of pixel values in the second half portion with respect to a line;
An image reading apparatus comprising:
前記1次判定部は、前記各ラインの各画素について領域判定を行い、前記写真領域を含むラインを特定し、特定したラインを除外して、前記前半部分における画素値の総和と前記後半部分における画素値の総和とを特定することを特徴とする請求項1記載の画像読取装置。   The primary determination unit performs region determination for each pixel of each line, specifies a line including the photographic region, excludes the specified line, and adds a sum of pixel values in the first half part and the second half part. The image reading apparatus according to claim 1, wherein a total sum of pixel values is specified. 前記1次判定部は、(a)前記画像取得部によって前記原稿画像の1ラインの画像データが取得されるたびに、その1ラインにおいて、前記前半部分における画素値の総和と前記後半部分における画素値の総和とを計算し、その1ラインが前記写真領域を含むラインとして除外されない場合、前記前半部分における画素値の総和および前記後半部分における画素値の総和にそれぞれ加算し、
(b)前記画像取得部によって前記原稿画像の最後のラインが取得され、前記前半部分における画素値の総和と前記後半部分における画素値の総和が特定されると、ただちに、前記前半部分における画素値の総和と前記後半部分における画素値の総和とに基づいて、前記原稿画像が天地逆であるか否かを判定すること、
を特徴とする請求項2記載の画像読取装置。
The primary determination unit (a) every time image data of one line of the original image is acquired by the image acquisition unit, the sum of the pixel values in the first half part and the pixels in the second half part in that line. When the sum of the values is calculated and one line is not excluded as a line including the photograph area, the sum of the pixel values in the first half part and the sum of the pixel values in the second half part are respectively added,
(B) When the last line of the original image is acquired by the image acquisition unit and the sum of the pixel values in the first half part and the sum of the pixel values in the second half part are specified, the pixel value in the first half part is immediately Determining whether or not the original image is upside down based on the sum of the pixel values and the sum of the pixel values in the latter half part,
The image reading apparatus according to claim 2.
前記1次判定部によって前記原稿画像が天地逆であると判定された場合に、前記原稿画像に対する文字認識処理により特定された前記原稿画像内の文字の向きに基づいて、前記原稿画像が天地逆であるか否かを判定する2次判定部と、
前記1次判定部によって前記原稿画像が天地逆であると判定され、かつ前記2次判定部により前記原稿画像が天地逆であると判定された場合に、前記原稿画像を反転させる画像回転部と、
をさらに備えることを特徴とする請求項1から請求項3のうちのいずれか1項記載の画像読取装置。
When the primary determination unit determines that the document image is upside down, the document image is turned upside down based on the direction of the characters in the document image specified by the character recognition process for the document image. A secondary determination unit for determining whether or not
An image rotation unit that inverts the document image when the primary determination unit determines that the document image is upside down and the secondary determination unit determines that the document image is upside down; ,
The image reading apparatus according to claim 1, further comprising:
画像回転部をさらに備え、
前記1次判定部は、前記原稿画像が天地逆であると判定した場合、前記原稿画像が天地逆であることを示すメッセージを所定の表示装置に表示させ、
前記画像回転部は、所定の入力装置に対する所定のユーザー操作が検出されると、前記原稿画像を反転させ、
前記表示装置および前記入力装置は、当該画像読取装置、または当該画像読取装置と通信する端末装置に設置されていること、
を特徴とする請求項1から請求項3のうちのいずれか1項記載の画像読取装置。
An image rotation unit;
When the primary determination unit determines that the document image is upside down, a message indicating that the document image is upside down is displayed on a predetermined display device;
The image rotation unit reverses the document image when a predetermined user operation on a predetermined input device is detected,
The display device and the input device are installed in the image reading device or a terminal device communicating with the image reading device;
The image reading apparatus according to claim 1, wherein the image reading apparatus is an image reading apparatus.
前記メッセージは、天地逆であると判定された前記原稿画像のサムネイル画像を含み、
前記ユーザー操作は、前記サムネイル画像の押下であること、
を特徴とする請求項5記載の画像読取装置。
The message includes a thumbnail image of the document image determined to be upside down,
The user operation is pressing the thumbnail image;
The image reading apparatus according to claim 5.
前記画像取得部は、前記1次判定部により天地逆であると判定された前記原稿画像に対する後続ページがあるときには、前記ユーザー操作の検出を待たずに、前記後続ページの原稿画像の画像データの取得を開始し、
前記1次判定部は、前記画像取得部により画像データが取得された前記後続ページの各ラインにおいて、前記前半部分における画素値と前記後半部分における画素値とをカウントすること、
を特徴とする請求項5記載の画像読取装置。
When there is a subsequent page for the document image determined to be upside down by the primary determination unit, the image acquisition unit does not wait for the detection of the user operation and does not wait for the detection of the user image of the subsequent page. Start getting,
The primary determination unit counts the pixel value in the first half part and the pixel value in the second half part in each line of the subsequent page from which image data has been acquired by the image acquisition unit;
The image reading apparatus according to claim 5.
前記原稿画像は、コピージョブまたはスキャントゥセンドジョブにおいて読み取られた原稿画像であることを特徴とする請求項1から請求項7のうちのいずれか1項記載の画像読取装置。   8. The image reading apparatus according to claim 1, wherein the original image is an original image read in a copy job or a scan-to-send job.
JP2015231048A 2015-11-26 2015-11-26 Image reading device Expired - Fee Related JP6365894B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015231048A JP6365894B2 (en) 2015-11-26 2015-11-26 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015231048A JP6365894B2 (en) 2015-11-26 2015-11-26 Image reading device

Publications (2)

Publication Number Publication Date
JP2017098848A JP2017098848A (en) 2017-06-01
JP6365894B2 true JP6365894B2 (en) 2018-08-01

Family

ID=58804868

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015231048A Expired - Fee Related JP6365894B2 (en) 2015-11-26 2015-11-26 Image reading device

Country Status (1)

Country Link
JP (1) JP6365894B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6773844B1 (en) * 2019-06-12 2020-10-21 株式会社ポニーキャニオン Information processing terminal and information processing method
JPWO2021020377A1 (en) 2019-07-29 2021-02-04

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011010033A (en) * 2009-06-25 2011-01-13 Sharp Corp Image processing apparatus, image forming apparatus, image processing method, computer program and recording medium

Also Published As

Publication number Publication date
JP2017098848A (en) 2017-06-01

Similar Documents

Publication Publication Date Title
CN105320933B (en) Electronic document generating system and electronic document generation device
US9723177B2 (en) Image processing system, image processing apparatus, and image forming apparatus
JP2014030081A (en) Image processing apparatus and image processing method
JP6365894B2 (en) Image reading device
US9654661B1 (en) Image scanning device and method, image reading apparatus, and non-transitory computer readable medium that set a scanning area based on a detected location of a code image
US9858513B2 (en) Document file output apparatus, document file output method, and computer readable medium
JP6592830B2 (en) Image forming apparatus
JP2016184914A (en) Image processing apparatus
EP3648107A1 (en) Image processing apparatus
JP2017068023A (en) Image forming apparatus
JP2022128307A (en) Image forming system, image forming apparatus, and driver program
US20160072966A1 (en) Non-transitory computer readable medium and image processing device
JP5667135B2 (en) Image forming apparatus
US10063728B2 (en) Information processing apparatus, image reading apparatus, information processing method, and non-transitory computer readable medium
JP2009124331A (en) Original image collecting device, and original image collecting method
JP2019220906A (en) Image processing system, print instruction device, image processing device, and program
US8896852B2 (en) Document creating apparatus, output apparatus, printed material, document output system, and non-transitory computer readable medium
US20240040055A1 (en) Image forming apparatus, non-transitory computer readable medium, and image forming method
US20240094963A1 (en) Image processing apparatus, image processing system, non-transitory computer readable medium storing image processing program, and image processing method
JP6270060B2 (en) Image processing device
JP2020066145A (en) Image formation apparatus and image formation method
JP6547658B2 (en) Image processing apparatus, image processing method
JP6443752B2 (en) Image forming apparatus, image forming method, and printer driver
JP2021132340A (en) Image forming apparatus
JP2014011573A (en) Image reading device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170824

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180412

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180517

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180620

R150 Certificate of patent or registration of utility model

Ref document number: 6365894

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees