JP6677209B2 - Image processing apparatus, processing method, and program - Google Patents

Image processing apparatus, processing method, and program Download PDF

Info

Publication number
JP6677209B2
JP6677209B2 JP2017071793A JP2017071793A JP6677209B2 JP 6677209 B2 JP6677209 B2 JP 6677209B2 JP 2017071793 A JP2017071793 A JP 2017071793A JP 2017071793 A JP2017071793 A JP 2017071793A JP 6677209 B2 JP6677209 B2 JP 6677209B2
Authority
JP
Japan
Prior art keywords
image
shadow
pixel
brightness
luminance
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
JP2017071793A
Other languages
Japanese (ja)
Other versions
JP2018173839A (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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2017071793A priority Critical patent/JP6677209B2/en
Publication of JP2018173839A publication Critical patent/JP2018173839A/en
Application granted granted Critical
Publication of JP6677209B2 publication Critical patent/JP6677209B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Studio Devices (AREA)

Description

本発明は、画像処理装置、処理方法、プログラムに関する。   The present invention relates to an image processing device, a processing method, and a program.

台座と、台座の読取領域に置かれた用紙などの読取対象物を撮影する撮影部とを有する画像入力装置が存在する。このような画像入力装置は画像データを出力する。画像処理装置は画像データを入力し、読取対象物を撮影して得られた画像に映る影を除去する技術が用いられている。なお関連する技術が特許文献1に開示されている。   2. Description of the Related Art There is an image input device including a pedestal and an image capturing unit that captures an object to be read such as a sheet placed in a reading area of the pedestal. Such an image input device outputs image data. 2. Description of the Related Art A technology for inputting image data and removing a shadow appearing in an image obtained by photographing an object to be read is used for an image processing apparatus. A related technique is disclosed in Patent Document 1.

特開2016−144093号公報JP-A-2006-140993

上述のような画像入力装置においては、予期しない影を画像から除去する技術が求められていた。   In the image input device as described above, a technique for removing an unexpected shadow from an image has been required.

そこでこの発明は、上述の課題を解決する画像処理装置、処理方法、プログラムを提供することを目的としている。   Therefore, an object of the present invention is to provide an image processing device, a processing method, and a program that solve the above-described problems.

本発明の第1の態様によれば、台座と台座領域に置かれた読取対象物とを撮影する撮影部とを有する画像入力装置の出力した画像データを処理する画像処理装置であって、前記撮影部との相対位置をずらして置かれた読取対象物を撮影してそれら複数回の撮影それぞれで生成した各画像の輝度値の比較に基づいて輝度値の差が所定閾値以上の箇所を影領域と判定する影領域判定部と、前記影領域における画素の輝度値に基づいて当該輝度値に乗じる輝度補正係数を保持した輝度補正テーブルを生成する輝度補正テーブル生成部と、前記撮影により生成された画像の影領域の各画素に前記輝度補正テーブルに記録されている対応する画素についての輝度補正係数を乗じる影削減処理部と、を備えることを特徴とする。 According to a first aspect of the present invention, there is provided an image processing apparatus for processing image data output from an image input device having a pedestal and a photographing unit for photographing an object to be read placed on the pedestal region, Based on a comparison of the luminance values of the images generated in each of the plurality of photographing operations, a portion where the difference in the luminance value is equal to or greater than a predetermined threshold is shaded based on a photograph of the object to be read placed at a position shifted from the photographing unit. A shadow area determination unit that determines an area, a brightness correction table generation unit that generates a brightness correction table holding a brightness correction coefficient by which the brightness value is multiplied based on the brightness value of the pixel in the shadow area , and shadow reduction processor for multiplying the luminance correction coefficient for the corresponding pixel is recorded on the luminance correction table to each pixel in the shadow region of the image, characterized in that it comprises a.

本発明の第2の態様によれば、台座と台座領域に置かれた読取対象物とを撮影する撮影部とを有する画像入力装置の出力した画像データを処理する画像処理装置の処理方法であって、前記撮影部との相対位置をずらして置かれた読取対象物を撮影してそれら複数回の撮影それぞれで生成した各画像の輝度値の比較に基づいて輝度値の差が所定閾値以上の箇所を影領域と判定し、前記影領域における画素の輝度値に基づいて当該輝度値に乗じる輝度補正係数を保持した輝度補正テーブルを生成し、前記撮影により生成された画像の影領域の各画素に前記輝度補正テーブルに記録されている対応する画素についての輝度補正係数を乗じることを特徴とする。 According to a second aspect of the present invention, there is provided a processing method of an image processing apparatus for processing image data output from an image input device having a pedestal and a photographing unit for photographing an object to be read placed in the pedestal region. The difference between the luminance values is equal to or greater than a predetermined threshold value based on a comparison of the luminance values of the images generated in each of the plurality of photographings by photographing the reading target placed at a position shifted from the relative position with respect to the photographing unit. Determining the location as a shadow area , generating a brightness correction table holding a brightness correction coefficient for multiplying the brightness value based on the brightness value of the pixel in the shadow area, and generating a brightness correction table for each pixel in the shadow area of the image generated by the shooting; characterized in that said multiplying the luminance correction coefficient for the corresponding pixel is recorded in the brightness correction table.

本発明の第3の態様によれば、プログラムは、台座と台座領域に置かれた読取対象物とを撮影する撮影部とを有する画像入力装置の出力した画像データを処理する画像処理装置のコンピュータを、前記撮影部との相対位置をずらして置かれた読取対象物を撮影してそれら複数回の撮影それぞれで生成した各画像の輝度値の比較に基づいて輝度値の差が所定閾値以上の箇所を影領域と判定する影領域判定手段、前記影領域における画素の輝度値に基づいて当該輝度値に乗じる輝度補正係数を保持した輝度補正テーブルを生成する輝度補正テーブル生成手段、前記撮影により生成された画像の影領域の各画素に前記輝度補正テーブルに記録されている対応する画素についての輝度補正係数を乗じる影削減処理手段、として機能させることを特徴とする。 According to a third aspect of the present invention, a program is a computer for an image processing apparatus that processes image data output from an image input device that has a pedestal and an imaging unit that captures an object to be read placed on the pedestal region. The difference between the brightness values is equal to or greater than a predetermined threshold based on the comparison of the brightness values of the images generated by each of the plurality of shootings by shooting a reading target placed with the relative position shifted from the shooting unit. A shadow area determining means for determining a location as a shadow area; a brightness correction table generating means for generating a brightness correction table holding a brightness correction coefficient for multiplying the brightness value based on the brightness value of the pixel in the shadow area; and characterized in that the shadow reduction processing unit functions as, for multiplying the luminance correction coefficient for the corresponding pixel is recorded on the luminance correction table to each pixel in the shadow region of the image That.

本発明によれば、読取装置において用紙を撮影して生成した画像に映る影の有無をより精度よく検出し、これをより精度良く除去することができる。   ADVANTAGE OF THE INVENTION According to this invention, the presence or absence of the shadow reflected in the image produced | generated by image | photographing the paper in the reader can be detected more accurately, and this can be removed more accurately.

画像入力装置と画像処理装置と含む画像処理システムの概略図である。1 is a schematic diagram of an image processing system including an image input device and an image processing device. 読取対象物である用紙に映る影を示す第一の図である。FIG. 3 is a first diagram illustrating a shadow reflected on a sheet as a reading target object. 読取対象物である用紙に映る影を示す第二の図である。FIG. 8 is a second diagram illustrating a shadow reflected on a sheet as a reading target object. 第一画像データの中の用紙の範囲の画像と第二画像データの中の用紙の範囲の画像とを示す図である。FIG. 4 is a diagram illustrating an image of a range of a sheet in first image data and an image of a range of a sheet in second image data. 画像処理装置のハードウェア構成例を示す図である。FIG. 3 is a diagram illustrating an example of a hardware configuration of an image processing apparatus. 第一の実施形態による画像処理装置の機能ブロック図である。FIG. 2 is a functional block diagram of the image processing apparatus according to the first embodiment. 第一の実施形態による画像処理装置の処理フローを示す図である。FIG. 3 is a diagram illustrating a processing flow of the image processing apparatus according to the first embodiment. 第二の実施形態による画像処理装置の機能ブロック図である。It is a functional block diagram of an image processing device by a second embodiment. 第三の実施形態による画像処理装置の機能ブロック図である。It is a functional block diagram of an image processing device by a third embodiment. 撮影部との相対位置をずらして用紙が台座に置かれた異なる状態を一つの図に重ねて表した図である。FIG. 11 is a diagram illustrating different states in which a sheet is placed on a pedestal while being shifted relative to a photographing unit, in a single figure. 画像処理装置の最小構成を示す図である。FIG. 2 is a diagram illustrating a minimum configuration of the image processing apparatus.

<第一の実施形態>
以下、本発明の第一の実施形態による画像処理装置を図面を参照して説明する。
図1は同実施形態による画像入力装置と画像処理装置とを含む画像処理システムの概略図である。
この図で示すように画像処理システム100は画像処理装置1と画像入力装置2とを備えている。画像入力装置2は、台座21と、台座21の読取領域を示す台座領域に置かれた用紙を撮影する撮影部22と、台座21の上方に撮影部22を支持するアーム部23と、アーム部23を支えるベース部24とを備える。台座21には一例として用紙3が置かれる。台座21に置かれる読取対象物は用紙以外の物体であってよい。画像処理装置1は読取対象物を光学的に読み取って生成した画像データを画像処理装置1へ出力する。画像データは台座領域全体の画像データである。画像処理装置1は台座領域全体の画像データの中からエッジ検出などの技術により用紙3の領域を検出する。画像処理装置1は画像データが示す台座領域全体の台座画像における左上角を原点とする台座座標系と、台座画像に含まれる用紙画像における左上角を原点とする用紙座標系とを認識し、各座標において対応する画素の関係を記憶する。
<First embodiment>
Hereinafter, an image processing apparatus according to a first embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a schematic diagram of an image processing system including an image input device and an image processing device according to the embodiment.
As shown in this figure, the image processing system 100 includes an image processing device 1 and an image input device 2. The image input device 2 includes a pedestal 21, a photographing unit 22 that photographs a sheet placed in a pedestal region indicating a reading region of the pedestal 21, an arm unit 23 that supports the photographing unit 22 above the pedestal 21, and an arm unit. And a base 24 supporting the base 23. The sheet 3 is placed on the pedestal 21 as an example. The object to be read placed on the pedestal 21 may be an object other than paper. The image processing apparatus 1 outputs image data generated by optically reading the object to be read to the image processing apparatus 1. The image data is image data of the entire pedestal region. The image processing apparatus 1 detects the area of the sheet 3 from the image data of the entire pedestal area by a technique such as edge detection. The image processing apparatus 1 recognizes a pedestal coordinate system whose origin is the upper left corner in the pedestal image of the entire pedestal region indicated by the image data, and a paper coordinate system whose origin is the upper left corner in the paper image included in the pedestal image. The relationship between the corresponding pixels in the coordinates is stored.

画像処理装置1は画像入力装置2と通信ケーブルを介して接続されている。画像処理装置1は画像データを取得し、その画像データが示す用紙画像から影の有無を検出し、これを除去する処理を行う。   The image processing device 1 is connected to the image input device 2 via a communication cable. The image processing apparatus 1 acquires image data, detects the presence or absence of a shadow from a paper image indicated by the image data, and performs processing for removing the shadow.

読取対象物が置かれる台座21には予期せぬ影が入り込む可能性が有る。
台座領域内の予め決まった位置に影が入り込みその影が固定されているのであれば、その決まった位置に対応する画素の輝度値を調整するための当該各画素に対応した輝度補正係数を輝度補正テーブルに記録しておけばよい。しかし、例えば予期せず画像入力装置2の脇に置かれた什器4などの影が入り込む場合がある。この影響で画像処理装置1が取得した画像データの示す用紙画像には什器4の影が映っている場合がある。画像処理装置1においては用紙画像に予期せず映り込んだ影の有無を精度よく検出し、これを精度よく除去することが望ましい。予期せずに什器4が取り除かれることで影がなくなる場合、つまり、什器4の影が映り込む領域において予期せず明るさが増す場合も同様に考えることができる。
There is a possibility that an unexpected shadow may enter the pedestal 21 on which the object to be read is placed.
If the shadow enters a predetermined position in the pedestal region and the shadow is fixed, the luminance correction coefficient corresponding to each pixel for adjusting the luminance value of the pixel corresponding to the predetermined position is determined by the luminance. What is necessary is just to record on a correction table. However, for example, a shadow of the furniture 4 placed beside the image input device 2 may enter unexpectedly. Due to this influence, the shadow of the furniture 4 may be reflected on the paper image indicated by the image data acquired by the image processing apparatus 1. In the image processing apparatus 1, it is desirable to accurately detect the presence or absence of a shadow unexpectedly reflected in a sheet image, and to remove this accurately. A case where shadows disappear due to unexpected removal of the furniture 4, that is, a case where brightness is unexpectedly increased in a region where the shadow of the furniture 4 is reflected can be similarly considered.

図2は読取対象物である用紙に映る影を示す第一の図である。
図2で示すように、台座21に置かれた用紙3には予期せぬ影が入り込む可能性が有る。画像入力装置2は図2で示す用紙3を撮影して生成した第一画像データを画像処理装置1へ出力する。または通常は図2で示すように、台座21に置かれた用紙3には影が入り込んでいたが、影を及ぶ対象物が予期せず取り除かれることにより影が入り込まなくなる可能性もある。
FIG. 2 is a first diagram showing a shadow reflected on a sheet to be read.
As shown in FIG. 2, an unexpected shadow may enter the sheet 3 placed on the pedestal 21. The image input device 2 outputs first image data generated by photographing the sheet 3 shown in FIG. Alternatively, as shown in FIG. 2, as shown in FIG. 2, the sheet 3 placed on the pedestal 21 usually has a shadow. However, there is a possibility that the shadow does not enter when an object that covers the shadow is unexpectedly removed.

以下、予期せず影が映り込んだ場合の例を用いて本実施形態の画像処理装置を説明する。
図3は読取対象物である用紙に映る影を示す第二の図である。
図3では台座21における用紙3の置かれた位置がずれた状態を示している。用紙3はユーザが位置をずらしてもよい。または台座21自体が摺動機構を備えておりその摺動機構によって台座21自体の位置が水平方向に移動することにより撮影部22との相対位置をずらして用紙3が台座21に置かれた状態とされるようにしてもよい。そうすると、影の位置は動かないが、用紙3に対して入り込んだ影の入り込み位置が図2で示す用紙3への影の入り込み位置とは異なることとなる。画像入力装置2は図3で示すような、置かれた位置がずらされた用紙3を撮影して生成した第二画像データを画像処理装置1へ出力する。
Hereinafter, the image processing apparatus according to the present embodiment will be described using an example in which a shadow is unexpectedly reflected.
FIG. 3 is a second diagram illustrating a shadow reflected on a sheet to be read.
FIG. 3 shows a state where the position of the sheet 3 on the pedestal 21 is shifted. The user may shift the position of the sheet 3. Alternatively, the pedestal 21 itself has a sliding mechanism, and the position of the pedestal 21 itself is moved in the horizontal direction by the sliding mechanism, so that the relative position with respect to the photographing unit 22 is shifted, and the sheet 3 is placed on the pedestal 21. May be set. Then, the position of the shadow does not move, but the position at which the shadow enters the sheet 3 differs from the position at which the shadow enters the sheet 3 shown in FIG. The image input device 2 outputs to the image processing device 1 second image data generated by photographing the sheet 3 whose position is shifted as shown in FIG.

図4は第一画像データの中の用紙の範囲の画像と第二画像データの中の用紙の範囲の画像とを示す図である。
ここでは、第一画像データの中の用紙3の範囲の画像と第二画像データの中の用紙3の範囲の画像をそれぞれ、第一用紙画像31、第二用紙画像32と呼ぶ。これらは台座領域全体の画像データから切り出されたものであり、場合によってはスキュー補正(歪み補正)等を行う。このスキュー補正は公知の技術を用いて良い。
画像処理装置1は第一画像データが示す第一用紙画像31と第二画像データが示す第二用紙画像32とを比較して、第一用紙画像31において第二用紙画像32との輝度値の差が所定閾値以上の箇所(輝度値の差が大きい箇所)を影領域候補と判定する。または画像処理装置1は第一画像データが示す第一用紙画像31と第二画像データが示す第二用紙画像32とを比較して、第二用紙画像32において第一用紙画像31との輝度値の差が所定閾値以上の箇所(輝度値の差が大きい箇所)を影領域候補と判定する。
第一用紙画像31と第二用紙画像32とでは影が映る位置が異なる。したがって、画像処理装置1は第一用紙画像31と第二用紙画像32の各対応する画素の輝度値を比較する。
FIG. 4 is a diagram showing an image of a paper range in the first image data and an image of a paper range in the second image data.
Here, the image in the range of the paper 3 in the first image data and the image in the range of the paper 3 in the second image data are referred to as a first paper image 31 and a second paper image 32, respectively. These are cut out from the image data of the entire pedestal region, and perform skew correction (distortion correction) and the like in some cases. This skew correction may use a known technique.
The image processing apparatus 1 compares the first paper image 31 indicated by the first image data with the second paper image 32 indicated by the second image data, and determines the brightness value of the first paper image 31 with the second paper image 32. A location where the difference is equal to or greater than a predetermined threshold (a location where the difference in luminance value is large) is determined as a shadow area candidate. Alternatively, the image processing apparatus 1 compares the first sheet image 31 indicated by the first image data with the second sheet image 32 indicated by the second image data, and determines the brightness value of the second sheet image 32 with the first sheet image 31. Is determined as a shadow area candidate.
The position where the shadow appears is different between the first paper image 31 and the second paper image 32. Therefore, the image processing apparatus 1 compares the luminance values of the corresponding pixels of the first paper image 31 and the second paper image 32.

より具体的には、画像処理装置1は第一用紙画像31において第二用紙画像32の画素の輝度値よりも、輝度値の値が所定の値以上、上がっている領域41−1や、下がっている領域41−2を影領域候補と判定する。
また同様に画像処理装置1は第二用紙画像32において第一用紙画像31の画素の輝度値よりも、輝度値の値が所定の値以上、上がっている領域42−1や下がっている領域42−2を影領域候補と判定する。
More specifically, the image processing apparatus 1 determines that the brightness value of the pixel of the second paper image 32 in the first paper image 31 is higher than or equal to the predetermined value by more than a predetermined value. Area 41-2 is determined as a shadow area candidate.
Similarly, in the second paper image 32, the image processing apparatus 1 increases the brightness value of the pixel of the first paper image 31 by more than a predetermined value and increases the brightness of the area 42-1 and the brightness of the area 42-1. -2 is determined as a shadow region candidate.

画像処理装置1は第一用紙画像31における影領域候補41の形状や位置や台座領域における位置と、第二用紙画像32における影領域候補42の形状や位置や台座領域における位置とを比較して、一致すると判定した場合に、第一用紙画像31や第二用紙画像32における影領域候補を予期せず入り込んだ影領域と特定するようにしてもよい。   The image processing apparatus 1 compares the shape, position, and position in the pedestal region of the shadow region candidate 41 in the first paper image 31 with the shape, position, and position in the pedestal region of the shadow region candidate 42 in the second paper image 32. Alternatively, if it is determined that they match, the shadow area candidate in the first paper image 31 or the second paper image 32 may be specified as a shadow area that unexpectedly enters.

図5は画像処理装置のハードウェア構成例を示す図である。
図5に示すように画像処理装置1は、CPU(Central Processing Unit)101、ROM(Read Only Memory)102、RAM(Random Access Memory)103、HDD(Hard Disk Drive)104、ユーザインタフェース105、通信モジュール106の各ハードウェア構成を、一例として備える。ユーザインタフェース105は例えば液晶タッチパネルやボタンなどである。画像処理装置1はその他のハードウェアをさらに備えて構成されてよい。
FIG. 5 is a diagram illustrating an example of a hardware configuration of the image processing apparatus.
As shown in FIG. 5, the image processing apparatus 1 includes a CPU (Central Processing Unit) 101, a ROM (Read Only Memory) 102, a RAM (Random Access Memory) 103, a HDD (Hard Disk Drive) 104, a user interface 105, a communication module Each hardware configuration of 106 is provided as an example. The user interface 105 is, for example, a liquid crystal touch panel or a button. The image processing apparatus 1 may be configured to further include other hardware.

図6は第一の実施形態による画像処理装置の機能ブロック図である。
画像処理装置1のCPU101は予め記憶する画像処理プログラムを起動する。これにより画像処理装置1には制御部111、影領域判定部112、輝度補正テーブル生成部113、影削減処理部114の機能が備わる。
制御部111は他の機能部を制御する。
影領域判定部112は、撮影部22との相対位置をずらして置かれた読取対象物を撮影してそれら複数回の撮影それぞれで生成した各画像の輝度値の比較に基づいて輝度値の差が所定閾値以上の箇所を影領域候補と判定する。影領域判定部112は影領域候補の中から影領域を特定する。
FIG. 6 is a functional block diagram of the image processing apparatus according to the first embodiment.
The CPU 101 of the image processing apparatus 1 starts an image processing program stored in advance. Thus, the image processing apparatus 1 has the functions of the control unit 111, the shadow area determination unit 112, the brightness correction table generation unit 113, and the shadow reduction processing unit 114.
The control unit 111 controls other function units.
The shadow area determination unit 112 captures an object to be read placed at a position shifted from the image capturing unit 22 and calculates a difference between the brightness values based on a comparison of the brightness values of the images generated in each of the multiple times of capturing. Are determined as shadow region candidates. The shadow area determination unit 112 specifies a shadow area from among shadow area candidates.

輝度補正テーブル生成部113は、影領域における画素の輝度値に基づいて当該輝度値に乗じる輝度補正係数を生成する。具体的には、輝度補正テーブル生成部113は、影領域の各画素の輝度値に乗じて影を削減する輝度補正係数を、複数回の撮影の何れかの特定の撮影における画像の影領域の画素それぞれについて保持した輝度補正テーブルを生成する。輝度補正係数は、簡単に説明すると、一例としてはある用紙画像において影領域と判定された画素の輝度値がX、台座座標系において位置がずらされた他の用紙画像において前述の輝度値Xの画素に対応する用紙座標系内の同じ位置の影領域とならなかった画素の輝度値をYとすると、Y÷Xで示される値となる。この輝度補正係数は台座座標系の各画素に対して割り当てられる値であり、初期値は1となる。影領域と判定された場合、この初期値がY÷Xなどの輝度補正係数に書き換えられる。影領域と判定された画素の輝度値Xに、Y÷Xで示される輝度補正係数を乗じることにより、影領域と判定された画素の輝度値はX×(Y÷X)=Yとなり、影の影響を受けているXと影の影響を受けていないYの値を基準値とした影補正係数を乗じることで、影の影響を削減できる。別の機会に撮影した画像の画素値X’についても、同様にX’×(Y÷X)とすることで、影の影響を削減することができる。なお、輝度補正テーブルの更新の際は、更新前の輝度補正係数の値に、上述のY÷Xの値を乗じることで、更新後の輝度補正係数とする。
影削減処理部114は、特定の撮影により生成された画像の影領域の各画素に、輝度補正テーブルに記録されている対応する画素についての輝度補正係数を乗じる。
The luminance correction table generation unit 113 generates a luminance correction coefficient for multiplying the luminance value based on the luminance value of the pixel in the shadow area. Specifically, the brightness correction table generating unit 113 calculates a brightness correction coefficient for multiplying the brightness value of each pixel in the shadow area to reduce the shadow by using the brightness correction coefficient of the image in the specific shooting in any of the multiple shootings. A luminance correction table held for each pixel is generated. To briefly explain, the brightness correction coefficient is, for example, such that the brightness value of a pixel determined to be a shadow area in a certain sheet image is X, and the brightness value of the above-described brightness value X in another sheet image whose position is shifted in the pedestal coordinate system. Assuming that the luminance value of a pixel that is not a shadow area at the same position in the paper coordinate system corresponding to the pixel is Y, the luminance value is represented by Y ÷ X. This luminance correction coefficient is a value assigned to each pixel in the pedestal coordinate system, and its initial value is 1. If it is determined that the area is a shadow area, the initial value is rewritten to a luminance correction coefficient such as Y ÷ X. By multiplying the luminance value X of the pixel determined as the shadow area by a luminance correction coefficient represented by Y ÷ X, the luminance value of the pixel determined as the shadow area becomes X × (Y ÷ X) = Y, and Is multiplied by a shadow correction coefficient using the value of X affected by the image and the value of Y not affected by the shadow as a reference value, the effect of the shadow can be reduced. By similarly setting the pixel value X ′ of the image captured at another occasion to X ′ × (Y ÷ X), the influence of the shadow can be reduced. When updating the luminance correction table, the value of the luminance correction coefficient before the update is multiplied by the above-described value of Y ÷ X to obtain the luminance correction coefficient after the update.
The shadow reduction processing unit 114 multiplies each pixel in the shadow area of the image generated by the specific shooting by a luminance correction coefficient for the corresponding pixel recorded in the luminance correction table.

図7は第一の実施形態による画像処理装置の処理フローを示す図である。
次に画像処理装置の処理フローについて順を追って説明する。
画像処理装置1は第一画像データを取得する(ステップS101)。また画像処理装置1は第二画像データを取得する(ステップS102)。第一画像データと第二画像データは、撮影部22との相対位置をずらして台座21に置かれた用紙を撮影した各画像データである。影領域判定部112は第一画像データから第一用紙画像31を抽出する。また影領域判定部112は第二画像データから第二用紙画像32を抽出する。
FIG. 7 is a diagram illustrating a processing flow of the image processing apparatus according to the first embodiment.
Next, the processing flow of the image processing apparatus will be described step by step.
The image processing apparatus 1 acquires the first image data (Step S101). Further, the image processing apparatus 1 acquires the second image data (Step S102). The first image data and the second image data are image data obtained by photographing a sheet placed on the pedestal 21 while shifting the relative position with respect to the photographing unit 22. The shadow area determination unit 112 extracts the first paper image 31 from the first image data. Further, the shadow area determination unit 112 extracts the second paper image 32 from the second image data.

影領域判定部112は、第一用紙画像31の画素と、その画素に対応する位置の第二用紙画像32の画素とを順に比較して輝度差が所定の値以上ある画素であって、輝度差が影の影響を受けているとされるべき所定の値以上の画素を、第一用紙画像31において影領域候補41−1、41−2と特定する(ステップS103)。影領域判定部112は、第一用紙画像31の画素と、その画素に対応する位置の第二用紙画像32の画素とを順に比較して輝度差が所定の値以上ある画素であって、輝度差が影の影響を受けているとされるべき所定の値以上の画素を、第二用紙画像32において影領域候補42−1、42−2と特定する(ステップS104)。   The shadow area determination unit 112 compares the pixel of the first paper image 31 and the pixel of the second paper image 32 at the position corresponding to the pixel in order, and determines a pixel having a luminance difference of a predetermined value or more. Pixels having a difference equal to or more than a predetermined value that is considered to be affected by the shadow are identified as shadow region candidates 41-1 and 41-2 in the first paper image 31 (step S103). The shadow area determination unit 112 compares the pixel of the first paper image 31 and the pixel of the second paper image 32 at the position corresponding to the pixel in order, and determines a pixel having a luminance difference of a predetermined value or more. Pixels having a difference equal to or greater than a predetermined value that should be affected by the shadow are identified as shadow area candidates 42-1 and 42-2 in the second paper image 32 (step S104).

影領域判定部112は第一用紙画像31において特定した撮影領域候補41−1、41−2と、第二用紙画像32において特定した影領域候補42−1、42−2のうち影領域候補から除外すべき領域を特定して、影領域候補から除外する処理を行うようにしてもよい。例えば影領域候補41−1、41−2の形状と影領域候補42−1、42−2の形状とを比較して一致しない場合には、その一致しない領域を影領域候補から除外してもよい。あるいは、異なる撮影によって得られた台座座標系全体の複数の画像データにおいてそれぞれ特定した影領域候補を比較して、上述のように当該影領域候補が示す領域の形状や位置が一致しない部分は影領域候補から除外してもよい。   The shadow area determination unit 112 determines the imaging area candidates 41-1 and 41-2 specified in the first paper image 31 and the shadow area candidates 42-1 and 42-2 specified in the second paper image 32 from the shadow area candidates. A process to specify a region to be excluded and to exclude the region from the shadow region candidate may be performed. For example, if the shapes of the shadow region candidates 41-1 and 41-2 do not match the shapes of the shadow region candidates 42-1 and 42-2, even if the regions that do not match are excluded from the shadow region candidates. Good. Alternatively, by comparing the identified shadow region candidates in a plurality of pieces of image data of the entire pedestal coordinate system obtained by different photographing, a portion where the shape or position of the region indicated by the shadow region candidate does not match as described above is determined. It may be excluded from the region candidates.

影領域候補が特定されると影領域判定部112は上述の影領域候補の判定処理によって最後に残った影領域候補の中から影領域を特定する(ステップS105)。影領域判定部112は第一用紙画像31または第二用紙画像32の何れか一方の用紙画像を基準として、その用紙画像における影領域候補の中から影領域を特定する。   When the shadow region candidate is specified, the shadow region determination unit 112 specifies a shadow region from among the shadow region candidates that have been left last by the above-described shadow region candidate determination process (step S105). The shadow area determination unit 112 specifies a shadow area from among shadow area candidates in the paper image based on one of the first paper image 31 and the second paper image 32.

なお影領域候補の中から影領域を特定する処理の具体例としては、画像処理装置1が台座座標系の各画素についての影判定フラグの数を記憶するデータテーブルを保持しておく。そして影領域判定部112は、影領域候補41−1と特定された画素の用紙座標系に対応する台座座標系の画素を特定し、その画素に対して影判定フラグを1つ投票してデータテーブルに記録する。同様に影領域判定部112は、影領域候補41−2、影領域候補42−2、影領域候補42−1と特定された各画素の用紙座標系に対応する台座座標系の画素を特定しその画素に影判定フラグをそれぞれ1つずつ投票してデータテーブルに記録されている各画素についての影判定フラグを1ずつ加えていく。影領域判定部112は、台座座標系の各画素について投票した影判定フラグの数が、上述の影領域候補の判定処理で利用した用紙画像(第一用紙画像31、第二用紙画像32)の数(本実施形態においては影判定フラグ=2)となっている台座座標系の各画素を、影領域に対応する画素と特定する。また台座座標系の各画素における影領域を構成する画素が特定できれば、その画素に対応する用紙座標系の各画素における影領域を構成する画素も特定できる。なお、影領域に対応する画素と特定する際の評価条件となる影判定フラグ数を、上記のような利用した用紙画像の数と等しい数とする他に、利用した用紙画像の数以上としてもよいし、利用した用紙画像の数未満の任意の値以上としてもよい。また、本処理の後に、更新済みの影補正テーブルを撮影済みの画像データへ適用した上で、同画像データを用いて上記の処理を繰り返し行っても良い。その場合、評価条件となる影判定フラグの数を、最初は任意の値に設定しおき、繰り返しの上記処理が進むにつれて画像の数と一致、もしくは任意の値と一致するように評価条件のしきい値を増加させてもよい。   As a specific example of the process of specifying a shadow area from among shadow area candidates, the image processing apparatus 1 holds a data table that stores the number of shadow determination flags for each pixel in the pedestal coordinate system. Then, the shadow area determination unit 112 specifies a pixel in the pedestal coordinate system corresponding to the paper coordinate system of the pixel specified as the shadow area candidate 41-1, and casts one shadow determination flag for the pixel. Record on the table. Similarly, the shadow area determination unit 112 specifies a pixel in the pedestal coordinate system corresponding to the paper coordinate system of each pixel specified as the shadow area candidate 41-2, the shadow area candidate 42-2, and the shadow area candidate 42-1. One shadow determination flag is voted for each pixel, and one shadow determination flag for each pixel recorded in the data table is added. The shadow area determination unit 112 determines whether the number of shadow determination flags voted for each pixel in the pedestal coordinate system is based on the paper images (first paper image 31 and second paper image 32) used in the above-described shadow area candidate determination processing. Each pixel of the pedestal coordinate system having the number (in the present embodiment, the shadow determination flag = 2) is specified as a pixel corresponding to the shadow area. In addition, if a pixel forming a shadow area in each pixel in the pedestal coordinate system can be specified, a pixel forming a shadow area in each pixel in the paper coordinate system corresponding to the pixel can also be specified. The number of shadow determination flags, which is an evaluation condition when specifying a pixel corresponding to a shadow area, is not limited to the number equal to the number of used paper images as described above. Alternatively, the value may be any value less than the number of used paper images. After this processing, the updated shadow correction table may be applied to captured image data, and the above processing may be repeatedly performed using the image data. In this case, the number of shadow determination flags serving as evaluation conditions is set to an arbitrary value at first, and the evaluation conditions are set so as to match the number of images or to match an arbitrary value as the above-described repeated processing proceeds. The threshold may be increased.

画像処理装置1の制御部111は影領域判定部112が影領域を特定した場合にはアラームをユーザへ出力するようにしてもよい。アラームは例えば、音、文字表示などによって行って良い。   The control unit 111 of the image processing apparatus 1 may output an alarm to the user when the shadow area determination unit 112 specifies the shadow area. The alarm may be given by, for example, a sound or a character display.

輝度補正テーブル生成部113は台座座標系において影領域に含まれる各画素の輝度値に乗じる輝度補正係数を算出する。輝度補正テーブル生成部113は、一例としては、ある用紙画像において台座座標系の影領域に含まれる画素の輝度値がx、台座座標系において位置がずらされた他の用紙画像において前述の輝度値Xの画素に対応する用紙座標系内の同じ位置の影領域とならなかった画素の輝度値がyであるとすると、y÷xの値を示す輝度補正係数を算出する。輝度補正テーブル生成部113は台座座標系の画素の識別番号と輝度補正係数との対応関係を示す輝度補正テーブルを生成する(ステップS106)。上述の処理においては、影領域判定部112は、各用紙画像の比較に基づいて対応する画素の輝度値の差が所定閾値以上の箇所を影領域候補と判定し、台座座標系における画素に対して影領域候補と判定した用紙画像の数が所定値以上である場合の台座座標系における画素を影領域と判定している。そして、輝度補正テーブル生成部113は、ずらして台座21に置かれた各画像から得た各用紙画像のうち一方の用紙画像において読取対象物内の影領域と判定された第一画素(例えば図4の影領域41−2の右下角の画素)の輝度値を、他方の用紙画像において読取対象物内の影領域と判定されなかった対応する第二画素(第一画素に対応する位置の画素で、例えば図4の影領域42−1の右下角の画素)の輝度値に変換する輝度補正係数を、影領域の各画素全てについて保持する輝度補正テーブルを生成している。   The luminance correction table generation unit 113 calculates a luminance correction coefficient by which the luminance value of each pixel included in the shadow area in the pedestal coordinate system is multiplied. As an example, the luminance correction table generation unit 113 determines that the luminance value of a pixel included in the shadow area of the pedestal coordinate system is x in a certain paper image, and that the luminance value of another pixel image is shifted in the pedestal coordinate system. Assuming that the luminance value of a pixel that does not become a shadow area at the same position in the paper coordinate system corresponding to the X pixel is y, a luminance correction coefficient indicating a value of y ÷ x is calculated. The luminance correction table generation unit 113 generates a luminance correction table indicating the correspondence between the identification number of the pixel in the pedestal coordinate system and the luminance correction coefficient (step S106). In the above-described processing, the shadow area determination unit 112 determines a location where the difference in luminance value of the corresponding pixel is equal to or more than a predetermined threshold as a shadow area candidate based on the comparison of the respective sheet images, and The pixels in the pedestal coordinate system when the number of paper images determined as shadow area candidates is equal to or greater than a predetermined value are determined as shadow areas. Then, the luminance correction table generation unit 113 determines whether the first pixel (for example, FIG. 4) determined as a shadow area in the reading target in one of the sheet images obtained from the images placed on the pedestal 21 while being shifted. The brightness value of the lower right corner of the shadow area 41-2 of the No. 4 is determined by the corresponding second pixel (pixel at the position corresponding to the first pixel) which is not determined to be the shadow area in the reading target in the other sheet image. Thus, a brightness correction table is generated which holds a brightness correction coefficient to be converted into a brightness value of, for example, the pixel at the lower right corner of the shadow area 42-1 in FIG. 4 for all pixels in the shadow area.

そして影削減処理部114は、影領域に含まれる各画素の輝度値に、対応する画素についての輝度補正係数をそれぞれ乗じる影削減処理を行う(ステップS107)。これにより影領域の台座座標系の各画素に対応する用紙座標系の各画素の輝度値が調整され、第一用紙画像31および第二用紙画像32において影領域が削減される。例えば、影領域に含まれる画素の輝度値xに、y÷xで示される輝度補正係数を乗じれば、影領域に含まれる画素の輝度値がyとなり影の影響が削減される。以降、他の機会で用紙3について撮影した場合でも、影の位置が動かない場合には生成した輝度補正テーブルを用いて影領域を削減することができる。   Then, the shadow reduction processing unit 114 performs a shadow reduction process of multiplying the luminance value of each pixel included in the shadow area by a luminance correction coefficient for the corresponding pixel (step S107). Thereby, the brightness value of each pixel of the paper coordinate system corresponding to each pixel of the pedestal coordinate system of the shadow area is adjusted, and the shadow area in the first paper image 31 and the second paper image 32 is reduced. For example, if the luminance value x of the pixel included in the shadow area is multiplied by a luminance correction coefficient represented by y ÷ x, the luminance value of the pixel included in the shadow area becomes y, and the influence of the shadow is reduced. Thereafter, even when the image of the sheet 3 is taken at another occasion, if the position of the shadow does not move, the shadow area can be reduced using the generated luminance correction table.

画像処理装置1は影領域が削減された第一用紙画像31や第二用紙画像32を用いて、所定の処理を行う。所定の処理とは、例えば文字認識処理や、画像保存処理などであってよい。   The image processing apparatus 1 performs a predetermined process using the first paper image 31 and the second paper image 32 in which the shadow area has been reduced. The predetermined process may be, for example, a character recognition process or an image storage process.

以上の処理によれば、予期せぬ影が読取対象物に入り込んだとしても、その読取対象物を撮影して得られた用紙画像から影領域を削除することができる。また、次回の撮影から台座座標系全体の画像データに同処理(影削減処理)を毎回行えば、新たに予期せぬ影の影響を受けない限りは、恒久的に影領域を削除することができる。   According to the above processing, even if an unexpected shadow enters the reading target, the shadow area can be deleted from the paper image obtained by photographing the reading target. Also, if the same processing (shadow reduction processing) is performed each time on the image data of the entire pedestal coordinate system from the next shooting, the shadow area can be permanently deleted unless it is affected by a new unexpected shadow. it can.

なお画像処理装置1は、用紙3が2枚以上のn枚を用いて各用紙3から影領域を削減してもよい。この場合、画像処理装置1は、n枚の用紙3をスキャンして、n枚の視野画像を得る。ただし、n≧2とする。視野画像は撮影部22の視野全体をスキャンした画像で、台座領域全体の画像データと定義する。画像処理装置1はn枚の各視野画像中から特定した用紙3部分の歪みを補正して取り出し、第一用紙画像から第n用紙画像のn枚の用紙画像を得る。   Note that the image processing apparatus 1 may reduce the shadow area from each sheet 3 using n or more sheets 3. In this case, the image processing apparatus 1 scans the n sheets 3 to obtain n view images. However, it is assumed that n ≧ 2. The visual field image is an image obtained by scanning the entire visual field of the photographing unit 22 and is defined as image data of the entire pedestal region. The image processing apparatus 1 corrects and extracts the distortion of the specified sheet 3 from the n sheets of the visual field images, and obtains n sheet images of the nth sheet image from the first sheet image.

画像処理装置1の影領域判定部112は、第一用紙画像31と、他の用紙画像32,33・・・3nとのn−1の各組について、用紙座標系を用いた対応する画素同士の輝度値の差分を算出する。なお各用紙画像の座標系は用紙のある角を原点とした統一された座標系である。影領域判定部112は、輝度値の差分が所定値以上の用紙座標系の画素に対応する台座座標系の画素を特定し、その画素に対して影判定フラグを1つ投票してデータテーブルに記録する。影領域判定部112は、n−1の各組について同様の影判定フラグの投票を行う。より詳細に述べると、本処理は、まず、用紙画像31を基準とし、用紙画像31と、用紙画像31以外(つまり、用紙画像32から用紙画像3nまで)の組、n−1組について、各組での、用紙座標系での同じ位置の画素値の差分をみた場合で、差分が大きい場合、用紙画像31の当該位置に対応する台座座標系の画素を特定し、その画素に対して、影判定フラグを1つ投票してデータテーブルに記録する。これを、用紙画像32を基準とした用紙画像32と用紙画像32以外の組、用紙画像33を基準とした用紙画像33と用紙画像33以外の組、というように、用紙画像3nを基準とした用紙画像3nと用紙画像3n以外の組まで繰り返す。影領域判定部112は、台座座標系の各画素のうちnの影判定フラグが投票されている画素の領域を影領域と特定する。影領域に対する影の削減処理は上述と同様である。なお、影領域に対応する画素と特定する際の評価条件となる影判定フラグ数を、上記のような利用した用紙画像の数nと等しい数とする他に、利用した用紙画像の数以上としてもよいし、利用した用紙画像の数未満の任意の値以上としてもよい。また、本処理の後に、更新済みの影補正テーブルを撮影済みの画像データへ適用した上で、同画像データを用いて上記の処理を繰り返し行っても良い。その場合、評価条件となる影判定フラグの数を、最初は任意の値に設定しおき、繰り返しの上記処理が進むにつれて画像の数と一致、もしくは任意の値と一致するように評価条件のしきい値を増加させてもよい。また、本処理は、n枚の画像の全てに対して行ったが、任意の2枚の組を選んで行ってもよい。   The shadow area determination unit 112 of the image processing apparatus 1 determines, for each set of n−1 of the first paper image 31 and the other paper images 32, 33,. Is calculated. The coordinate system of each sheet image is a unified coordinate system with a corner of the sheet as the origin. The shadow area determination unit 112 specifies a pixel in the pedestal coordinate system corresponding to a pixel in the paper coordinate system in which the difference in luminance value is equal to or greater than a predetermined value, votes one shadow determination flag for the pixel, and enters the shadow determination flag in the data table. Record. The shadow area determination unit 112 votes for the same shadow determination flag for each of the n-1 sets. More specifically, in this process, first, based on the paper image 31, a paper image 31 and a set other than the paper image 31 (that is, from the paper image 32 to the paper image 3n), and n-1 sets, In the set, when the difference between the pixel values at the same position in the paper coordinate system is viewed, and when the difference is large, the pixel of the pedestal coordinate system corresponding to the position of the paper image 31 is specified, and for that pixel, One shadow determination flag is voted and recorded in the data table. This is based on the paper image 3n, such as a paper image 32 based on the paper image 32 and a group other than the paper image 32, and a paper image 33 based on the paper image 33 and a group other than the paper image 33. The process is repeated for the sheet image 3n and a group other than the sheet image 3n. The shadow area determination unit 112 specifies, as a shadow area, an area of a pixel for which n shadow determination flags have been voted among the pixels in the pedestal coordinate system. The shadow reduction process for the shadow area is the same as described above. The number of shadow determination flags, which is an evaluation condition when specifying a pixel corresponding to a shadow area, is set to a number equal to the number n of used paper images as described above, and is set to be equal to or more than the number of used paper images. Alternatively, it may be set to any value less than the number of used paper images or more. After this processing, the updated shadow correction table may be applied to captured image data, and the above processing may be repeated using the image data. In this case, the number of shadow determination flags serving as evaluation conditions is set to an arbitrary value at first, and the evaluation conditions are set so as to match the number of images or to match an arbitrary value as the above-described repeated processing proceeds. The threshold may be increased. In addition, the present process is performed on all of the n images, but may be performed by selecting an arbitrary two-image set.

なお画像処理装置1は以下の様に輝度補正係数の修正要否判定処理を行って、読取対象物を撮影して得られた用紙画像から影領域を削除してもよい。なお、本処理によって修正が必要であると判定された時点で、アラームをユーザへ出力するようにしてもよい。アラームは例えば、音、文字表示などによって行って良い。   Note that the image processing apparatus 1 may perform the correction necessity determination processing of the luminance correction coefficient as described below, and delete the shadow area from the paper image obtained by photographing the reading target. Note that an alarm may be output to the user when it is determined that the correction is required by this process. The alarm may be given by, for example, a sound or a character display.

まず画像処理装置1は、n枚の原稿用紙をスキャンして、n枚の視野画像を得る(n≧2)。画像処理装置1はn枚の各視野画像中から特定した原稿用紙部分の歪みを補正して取り出し、n枚の用紙画像を得る。画像処理装置1は、n枚の用紙画像のうちの2枚の組を特定し、全ての2枚の組で同じ画素位置の画素値の差分を算出し、その差分が大きい組が1つでもある場合には、輝度補正係数の修正が必要であると判定する。   First, the image processing apparatus 1 scans n original sheets to obtain n view images (n ≧ 2). The image processing apparatus 1 corrects and extracts the distortion of the specified original paper portion from each of the n sheets of the visual field image, and obtains n sheets of paper images. The image processing apparatus 1 specifies two sets of the n sheet images, calculates the difference between the pixel values at the same pixel position in all the two sets, and sets the difference to be large even in one set. In some cases, it is determined that the luminance correction coefficient needs to be corrected.

具体的には画像処理装置1は、n枚の用紙画像のうち、1枚目と、1枚目以外(つまり、2枚目からn枚目までの各用紙画像)の各組n−1について、各組n−1それぞれにおける用紙座標系での同じ位置の各画素値間の差分を算出する。画像処理装置1は各組n−1のうち、対応する画素の輝度の差分が大きい組が1つでもある場合には、その輝度の差分の大きい各画素を影領域候補と判定し、その影領域候補から特定した影領域について、輝度補正係数の生成や修正が必要であると判定する。   More specifically, the image processing apparatus 1 sets the first sheet n and the set n-1 other than the first sheet (that is, each sheet image from the second sheet to the n-th sheet) among the n sheet images. , The difference between the pixel values at the same position in the paper coordinate system in each set n−1 is calculated. When there is at least one set having a large difference in luminance of the corresponding pixel among the sets n−1, the image processing apparatus 1 determines each pixel having a large difference in luminance as a shadow region candidate, and It is determined that a brightness correction coefficient needs to be generated or corrected for the shadow region identified from the region candidate.

なお、上述した画像処理装置1の各処理の説明において、画像処理装置1は歪み補正を行った用紙画像を生成しているが、歪み補正を行わなくとも、n枚の各視野画像と、各用紙画像の対応する画素の関係が特定でき、それら画素間の輝度値の差分を判定することができればよい。
また、画像処理装置1は、上記の輝度補正係数の修正要否判定処理において、各用紙画像の画素単位で輝度値の差分を判定しているが、注目画素近傍の平均値の差分を各用紙画像間で算出してもよい。または画像処理装置1は、用紙画像のぼかし処理や縮小処理等を行ってから対応する各用紙画像の対応する画素間の差分、注目画素近傍の平均値の差分を算出するようにしてもよい。
In the description of each process of the image processing apparatus 1 described above, the image processing apparatus 1 generates a paper image on which distortion correction has been performed. It suffices if the relationship between the corresponding pixels of the paper image can be specified, and the difference in luminance value between the pixels can be determined.
Further, the image processing apparatus 1 determines the difference in luminance value for each pixel of each sheet image in the above-described luminance correction coefficient correction necessity determination process. It may be calculated between images. Alternatively, the image processing apparatus 1 may calculate the difference between the corresponding pixels of each corresponding sheet image and the difference between the average values in the vicinity of the pixel of interest after performing the blurring process, the reduction process, and the like of the sheet image.

画像処理装置1は、上記の輝度補正係数の修正要否判定処理において、用紙画像間の画素の輝度値の差分を算出しているが、画素値の平均値や分散値を算出し、その値に基づいて輝度補正係数の修正が必要であるかを判定してもよい。   The image processing apparatus 1 calculates the difference between the luminance values of the pixels between the paper images in the above-described luminance correction coefficient correction necessity determination process. It may be determined whether or not the luminance correction coefficient needs to be corrected based on.

また、用紙画像における全体的な照度変化に対応するため、画像処理装置1は、用紙画像における原稿下地に該当する領域(輝度分布の高い部分)に着目して輝度分布が略等しくなるように正規化してから上記輝度補正係数の修正要否判定処理を行っても良い。   Further, in order to cope with the overall change in illuminance in the paper image, the image processing apparatus 1 focuses on a region corresponding to the background of the original in the paper image (a portion having a high luminance distribution) so that the luminance distribution becomes substantially equal. After the conversion, the necessity determination processing of the luminance correction coefficient may be performed.

画像処理装置1は、未知の原稿を用いて輝度補正係数の修正要否判定処理を行う場合は、輝度値が著しく小さい画素(真っ黒な印刷と想定される画素)や、輝度値が小さい画素が連なる領域(罫線などのプレプリントや記入成分と想定される画素)を影領域候補から除外してもよい。これにより、原稿下地領域ではない領域を除外することができ、判定の信頼度を向上することができる。   If the image processing apparatus 1 performs the correction necessity determination process of the luminance correction coefficient using the unknown document, the pixel having a significantly small luminance value (a pixel assumed to be black printing) or the pixel having a small luminance value is determined. A continuous area (pixels assumed to be preprints such as ruled lines or entry components) may be excluded from the shadow area candidates. This makes it possible to exclude a region that is not the original background region, and improve the reliability of the determination.

画像処理装置1は、既知の原稿を用いて輝度補正係数の修正要否判定処理を行う場合は、予め登録しておいたフォーマット情報を活用してもよい。この場合、画像処理装置1は、プレプリント領域や記入欄などの領域をフォーマット情報に基づいて影領域候補から除外してもよい。これにより、原稿下地領域ではない領域を除外してから上記輝度補正係数の修正要否判定処理を行っても良い。これにより、未知の原稿で輝度補正係数の修正要否判定処理を行う場合より判定の信頼度が向上する。   When the image processing apparatus 1 performs the correction necessity determination processing of the luminance correction coefficient using a known document, the image processing apparatus 1 may use format information registered in advance. In this case, the image processing apparatus 1 may exclude areas such as the preprint area and the entry column from the shadow area candidates based on the format information. As a result, the processing of determining whether or not the luminance correction coefficient needs to be corrected may be performed after excluding an area that is not the original background area. As a result, the reliability of the determination is improved as compared with the case where the luminance correction coefficient correction necessity determination process is performed on an unknown document.

画像処理装置1は、原稿が未知か既知かに関係なく、視野画像からはみ出ている部分は影領域候補から除外して、上記輝度補正係数の修正要否判定処理を行ってもよい。   Regardless of whether the document is unknown or known, the image processing apparatus 1 may exclude the portion protruding from the field-of-view image from the shadow region candidates and perform the correction necessity determination processing of the brightness correction coefficient.

なお上記画像入力装置2の撮影部22は、2次元センサによって構成されていてもラインセンサによって構成されていてもよい。   Note that the photographing unit 22 of the image input device 2 may be constituted by a two-dimensional sensor or a line sensor.

上記原稿として白い大きな用紙が用意できる場合は、画像処理装置1は1枚の用紙のみスキャンして、視野画像内のある領域に映る任意の領域を第一の原稿と見立てて、当視野画像内の他の領域に映る任意の領域を第二の原稿(第一の原稿と同じ原稿)と見立てて、輝度値等の差分を算出して、上述の輝度補正係数の修正要否判定処理を行うようにしてもよい。   If a large white sheet can be prepared as the document, the image processing apparatus 1 scans only one sheet of paper and treats an arbitrary area reflected in a certain area in the view image as the first document. An arbitrary area reflected in the other area is regarded as a second original (the same original as the first original), and a difference such as a luminance value is calculated, and the above-described luminance correction coefficient correction necessity determination processing is performed. You may do so.

<第二の実施形態>
図8第二の実施形態による画像処理装置の機能ブロック図である。
第二の実施形態による画像処理装置1のハードウェア構成は第一の実施形態と同様である。第二の実施形態による画像処理装置1の機能は、第一の実施形態の画像処理装置1の各機能に加え、印字箇所除去部115を備える点で第一の実施形態と異なっている。
<Second embodiment>
8 is a functional block diagram of the image processing apparatus according to the second embodiment.
The hardware configuration of the image processing device 1 according to the second embodiment is the same as that of the first embodiment. The functions of the image processing apparatus 1 according to the second embodiment are different from those of the first embodiment in that a print portion removing unit 115 is provided in addition to the functions of the image processing apparatus 1 according to the first embodiment.

印字箇所除去部115は、読取対象物における印字箇所を表す所定値未満の輝度値の画素を特定する。例えばこの画素は黒インクが塗布された箇所、文字が記入されている箇所である。その画素を印字箇所以外の下地の輝度に補正する印字箇所除去部を備えるようにしてもよい。例えば、この処理は、当該印字箇所の近傍の下地部分の輝度値などで置き換えるなどの処理である。
この場合、影領域判定部112は印字箇所を印字箇所以外の下地の輝度に補正した後の各用紙画像の比較に基づいて、他の用紙画像と輝度値が一致しない箇所を影領域と判定する。これにより印字箇所を誤って影領域と判定してしまう事象を削減することができる。
印字箇所除去部115は、その他、予め記録されているフォーマット情報を用いて、プレプリントされている領域や、記入欄などの領域の輝度値を、印字箇所以外の下地の輝度に合わせる処理を行うようにしてもよい。
The print location removing unit 115 specifies a pixel having a luminance value less than a predetermined value representing a print location on the reading target. For example, this pixel is a place where black ink is applied and a place where characters are written. A print location removing unit that corrects the pixel to the luminance of the background other than the print location may be provided. For example, this process is a process of replacing with a luminance value of a background portion near the printing location.
In this case, the shadow area determination unit 112 determines a location where the brightness value does not match that of another paper image as a shadow area based on the comparison of each paper image after correcting the printing location to the luminance of the background other than the printing location. . As a result, it is possible to reduce an event that a print location is erroneously determined as a shadow area.
The print location removing unit 115 performs a process of matching the luminance value of the preprinted area and the area such as the entry column with the luminance of the base other than the print location using the format information recorded in advance. You may do so.

また影領域判定部は、用紙画像における印字箇所を表す所定値未満の輝度値の画素を特定した後、その印字箇所を影領域候補と特定する画素の対象から除いて印字箇所以外において影領域候補を特定してもよい。   Further, the shadow area determination unit specifies a pixel having a luminance value less than a predetermined value representing the print location in the paper image, and then excludes the print location from the target of the pixel specifying the shadow area candidate and removes the shadow area candidate other than the print location. May be specified.

<第三の実施形態>
図9は第三の実施形態による画像処理装置の機能ブロック図である。
第三の実施形態による画像処理装置1のハードウェア構成は第一の実施形態と同様である。第三の実施形態による画像処理装置1の機能は、第一の実施形態の画像処理装置1の各機能に加え、全体輝度整合部116を備える点で第一の実施形態と異なっている。
<Third embodiment>
FIG. 9 is a functional block diagram of the image processing apparatus according to the third embodiment.
The hardware configuration of the image processing device 1 according to the third embodiment is the same as that of the first embodiment. The functions of the image processing apparatus 1 according to the third embodiment are different from those of the first embodiment in that an overall luminance matching unit 116 is provided in addition to the functions of the image processing apparatus 1 according to the first embodiment.

全体輝度整合部116は、例えば照明7が暗く読取対象物にその暗い照明7の影響が反映した暗い画像を取得した場合、その画像全体を明るく補正する。具体的には全体輝度整合部116は、複数回の撮影それぞれで生成した画像のうちの基準となる画像における印字されていない領域の輝度と比較して他の画像の印字されていない領域の輝度が全体に渡って同じレベルかを判定する。例えば基準となる画像は照明7の照度が適切なタイミングにおいて予め基準画像として記憶しておいた上記第一用紙画像31であってよい。また他の画像は第二用紙画像32であってよい。全体輝度整合部116は、基準となる用紙画像の印字されていない領域の輝度に、新たに撮影して得られた他の比較対象の用紙画像の印字されていない領域の輝度を一致させる処理を行う。全体輝度整合部116は、画素値のヒストグラムを用いて、用紙の下地部分に相当する輝度が複数の用紙画像間で全体的に略等しくなるように調整してもよい。全体輝度整合部116における用紙画像の輝度補正処理は、ヒストグラムによる補正処理など、公知の輝度補正技術を用いてよい。   For example, when acquiring a dark image in which the illumination 7 is dark and the influence of the dark illumination 7 is reflected on an object to be read, the overall luminance matching unit 116 corrects the entire image to be bright. Specifically, the overall brightness matching unit 116 compares the brightness of the unprinted area of the other image with the brightness of the unprinted area of the reference image among the images generated in each of the plurality of shootings. Is the same level throughout. For example, the reference image may be the first paper image 31 previously stored as a reference image at a timing when the illuminance of the illumination 7 is appropriate. Another image may be the second paper image 32. The overall brightness matching unit 116 performs a process of matching the brightness of the unprinted area of another sheet image to be compared with the brightness of the unprinted area of the reference paper image to the brightness of the unprinted area of the reference paper image. Do. The overall brightness matching unit 116 may use a histogram of pixel values to adjust the brightness corresponding to the background portion of the paper so as to be substantially equal overall among a plurality of paper images. The luminance correction processing of the sheet image in the overall luminance matching unit 116 may use a known luminance correction technique such as a correction processing using a histogram.

そして影領域判定部112は、基準となる用紙画像の印字されていない領域の輝度に、他の用紙画像の印字されていない領域の輝度を一致させた後の各用紙画像の比較に基づいて輝度値の差が所定閾値以上の箇所を影領域と判定する。   Then, the shadow area determination unit 112 compares the brightness of the non-printed area of the other paper image with the brightness of the non-printed area of the other paper image based on a comparison of each paper image. A portion where the value difference is equal to or larger than a predetermined threshold is determined as a shadow region.

このような処理を行うことで、照明7が暗い場合などに読取対象物全体が暗くなる現象を改善した上で影領域を特定することができ、影領域の特定をより精度高く行うことができる。   By performing such processing, it is possible to specify a shadow area after improving the phenomenon that the entire reading target becomes dark when the illumination 7 is dark, and to specify the shadow area with higher accuracy. .

<第四の実施形態>
上述の処理では2つの画像データから検出した各用紙画像を比較して影領域を特定したが、それ以上のより多い数の画像データから検出した各用紙画像間で画素の輝度値を比較して影領域を特定するようにしてもよい。例えば、画像入力装置2において、5回、撮影部22との相対位置をずらして用紙3が台座21に置かれた状態とされ、画像入力装置2が、用紙の各相対位置ずれの各状態において、その都度、撮影して画像データを出力する。そして画像処理装置1はそれら5つの各用紙画像を比較して影領域を特定するようにしてよい。
<Fourth embodiment>
In the above-described processing, the shadow area is specified by comparing each paper image detected from the two image data, but the luminance value of the pixel is compared between each paper image detected from a larger number of image data than that. The shadow area may be specified. For example, in the image input device 2, the sheet 3 is placed on the pedestal 21 with the relative position with respect to the photographing unit 22 shifted five times. Each time, the image is taken and the image data is output. Then, the image processing apparatus 1 may compare the five sheet images to specify the shadow area.

図10は撮影部との相対位置をずらして用紙が台座に置かれた異なる状態を一つの図に重ねて表した図である。
具体的に影領域判定部112は、複数回の撮影それぞれで生成された画像データに対応する各用紙画像において他の用紙画像と第一の閾値以上の差分のある画素を第一の影領域候補と判定する。影領域判定部112は第一の影領域候補の中で他の画素との差分値が第一の閾値よりもさらに大きい第二の閾値以上となる画素を第二の撮影領域候補と判定する。影領域判定部112は、台座21の左上角を原点210とする台座座標系と、用紙3の左上角を原点310とする用紙座標系とを認識する。画像処理装置1の制御部111は、台座座標系と、各用紙画像によって異なる用紙座標系との対応関係を記憶している。影領域判定部112は、用紙3の用紙座標系において特定した第一の撮影領域候補となる画素に対応する台座座標系の画素に第一影判定フラグ(第一の影判定値)を1つ投票する。また影領域判定部112は、用紙3の用紙座標系において特定した第二の撮影領域候補となる画素に対応する台座座標系の画素に第二影判定フラグ(第二の影判定値)を1つ投票する。第二撮影領域候補は第一撮影領域候補にも含まれるため、第二撮影領域候補となる画素に対応する台座座標系の画素には第一判定フラグと第二判定フラグとがそれぞれ投票されることとなる。影領域判定部112はこの処理を複数の各用紙画像の全ての画素について行う。
FIG. 10 is a diagram showing different states in which the sheet is placed on the pedestal while being shifted from the relative position with respect to the photographing unit, in a single figure.
Specifically, the shadow area determination unit 112 determines, in each paper image corresponding to the image data generated in each of the plurality of shootings, a pixel having a difference equal to or more than a first threshold from another paper image as a first shadow area candidate. Is determined. The shadow area determination unit 112 determines, as a second imaging area candidate, a pixel in the first shadow area candidate whose difference value from another pixel is equal to or greater than a second threshold value that is even larger than the first threshold value. The shadow area determination unit 112 recognizes a pedestal coordinate system having the upper left corner of the pedestal 21 as the origin 210 and a sheet coordinate system having the upper left corner of the sheet 3 as the origin 310. The control unit 111 of the image processing apparatus 1 stores a correspondence between the pedestal coordinate system and a sheet coordinate system that differs depending on each sheet image. The shadow area determination unit 112 assigns one first shadow determination flag (first shadow determination value) to a pixel in the pedestal coordinate system corresponding to the pixel serving as the first imaging area candidate specified in the paper coordinate system of the paper 3 Vote. Further, the shadow area determination unit 112 sets a second shadow determination flag (second shadow determination value) to a pixel in the pedestal coordinate system corresponding to a pixel that is a second imaging area candidate specified in the paper coordinate system of the paper 3. One vote. Since the second imaging region candidate is also included in the first imaging region candidate, the first determination flag and the second determination flag are respectively voted for the pixel of the pedestal coordinate system corresponding to the pixel that is the second imaging region candidate It will be. The shadow area determination unit 112 performs this processing for all pixels of each of the plurality of paper images.

影領域判定部112は台座座標系が示す各画素において第二影判定フラグが投票されている画素については直ちに影領域と特定する。また影領域判定部112は台座座標系が示す各画素において第二影判定フラグが投票されておらず第一影判定フラグのみが投票されている画素についてはそのフラグ数をカウントする。影領域判定部112はカウントしたフラグ数が閾値以上である場合に、その台座座標系の画素に対応する各用紙画像の画素を影領域と特定する。   The shadow area determination unit 112 immediately specifies a pixel for which the second shadow determination flag has been voted in each pixel indicated by the pedestal coordinate system as a shadow area. In addition, the shadow area determination unit 112 counts the number of pixels for which the second shadow determination flag is not voted and only the first shadow determination flag is voted for each pixel indicated by the pedestal coordinate system. When the counted number of flags is equal to or larger than the threshold value, the shadow area determination unit 112 specifies a pixel of each paper image corresponding to the pixel of the pedestal coordinate system as a shadow area.

以上の処理によれば、複数回、撮影部22との相対位置をずらして用紙3が台座21に置かれた際の各画像データによる用紙画像の比較の結果、輝度差が比較的低い場合には多くの用紙画素間で違いがあると判定された台座座標系の画素に対応する用紙座標系の画素のみ影領域と判定される。したがって、より精度良く影領域を判定することができる。   According to the above processing, when the sheet image is compared with the image data when the sheet 3 is placed on the pedestal 21 by shifting the relative position with respect to the photographing unit 22 a plurality of times, when the luminance difference is relatively low, Is determined as a shadow area only on a pixel in the paper coordinate system corresponding to a pixel in the pedestal coordinate system determined to have a difference between many paper pixels. Therefore, the shadow area can be determined with higher accuracy.

図11は画像処理装置の最小構成を示す図である。
図11が示すように画像処理装置1は少なくとも影領域判定部を備えればよい。
撮影領域判定部は、撮影部との相対位置をずらして置かれた読取対象物を撮影してそれら複数回の撮影それぞれで生成した各画像の輝度値の比較に基づいて輝度値の差が所定閾値以上の箇所を影領域と判定する。
FIG. 11 is a diagram illustrating a minimum configuration of the image processing apparatus.
As shown in FIG. 11, the image processing apparatus 1 may include at least the shadow area determination unit.
The photographing area determination unit photographs the object to be read placed at a position shifted from the relative position with respect to the photographing unit, and determines a predetermined difference in the luminance value based on a comparison of the luminance values of the images generated in each of the plurality of photographings. A portion equal to or larger than the threshold value is determined as a shadow region.

上述の画像処理装置は内部に、コンピュータシステムを有している。そして、画像処理装置に上述した各処理を行わせるためのプログラムは、当該画像処理装置のコンピュータ読み取り可能な記録媒体に記憶されており、このプログラムを画像処理装置のコンピュータが読み出して実行することによって、上記処理が行われる。ここでコンピュータ読み取り可能な記録媒体とは、磁気ディスク、光磁気ディスク、CD−ROM、DVD−ROM、半導体メモリ等をいう。また、このコンピュータプログラムを通信回線によってコンピュータに配信し、この配信を受けたコンピュータが当該プログラムを実行するようにしても良い。   The image processing apparatus described above has a computer system inside. A program for causing the image processing device to perform each of the above-described processes is stored in a computer-readable recording medium of the image processing device, and the computer of the image processing device reads and executes the program. The above processing is performed. Here, the computer-readable recording medium refers to a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, or the like. Alternatively, the computer program may be distributed to a computer via a communication line, and the computer that has received the distribution may execute the program.

また、上記プログラムは、前述した各処理部の機能の一部を実現するためのものであっても良い。さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。   Further, the program may be for realizing a part of the function of each processing unit described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.

1・・・画像処理装置
2・・・画像入力装置
3・・・用紙
4・・・什器
21・・・台座
22・・・撮影部
23・・・アーム部
24・・・ベース部
101・・・CPU
102・・・ROM
103・・・RAM
104・・・HDD
105・・・ユーザインタフェース
106・・・通信モジュール
111・・・制御部
112・・・影領域判定部
113・・・輝度補正テーブル生成部
114・・・影削減処理部
115・・・印字箇所除去部
116・・・全体輝度整合部
DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus 2 ... Image input apparatus 3 ... Paper 4 ... Furniture 21 ... Pedestal 22 ... Imaging part 23 ... Arm part 24 ... Base part 101 ...・ CPU
102 ROM
103 RAM
104 ・ ・ ・ HDD
105 ... User interface 106 ... Communication module 111 ... Control unit 112 ... Shadow area determination unit 113 ... Brightness correction table generation unit 114 ... Shadow reduction processing unit 115 ... Printed portion removal Unit 116: Overall luminance matching unit

Claims (9)

台座と台座領域に置かれた読取対象物とを撮影する撮影部とを有する画像入力装置の出力した画像データを処理する画像処理装置であって、
前記撮影部との相対位置をずらして置かれた読取対象物を撮影してそれら複数回の撮影それぞれで生成した各画像の輝度値の比較に基づいて輝度値の差が所定閾値以上の箇所を影領域と判定する影領域判定部と、
前記影領域における画素の輝度値に基づいて当該輝度値に乗じる輝度補正係数を保持した輝度補正テーブルを生成する輝度補正テーブル生成部と、
前記撮影により生成された画像の影領域の各画素に前記輝度補正テーブルに記録されている対応する画素についての輝度補正係数を乗じる影削減処理部と、
を備える画像処理装置。
An image processing apparatus for processing image data output from an image input device having a pedestal and an imaging unit that captures an object to be read placed in the pedestal region,
Based on a comparison of the brightness values of the respective images generated in each of the plurality of times of shooting, the location where the difference in brightness value is equal to or greater than a predetermined threshold A shadow area determination unit that determines a shadow area;
A brightness correction table generation unit that generates a brightness correction table that holds a brightness correction coefficient for multiplying the brightness value based on the brightness value of the pixel in the shadow region,
And shadow reduction processor for multiplying the luminance correction coefficient for the corresponding pixel is recorded on the luminance correction table to each pixel in the shadow region of the image generated by the photographing,
An image processing apparatus comprising:
前記読取対象物における印字箇所を表す所定値未満の輝度値の画素を特定し、その画素を印字箇所以外の下地の輝度に補正する印字箇所除去部と、を備え、
前記影領域判定部は、前記印字箇所を印字箇所以外の下地の輝度に補正した後の各画像の比較に基づいて他の画像と輝度値が一致しない箇所を影領域と判定する
請求項1記載の画像処理装置。
A print location removal unit that specifies a pixel having a luminance value less than a predetermined value representing a print location in the read target, and corrects the pixel to the luminance of the background other than the print location,
The shadow area determination unit, the other image and places claim determines a shadow area 1 a does not luminance value match based on a comparison of the image after correcting the print position to the underlying luminance outside the printing position The image processing apparatus according to any one of the preceding claims.
前記読取対象物における印字箇所を表す所定値未満の輝度値の画素を特定し、その画素を印字箇所以外の下地の輝度に補正する印字箇所除去部と、を備え、
前記影領域判定部は、前記読取対象物における印字箇所を表す所定値未満の輝度値の画素を特定し、当該印字箇所を処理対象から除いて前記影領域を判定する
請求項1記載の画像処理装置。
A print location removal unit that specifies a pixel having a luminance value less than a predetermined value representing a print location in the read target, and corrects the pixel to the luminance of the background other than the print location,
The image according to claim 1 , wherein the shadow area determination unit specifies a pixel having a luminance value less than a predetermined value representing a print location on the reading target, and removes the print location from a processing target to determine the shadow area. Processing equipment.
前記複数回の撮影それぞれで生成した画像のうちの基準となる画像における印字されていない領域の輝度と比較して他の画像の印字されていない領域の輝度が全体に渡って異なる場合、基準となる画像の印字されていない領域の輝度に、前記他の画像の印字されていない領域の輝度を一致させる全体輝度整合部と、を備え、
前記影領域判定部は、前記基準となる画像の印字されていない領域の輝度に、前記他の画像の印字されていない領域の輝度を一致させた後の各画像の比較に基づいて輝度値の差が所定閾値以上の箇所を影領域と判定する
請求項1から請求項の何れか一項に記載の画像処理装置。
If the brightness of the unprinted area of the other image is different from the brightness of the unprinted area in the reference image of the images generated in each of the plurality of shootings, the reference and the An overall brightness matching unit that matches the brightness of the unprinted area of the other image with the brightness of the unprinted area of the other image,
The shadow area determination unit, based on the comparison of each image after matching the brightness of the unprinted area of the other image to the brightness of the unprinted area of the reference image, The image processing device according to any one of claims 1 to 3 , wherein a portion where the difference is equal to or greater than a predetermined threshold is determined as a shadow region.
前記影領域判定部は、前記複数回の撮影それぞれで生成した各画像において影領域と判定した画素に対応する前記台座の座標系における画素に影判定値を付与し、当該影判定値が付与された回数と、前記輝度値の差が所定閾値以上の箇所の輝度差とに基づいて、前記影領域を判定する
請求項1から請求項の何れか一項に記載の画像処理装置。
The shadow area determination unit assigns a shadow determination value to a pixel in the pedestal coordinate system corresponding to a pixel determined as a shadow area in each image generated in each of the plurality of shootings, and the shadow determination value is assigned. The image processing device according to any one of claims 1 to 3 , wherein the shadow area is determined based on the number of times the brightness value has changed and a brightness difference at a location where the difference between the brightness values is equal to or greater than a predetermined threshold.
前記読取対象物と前記撮影部との相対位置をずらす摺動機構が前記台座に設けられた前記画像入力装置の出力した前記画像データを処理する請求項1から請求項の何れか一項に記載の画像処理装置。 To any one of claims 1 to 5 for processing the image data the sliding mechanism for shifting the relative position is output from the image input device provided in the pedestal and said object to be read and the imaging unit The image processing apparatus according to any one of the preceding claims. 前記台座にユーザによって前記撮影部との相対位置をずらして置かれた読取対象物を撮影する前記画像入力装置の出力した前記画像データを処理する
請求項1から請求項の何れか一項に記載の画像処理装置。
To any one of claims 1 to 5 for processing the image data output of said image input apparatus for photographing a read object placed by shifting the relative position of the imaging unit by a user to the pedestal The image processing apparatus according to any one of the preceding claims.
台座と台座領域に置かれた読取対象物とを撮影する撮影部とを有する画像入力装置の出力した画像データを処理する画像処理装置の処理方法であって、
前記撮影部との相対位置をずらして置かれた読取対象物を撮影してそれら複数回の撮影それぞれで生成した各画像の輝度値の比較に基づいて輝度値の差が所定閾値以上の箇所を影領域と判定し、
前記影領域における画素の輝度値に基づいて当該輝度値に乗じる輝度補正係数を保持した輝度補正テーブルを生成し、
前記撮影により生成された画像の影領域の各画素に前記輝度補正テーブルに記録されている対応する画素についての輝度補正係数を乗じる
処理方法。
A processing method of an image processing device that processes image data output from an image input device having a pedestal and an imaging unit that captures an object to be read placed in the pedestal region,
Based on a comparison of the brightness values of the respective images generated in each of the plurality of times of shooting, the location where the difference in brightness value is equal to or greater than a predetermined threshold Judge as a shadow area,
Based on the brightness value of the pixel in the shadow area, a brightness correction table that holds a brightness correction coefficient by which the brightness value is multiplied is generated,
Processing method of multiplying the luminance correction coefficient for the corresponding pixel is recorded on the luminance correction table to each pixel in the shadow region of the image generated by the photographing.
台座と台座領域に置かれた読取対象物とを撮影する撮影部とを有する画像入力装置の出力した画像データを処理する画像処理装置のコンピュータを、
前記撮影部との相対位置をずらして置かれた読取対象物を撮影してそれら複数回の撮影それぞれで生成した各画像の輝度値の比較に基づいて輝度値の差が所定閾値以上の箇所を影領域と判定する影領域判定手段、
前記影領域における画素の輝度値に基づいて当該輝度値に乗じる輝度補正係数を保持した輝度補正テーブルを生成する輝度補正テーブル生成手段、
前記撮影により生成された画像の影領域の各画素に前記輝度補正テーブルに記録されている対応する画素についての輝度補正係数を乗じる影削減処理手段、
として機能させるプログラム。
A computer of an image processing device that processes image data output from an image input device having a pedestal and an imaging unit that captures an object to be read placed in the pedestal region,
Based on a comparison of the brightness values of the respective images generated in each of the plurality of times of shooting, the location where the difference in brightness value is equal to or greater than a predetermined threshold Shadow area determining means for determining a shadow area,
A luminance correction table generating unit that generates a luminance correction table holding a luminance correction coefficient by which the luminance value is multiplied based on a luminance value of a pixel in the shadow area;
Shadow reduction processing means for multiplying the luminance correction coefficient for the corresponding pixel is recorded on the luminance correction table to each pixel in the shadow region of the image generated by the photographing,
A program to function as
JP2017071793A 2017-03-31 2017-03-31 Image processing apparatus, processing method, and program Active JP6677209B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017071793A JP6677209B2 (en) 2017-03-31 2017-03-31 Image processing apparatus, processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017071793A JP6677209B2 (en) 2017-03-31 2017-03-31 Image processing apparatus, processing method, and program

Publications (2)

Publication Number Publication Date
JP2018173839A JP2018173839A (en) 2018-11-08
JP6677209B2 true JP6677209B2 (en) 2020-04-08

Family

ID=64107742

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017071793A Active JP6677209B2 (en) 2017-03-31 2017-03-31 Image processing apparatus, processing method, and program

Country Status (1)

Country Link
JP (1) JP6677209B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7208823B2 (en) * 2019-02-22 2023-01-19 日本放送協会 Video correction device and its program

Also Published As

Publication number Publication date
JP2018173839A (en) 2018-11-08

Similar Documents

Publication Publication Date Title
US9036223B2 (en) Systems and methods for edge detection during an imaging operation
US10455163B2 (en) Image processing apparatus that generates a combined image, control method, and storage medium
JP2004108779A (en) Image defect inspection apparatus
JP6288521B2 (en) Image processing device
JP2007081458A (en) Image processing apparatus and control method of image processing apparatus
US8306335B2 (en) Method of analyzing digital document images
US10834281B2 (en) Document size detecting by matching between image of entire document and read size image
US10999513B2 (en) Information processing apparatus having camera function, display control method thereof, and storage medium
JP6677209B2 (en) Image processing apparatus, processing method, and program
JP6311354B2 (en) Information processing apparatus, binarization threshold value determination method, and program
JP2009246967A (en) Method of generating high quality scanned image of document
US20210281742A1 (en) Document detections from video images
JP2007159065A (en) Image reading apparatus, and sticky note removing method thereof
JP6540597B2 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND PROGRAM
JP2010225047A (en) Noise component removing device, and medium with noise component removing program recorded thereon
JP6639257B2 (en) Information processing apparatus and control method therefor
JP6600090B2 (en) Image processing apparatus, image processing method, and program
JP2009098867A (en) Character string recognition method, computer program and storage medium
JPH10336428A (en) Image processing unit
JP2007328652A (en) Image processing device and image processing program
JP2010102376A (en) Information display pixel group extraction method, information display pixel group extraction device, and information display pixel group extraction program
US9692938B2 (en) Image forming apparatus
JP6798309B2 (en) Image processing equipment, image processing methods and programs
JP6083807B2 (en) Image processing apparatus and image forming system
KR101629418B1 (en) System and method to get corrected scan image using mobile device camera and scan paper

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180709

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190910

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191203

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200130

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200225

R150 Certificate of patent or registration of utility model

Ref document number: 6677209

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150