JPH06105091A - Photographing base type input device - Google Patents

Photographing base type input device

Info

Publication number
JPH06105091A
JPH06105091A JP3348001A JP34800191A JPH06105091A JP H06105091 A JPH06105091 A JP H06105091A JP 3348001 A JP3348001 A JP 3348001A JP 34800191 A JP34800191 A JP 34800191A JP H06105091 A JPH06105091 A JP H06105091A
Authority
JP
Japan
Prior art keywords
document
color
output
photographed
circuit
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.)
Withdrawn
Application number
JP3348001A
Other languages
Japanese (ja)
Inventor
Noriyuki Nobuyuki
宣之 沖須
Shinya Matsuda
伸也 松田
Satoyuki Nakamura
里之 中村
Atsushi Mizuguchi
淳 水口
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.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP3348001A priority Critical patent/JPH06105091A/en
Priority to US07/983,672 priority patent/US5377019A/en
Publication of JPH06105091A publication Critical patent/JPH06105091A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Color Image Communication Systems (AREA)
  • Holders For Sensitive Materials And Originals (AREA)

Abstract

PURPOSE:To detect the size of a document to determine a photographic area by detecting a specific color like a flesh color of hands and figures from input information. CONSTITUTION:The document is photographed by a first photographing means (color CCD) 21 to obtain a picture element output of three colors of red, green, and blue. Photographed color data is sent to a flesh color area detecting circuit 44, and coloring matters of two specific colors are operated from the picture element output of three colors, and it is detected and discriminated whether the photographed picture element output has a specific color like a flesh color of hands and figures or not by these two coloring matters. The document is photographed by a second photographing means (photographing use CCD) 20, and the size of the document is discriminated by a signal processing circuit 101 based on the output of the flesh color area detecting circuit 44, and the size of the photographed document picture is corrected. That is, the flesh color as the specific color is detected to delete information of hands and fingers retaining the document, thereby obtaining a beautiful photographic area output.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、書籍等の原稿を上方か
ら撮影する撮影台型の入力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a photographing table type input device for photographing a document such as a book from above.

【0002】[0002]

【従来の技術】従来から、書籍等の原稿を上向きに開い
た状態で上方から撮影することができる装置が知られて
いる。通常、この種の装置では原稿の撮影範囲はオペレ
ータが設定していた。なお、原稿を原稿ガラス台上に下
向きにセットし、下方から撮影するタイプの入力装置で
は、原稿ガラス台の下部に反射型フォトセンサを並べ
て、原稿の大きさを自動的に検出するようにしたものが
あるが、このような構成は、原稿を上向きにセットし上
方から撮影するタイプには適用困難である。
2. Description of the Related Art Conventionally, there has been known an apparatus capable of photographing a document such as a book from above with the document opened upward. Usually, in this type of apparatus, the operator has set the photographing range of the document. It should be noted that in an input device of a type in which a document is set face down on a document glass table and is photographed from below, a reflection type photo sensor is arranged below the document glass table so that the size of the document is automatically detected. However, such a configuration is difficult to apply to a type in which a document is set upward and the image is taken from above.

【0003】[0003]

【発明が解決しようとする課題】ところで、この種の装
置では、原稿を押さえる手、指が撮影領域に入らないよ
うに、撮影作業には細心の注意を払う必要があり、書類
等を押さえる手や指が原稿と一緒に撮影され、撮影に失
敗することがある。本発明は、上記問題を解消するもの
で、入力情報のうち、手・指の肌色等の特定色を検出す
ることにより、原稿の大きさを検知し、撮影領域を決定
することができる撮影台型入力装置を提供することを目
的とする。
By the way, in this type of apparatus, it is necessary to pay close attention to the shooting work so as to prevent the fingers holding the document and the fingers from entering the shooting area. Sometimes your finger or your finger is taken with the original and the shooting fails. The present invention solves the above-described problems, and by detecting a specific color such as a skin color of a hand / finger among input information, it is possible to detect the size of a document and determine a shooting area. An object is to provide a mold input device.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するため
に本発明は、原稿台上に置かれた原稿を撮影し、赤,
緑,青の三色の画素出力を得る第1の撮像手段と、撮像
したこれら赤、緑、青の三色の画素出力から特定の二色
の色度を演算する演算手段と、この二つの色度から撮像
した画素出力が特定色であるかどうかを判別する判別手
段と、前記原稿を撮影する第2の撮像手段と、上記判別
手段の出力をもとに前記第2の撮像手段からの出力を補
正する補正手段とを備えた撮影台型入力装置である。
In order to achieve the above object, the present invention takes an image of a document placed on a document table,
A first image pickup means for obtaining pixel outputs of the three colors of green and blue, a calculation means for calculating chromaticity of specific two colors from the imaged pixel outputs of the three colors of red, green and blue, and these two Based on the output of the discriminating means, the discriminating means for discriminating whether or not the pixel output captured based on the chromaticity is a specific color, the second image capturing means for photographing the document, and the second image capturing means It is an imaging stand type input device provided with a correction means for correcting the output.

【0005】[0005]

【作用】上記の構成によれば、赤、緑、青の三色の画素
出力(r、g、b)より特定の二色、例えば赤と緑の色
度(R、G)が演算され、これより特定の色情報、例え
ば、手・指の肌色等が検出、判別される。この判別出力
をもとに原稿の大きさ等を検知し、この情報に基づいて
撮像した原稿画像の大きさ等を適宜補正することができ
る。
According to the above structure, the chromaticity (R, G) of two specific colors, for example, red and green, is calculated from the pixel outputs (r, g, b) of the three colors of red, green and blue. From this, specific color information, such as the skin color of the hand / finger, is detected and determined. It is possible to detect the size and the like of the document based on this discrimination output, and appropriately correct the size and the like of the captured document image based on this information.

【0006】[0006]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。図1は撮影台型の文書入力装置1の
外観構成を示す。本装置1は、原稿が載置される原稿台
3と、その上方に配置された撮像部2と、異常時に警報
を発するブザー4と、撮影しようとする原稿の画像を一
時的に表示するディスプレイ5と、操作スイッチ6と、
フットスイッチ7と、入力した画像を印刷出力するプリ
ンタ8と、信号処理部9と、入力された画像情報を記憶
する記憶装置10とより構成される。原稿台3におかれ
た原稿は、操作スイッチ6がONされることにより撮像
部2で撮影される。撮影された画像は電気記号に変換さ
れて信号処理部9に送られ適当な処理を受けた後、プリ
ンタ8にて印刷することができ、また、記憶装置10に
記録することもできる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows an external configuration of a photographing table type document input device 1. The apparatus 1 includes a document table 3 on which a document is placed, an image pickup section 2 arranged above the document table, a buzzer 4 for issuing an alarm when an abnormality occurs, and a display for temporarily displaying an image of the document to be captured. 5, operation switch 6,
It is composed of a foot switch 7, a printer 8 that prints out an input image, a signal processing unit 9, and a storage device 10 that stores the input image information. The document placed on the document table 3 is photographed by the imaging unit 2 when the operation switch 6 is turned on. The photographed image can be printed on the printer 8 after being converted into an electrical symbol and sent to the signal processing unit 9 for appropriate processing, and can also be recorded on the storage device 10.

【0007】図2は、撮影部内に納められているセンサ
部とレンズによる撮像系の光路を示す。センサ部11は
CCD等でなる撮像用のラインセンサ及び肌色検出用の
ラインセンサとレンズ12よりなる。このセンサ部11
を図の矢印方向にスキャンすることにより、領域13を
撮影することができるようになっている。
FIG. 2 shows an optical path of an image pickup system including a sensor unit and a lens housed in the photographing unit. The sensor unit 11 includes a line sensor for image pickup and a line sensor for skin color detection, which is formed of a CCD or the like, and a lens 12. This sensor unit 11
The area 13 can be photographed by scanning in the direction of the arrow in the figure.

【0008】図3は、原稿台を真上から見た撮影時の様
子を示している。原稿台上の撮影可能領域13内に原稿
14が載置される。原稿台上の撮影可能領域13中央に
は原稿サイズ検知センサ15が設けられている。原稿1
4はその上端を撮影可能領域13の上端に合わせ、中心
を原稿サイズ検知センサ15に合わせて載置され、オペ
レータの手16で押さえられている。原稿サイズ検知セ
ンサ15はSPCアレイ等で構成され、原稿14が載置
されている部分はSPCに入射する光が遮断されるの
で、各SPCの出力をチェックすることにより、主走査
方向の原稿の大きさが分かる。一方、副走査方向の各ラ
イン毎に手の一部が含まれているかどうかを検出するこ
とにより、副走査方向の原稿の大きさが分かる。即ち、
手16の一部が全く含まれていない範囲が副走査方向の
原稿範囲である。
FIG. 3 shows a state in which the original table is photographed from directly above. A document 14 is placed in the photographable area 13 on the document table. A document size detection sensor 15 is provided at the center of the imageable area 13 on the document table. Manuscript 1
4 is placed with its upper end aligned with the upper end of the photographable area 13 and with its center aligned with the document size detection sensor 15, and is held by the operator's hand 16. The document size detection sensor 15 is composed of an SPC array or the like, and the light incident on the SPC is blocked at the portion where the document 14 is placed. Therefore, by checking the output of each SPC, the document in the main scanning direction can be detected. I know the size. On the other hand, the size of the document in the sub-scanning direction can be known by detecting whether or not a part of the hand is included in each line in the sub-scanning direction. That is,
A range that does not include any part of the hand 16 is the document range in the sub-scanning direction.

【0009】図4はセンサ部11の構成を示す。撮影用
モノクロラインCCD20と、肌色検出用カラーライン
CCD21とが、副走査方向に距離lをおいて基板22
上に平行に配置されている。この基板22は副走査方向
に駆動される。モノクロCCD20において、D1〜D
wは暗出力モニタ用画素、Y1〜Yxは撮影用画素であ
る。カラーCCD21において、Dc1〜Dcuは暗出
力モニタ用画素、g1〜gv、b1〜bv、r1〜rv
はそれぞれ緑、青、赤の画素である。図5はCCD2
0,21のスキャンの様子を示す。CCD20,21が
スキャンしレンズ12を通して斜線部分23,24を撮
影する。CCD20,21は距離lをおいて平行に設置
されているので、撮影部分23,24の間も距離Lだけ
離れる。また、CCD20,21は矢印方向にスキャ
ンするので、撮影部分23,24は矢印方向に動く。
FIG. 4 shows the structure of the sensor section 11. The monochrome line CCD 20 for photographing and the color line CCD 21 for skin color detection are separated by a distance l in the sub-scanning direction from the substrate 22.
They are arranged in parallel above. The substrate 22 is driven in the sub scanning direction. In the monochrome CCD 20, D1 to D
w is a dark output monitor pixel, and Y1 to Yx are shooting pixels. In the color CCD 21, Dc1 to Dcu are dark output monitor pixels, g1 to gv, b1 to bv, and r1 to rv.
Are green, blue and red pixels, respectively. Figure 5 shows CCD2
The states of 0 and 21 scans are shown. The CCDs 20 and 21 scan to photograph the shaded portions 23 and 24 through the lens 12. Since the CCDs 20 and 21 are installed in parallel at a distance l, the photographing portions 23 and 24 are also separated by the distance L. Further, since the CCDs 20 and 21 scan in the arrow direction, the photographing parts 23 and 24 move in the arrow direction.

【0010】次に、撮影用モノクロラインCCD20で
撮影された画像データの処理構成と処理の流れについて
図6乃至図8のブロック図を用いて説明する。CCD2
0の画像データは暗出力モニタ用画素D1〜Dw、撮影
用画素Y1〜Yxの順に読み出され,まず最初に読み出
される暗出力モニタ用画素D1〜Dwの出力のうちの1
つを確定し、サンプルホールド(S/H)回路30にホ
ールドし、暗出力レベルを決める。次に、撮影用画素Y
1〜Yxが順に読み出され、先に確定した暗出力レベル
とともに、差動アンプ31に入力され、真の信号成分だ
けが増幅されて出力される。差動アンプ31のアナログ
出力は、A/D変換器32に入力され、ディジタルデー
タに変換されてラッチ回路33にラッチされる。
Next, the processing configuration and the flow of processing of image data photographed by the photographing monochrome line CCD 20 will be described with reference to the block diagrams of FIGS. 6 to 8. CCD2
The image data of 0 is read out in the order of the dark output monitor pixels D1 to Dw and the imaging pixels Y1 to Yx, and one of the outputs of the dark output monitor pixels D1 to Dw that is read first.
Is determined and held in the sample hold (S / H) circuit 30 to determine the dark output level. Next, the shooting pixel Y
1 to Yx are sequentially read and input to the differential amplifier 31 together with the previously determined dark output level, and only the true signal component is amplified and output. The analog output of the differential amplifier 31 is input to the A / D converter 32, converted into digital data, and latched by the latch circuit 33.

【0011】このラッチデータは乗算器35に送られ
る。ROM34には、CCD20の画素毎のシェーディ
ング補正係数が記憶されており、乗算器35に与えられ
る。これにより乗算器35においてラッチ回路33から
のデータはシェーディング補正される。シェーディング
補正されたデータは、ラッチ回路36を経て、γ変換回
路37で下地除去及び電子写真出力として好ましくなる
ようなγ変換をされる。このγ変換された出力は、ラッ
チ回路38を経て、対数変換回路39に入力される。こ
の対数変換回路39では、CCD20のデータを対数変
換して反射濃度データに変換する。反射濃度に変換され
たデータは、ラッチ回路40を経て主走査方向補正回路
42に送られる。原稿サイズ検出回路41は、図3の原
稿サイズ検知センサ15の出力をもとに、主走査方向の
原稿サイズを検出する回路で、この検出結果が主走査方
向補正回路42に送られる。同補正回路42では原稿サ
イズ検出回路41からの出力をもとにラッチ回路40か
らの画像データを補正する。補正の内容は例えば、主走
査方向の原稿外の領域に対応する画像データを全て白色
に相当するデータに置き換えるといったようなことであ
る。
This latch data is sent to the multiplier 35. The shading correction coefficient for each pixel of the CCD 20 is stored in the ROM 34, and is provided to the multiplier 35. As a result, the data from the latch circuit 33 is shading-corrected in the multiplier 35. The shading-corrected data is passed through the latch circuit 36 and is subjected to γ-conversion in a γ-conversion circuit 37 so as to be suitable for background removal and electrophotographic output. The γ-converted output is input to the logarithmic conversion circuit 39 via the latch circuit 38. The logarithmic conversion circuit 39 logarithmically converts the data of the CCD 20 into reflection density data. The data converted into the reflection density is sent to the main scanning direction correction circuit 42 via the latch circuit 40. The document size detection circuit 41 is a circuit for detecting the document size in the main scanning direction based on the output of the document size detection sensor 15 of FIG. 3, and the detection result is sent to the main scanning direction correction circuit 42. The correction circuit 42 corrects the image data from the latch circuit 40 based on the output from the document size detection circuit 41. The contents of the correction include, for example, replacing all the image data corresponding to the area outside the document in the main scanning direction with data corresponding to white.

【0012】主走査方向補正回路42からのデータはラ
ッチ回路43を経て肌色領域補正回路45に送られる。
肌色領域検出回路44は、その詳細構成は後述するが、
この検出回路44では撮影領域内の肌色領域が検出さ
れ、この検出結果が肌色領域補正回路45に送られる。
同補正回路45でラッチ回路43からの画像データが補
正される。補正の内容は例えば、肌色領域に対応する画
像データを全て白色に相当するデータに置き換えると
か、あるいは副走査方向各ライン毎に肌色領域に対応す
る画素が1つでもあればそのラインの全データを白色に
相当するデータに置き換えるとかいったようなことであ
る。肌色領域補正回路45からの出力は、ラインバッフ
ァ46,47で2ライン分保存される。そして、これら
肌色領域補正回路45、ラインバッファ46,47の出
力は3×3フィルタ48に入力される。同フィルタ48
ではエッジ強調、あるいは平滑化といったいわゆるMT
F補正を行う。同フィルタ48でMTF補正されたデー
タは、ラッチ回路49を経てレーザビームプリンタ(L
BP)コントローラ50に送られプリントされる。
The data from the main scanning direction correction circuit 42 is sent to the flesh color region correction circuit 45 via the latch circuit 43.
The skin color region detection circuit 44 will be described in detail later, but
The detection circuit 44 detects the skin color area in the photographing area, and the detection result is sent to the skin color area correction circuit 45.
The correction circuit 45 corrects the image data from the latch circuit 43. The contents of the correction include, for example, replacing all the image data corresponding to the skin color area with data corresponding to white, or if there is at least one pixel corresponding to the skin color area for each line in the sub-scanning direction, the entire data of that line is It is like replacing it with data corresponding to white. The output from the flesh color area correction circuit 45 is stored for two lines in the line buffers 46 and 47. The outputs of the skin color area correction circuit 45 and the line buffers 46 and 47 are input to the 3 × 3 filter 48. Same filter 48
Then, so-called MT such as edge enhancement or smoothing
Perform F correction. The data subjected to the MTF correction by the filter 48 passes through the latch circuit 49 and the laser beam printer (L
It is sent to the BP) controller 50 and printed.

【0013】次に、肌色検出の原理について説明する。
カラーCCD21からの赤、緑、青出力をそれぞれr、
g、bとすれば、赤及び緑の色度R、Gは次式で求ま
る。 R=r/(r+g+b) G=g/(r+g+b) 図9はR−G色度図上において、肌色領域(斜線部)と
白い紙の領域(ドット部)を示したものである。図9か
ら明らかなように、R−G色度図上では肌色及び白い紙
の領域は重ならない。従って、カラーCCD21からの
出力データをR、G色度データに変換し、その値がある
適当な範囲内にあるかどうかを調べれば、そのデータが
肌色であるかどうかが分かるわけである。
Next, the principle of skin color detection will be described.
The red, green, and blue outputs from the color CCD 21 are r,
If g and b are used, the chromaticities R and G of red and green can be obtained by the following equations. R = r / (r + g + b) G = g / (r + g + b) FIG. 9 shows a flesh color region (hatched portion) and a white paper region (dot portion) on the RG chromaticity diagram. As is clear from FIG. 9, the areas of skin color and white paper do not overlap on the RG chromaticity diagram. Therefore, by converting the output data from the color CCD 21 into R and G chromaticity data and checking whether the values are within a proper range, it is possible to know whether the data is flesh color.

【0014】以下、図10乃至図12のブロック図を用
いて肌色検出の具体的構成と方法について説明する。本
実施例では赤、緑、青6画素を1ブロックとしてブロッ
ク毎に肌色の判定を行う。従って、第nブロックの色度
Rn、Gnは次式で求める。
The specific structure and method of skin color detection will be described below with reference to the block diagrams of FIGS. In this embodiment, the flesh color is determined for each block with 6 pixels of red, green and blue as one block. Therefore, the chromaticities Rn and Gn of the nth block are calculated by the following equations.

【数1】 [Equation 1]

【0015】ここに、n=1,2,3,・・・vであ
る。CCD21の出力データは、画素Dc1〜Dcu,
g1,b1,r1〜gv、bv、rvの順に読み出され
る。まず、最初に読み出される画素Dc1〜Dcuのう
ち1つをサンプルホールド(S/H)回路60にホール
ドし、暗出力レベルを決める。次に、画素g1,b1,
r1〜gv,bv,rvが順に読み出され、セレクタ6
1で色別に差動アンプ62〜64に入力される。差動ア
ンプ62〜64では、S/H回路60にホールドされて
いる暗出力と、セレクタ61からの色出力との差を増幅
し、真の信号分をセレクタ65に出力する。セレクタ6
5でアンプ62〜64からの出力を順次選び、A/D変
換器66に入力する。A/D変換器66でディジタルデ
ータに変換された色データは、ラッチ回路67にラッチ
される。
Here, n = 1, 2, 3, ... V. The output data of the CCD 21 includes pixels Dc1 to Dcu,
g1, b1, r1 to gv, bv, and rv are read in this order. First, one of the pixels Dc1 to Dcu read out first is held in the sample hold (S / H) circuit 60, and the dark output level is determined. Next, the pixels g1, b1,
r1 to gv, bv, and rv are sequentially read, and the selector 6
When it is 1, it is input to the differential amplifiers 62 to 64 for each color. The differential amplifiers 62 to 64 amplify the difference between the dark output held in the S / H circuit 60 and the color output from the selector 61, and output a true signal component to the selector 65. Selector 6
The outputs from the amplifiers 62 to 64 are sequentially selected at 5 and input to the A / D converter 66. The color data converted into digital data by the A / D converter 66 is latched by the latch circuit 67.

【0016】ラッチ回路67にラッチされているデータ
は乗算器69に送られる。ROM68には、CCD21
の画素毎のシェーディング補正係数が記憶されており、
乗算器69に与えられる。これにより、乗算器69にお
いてラッチ回路67から送られたデータは、シェーディ
ング補正される。乗算器69からのデータは、ラッチ回
路70〜75にデータ別にラッチされる。即ち、r(2
n−1)はラッチ70に、r2nはラッチ回路71に、
g(2n−1)はラッチ回路72に、g2nはラッチ回
路73に、b(2n−1)はラッチ回路74に、b2n
はラッチ回路75にそれぞれラッチされる。ここにr,
g,bとその後の括弧書は、便宜上の表記であり、上記
数1に示したものと同等物である。これは、各ラッチ回
路に入力されるラッチイネーブルパルスを制御すること
により達成される。ラッチ回路70〜75にラッチされ
たデータは加算器76〜78に送られ、色別に加算さ
れ、赤及び緑の加算結果はそれぞれラッチ回路79、8
0にラッチされる。
The data latched in the latch circuit 67 is sent to the multiplier 69. In the ROM 68, the CCD 21
The shading correction coefficient for each pixel of is stored,
It is given to the multiplier 69. As a result, the data sent from the latch circuit 67 in the multiplier 69 is shading-corrected. The data from the multiplier 69 is latched by the latch circuits 70 to 75 for each data. That is, r (2
n-1) is in the latch 70, r2n is in the latch circuit 71,
g (2n-1) is in the latch circuit 72, g2n is in the latch circuit 73, b (2n-1) is in the latch circuit 74, and b2n.
Are respectively latched by the latch circuit 75. Where r,
The letters “g” and “b” and the parentheses after that are notations for the sake of convenience, and are equivalent to those shown in the above mathematical expression 1. This is achieved by controlling the latch enable pulse input to each latch circuit. The data latched by the latch circuits 70 to 75 are sent to the adders 76 to 78 and added for each color. The addition results of red and green are respectively latch circuits 79 and 8.
Latched to 0.

【0017】加算器81には加算器78及びラッチ回路
80からの出力が入力され、緑と青出力の加算が行われ
る。さらに、その結果、及びラッチ回路79の出力が加
算器82に入力され、赤出力が加算される。加算器82
で6画素全ての加算が終了し、その結果がラッチ回路8
3を経て、ROM84に入力される。ROM84では入
力デ−タの逆数が出力されるようになっており、この出
力がラッチ回路85を経て、乗算器86に送られる。こ
の乗算器86のもう一方の入力はラッチ回路79及び8
0の出力で、ラッチ回路79,80の出力イネーブルパ
ルスを制御して別々に乗算器86に入力する。乗算器8
6で色度Rn、Gnが計算され、その結果が色別にラッ
チ回路87,88に送られ、それぞれ比較器90,91
に入力される。
The outputs from the adder 78 and the latch circuit 80 are input to the adder 81, and the green and blue outputs are added. Further, the result and the output of the latch circuit 79 are input to the adder 82, and the red output is added. Adder 82
Then, the addition of all 6 pixels is completed, and the result is the latch circuit 8
It is input to the ROM 84 via the data item 3. The ROM 84 outputs the reciprocal of the input data, and this output is sent to the multiplier 86 via the latch circuit 85. The other input of the multiplier 86 is the latch circuits 79 and 8
With the output of 0, the output enable pulses of the latch circuits 79 and 80 are controlled and separately input to the multiplier 86. Multiplier 8
The chromaticities Rn and Gn are calculated at 6, and the results are sent to the latch circuits 87 and 88 for each color, and the comparators 90 and 91 are respectively provided.
Entered in.

【0018】比較器90,91の各比較データはROM
89に納められている。比較器90,91で各色別デー
タが肌色領域内にあるかどうかを判別し、領域内であれ
ばハイ(High)(真)を出力する。比較器90,9
1の出力はAND回路92で論理積がとられ、結果とし
て演算しているブロックが肌色であればHigh、そう
でなければロウ(Low)として出力される。AND回
路92の出力はラインバッファ93,94で2ライン分
保存される。そして、AND回路92、ラインバッファ
93,94の出力は9個の3×3フィルタ95−1〜9
5−9に入力されフィルタ処理される。このフィルタ処
理は、誤判別の修正を行うもので、特に原稿上で肌色の
部分とそうでない部分との境界付近での誤判別に対する
ものである。
The comparison data of the comparators 90 and 91 are stored in the ROM.
It is stored in 89. The comparators 90 and 91 determine whether or not each color-specific data is within the skin color area, and if it is within the area, output high (true). Comparators 90, 9
The output of 1 is logically ANDed by the AND circuit 92, and as a result, it is output as High if the block being calculated is flesh color, and is output as Low otherwise. The output of the AND circuit 92 is stored in the line buffers 93 and 94 for two lines. The outputs of the AND circuit 92 and the line buffers 93 and 94 are nine 3 × 3 filters 95-1 to 9-9.
Input to 5-9 and filtered. This filtering process corrects misjudgment, and is particularly for misjudgment in the vicinity of the boundary between the flesh-colored portion and the other portion on the document.

【0019】図13、図14は上記誤判別の修正の方法
を示すものである。斜線部は肌色ブロックであることを
示す。中心のブロックについて周囲8ブロックの肌色情
報が図13の8種類のうち少なくとも1つに該当すれ
ば、その中心ブロックは、肌色ブロックであるとする。
一方、図14のように周囲8ブロックが肌色ブロックで
なければ、中心ブロックは肌色ブロックでないとする。
13 and 14 show a method of correcting the above-mentioned misjudgment. The shaded area indicates a skin color block. If the flesh color information of the eight blocks around the central block corresponds to at least one of the eight types in FIG. 13, the central block is determined to be the flesh color block.
On the other hand, as shown in FIG. 14, if the surrounding 8 blocks are not skin color blocks, the central block is not a skin color block.

【0020】再び、図12に戻り説明すると、フィルタ
95−1〜9の出力は、演算しているブロックが肌色な
らHigh、そうでなければLowとなるようになって
おり、それらはOR回路96で論理和がとられ、最終的
な肌色判別の結果が得られる。OR回路96の出力はバ
ッファ97に一時記憶され、適当なタイミングで肌色領
域補正回路45に出力される。以上の実施例では、カラ
ーCCD21がまずスキャンし、少し遅れて同じ部分を
撮影用CCD20がスキャンするような構成になってい
る。従って、肌色情報が常に先に得られるので、リアル
タイムで撮影データに補正がかけられる。
Returning to FIG. 12 again, the outputs of the filters 95-1 to 95-9 are set to High if the block being operated is flesh color, and set to Low otherwise. Then, the logical sum is taken, and the final result of skin color discrimination is obtained. The output of the OR circuit 96 is temporarily stored in the buffer 97, and is output to the skin color region correction circuit 45 at an appropriate timing. In the above embodiment, the color CCD 21 scans first, and the photographing CCD 20 scans the same portion with a slight delay. Therefore, since the skin color information is always obtained first, the photographed data can be corrected in real time.

【0021】図15は、画像領域に手や指が置かれた時
に警告を発するようにした実施例のブロック構成を示
す。図15において、撮影用CCD20で撮影された画
像デ−タは、図6乃至図8で述べた信号処理回路を経て
プリンタ103に送られる。一方、カラーCCD21で
撮影された色データは図10乃至図12で述べた肌色領
域検出回路44に送られ、肌色領域の検出を行い、その
結果が信号処理回路101に送られる。また、カラーC
CD21のデータは画像領域検出回路100にも送られ
る。
FIG. 15 shows a block configuration of an embodiment in which a warning is issued when a hand or a finger is placed on the image area. In FIG. 15, the image data photographed by the photographing CCD 20 is sent to the printer 103 via the signal processing circuit described in FIGS. On the other hand, the color data photographed by the color CCD 21 is sent to the skin color area detection circuit 44 described with reference to FIGS. 10 to 12, the skin color area is detected, and the result is sent to the signal processing circuit 101. Also, color C
The data of the CD 21 is also sent to the image area detection circuit 100.

【0022】原稿として文字原稿を想定した場合、r、
g、bの出力がほぼ等しく出力値が小さい(輝度が低
い)領域は原稿が黒である、即ち文字の部分であるとい
うことになる。従って、画像領域検出回路100では副
走査方向のライン毎に上に述べたような文字領域がある
かどうかを検出する。肌色領域及び文字領域の検出結果
は領域重なり判定回路102に送られる。同判定回路1
02では両者の領域が重なっているかどうかを判定し、
重なっている場合にはブザー4を鳴らしオペレータに警
告する。これにより、原稿内の画像部分を手で押さえる
ことが防止される。なお、警告はブザーに限らずLED
を光らせる等でもよい。
When a character original is assumed as the original, r,
An area in which the outputs g and b are substantially equal and the output value is small (the luminance is low) means that the original is black, that is, the portion of the character. Therefore, the image area detection circuit 100 detects whether or not there is a character area as described above for each line in the sub-scanning direction. The detection results of the skin color area and the character area are sent to the area overlap determination circuit 102. Same determination circuit 1
In 02, it is judged whether or not both areas overlap,
If they overlap, the buzzer 4 is sounded to warn the operator. As a result, it is possible to prevent the image portion in the document from being pressed by hand. The warning is not limited to the buzzer but LED
May be made to shine.

【0023】なお、本発明は上記実施例構成に限られず
種々の変形が可能である。例えば、カラーCCD21と
撮影用CCD20とは、必ずしも同一光学系である必要
はなく、両CCDの撮影している領域の位置関係さえ分
かっていればよい。両CCDはラインセンサに限られ
ず、マルチラインやエリア型のセンサでもよい。カラー
CCD21は3板式、フィルタ切換え式のものでもよ
く、要は、r,g,bの出力が得られるものであればよ
い。
The present invention is not limited to the configuration of the above embodiment, and various modifications can be made. For example, the color CCD 21 and the photographing CCD 20 do not necessarily have to have the same optical system, and it suffices that the positional relationship between the photographing regions of both CCDs is known. Both CCDs are not limited to line sensors and may be multi-line or area type sensors. The color CCD 21 may be of a three-plate type or a filter switching type, as long as it can output r, g, and b.

【0024】また、オペレータの原稿を押さえる手、指
に特定色の手袋或いは指サックを被せ、その色度値によ
り手、指の検出を行うようにしてもよい。こうすること
により、肌色に近い色度値を有する原稿を撮影する場合
に生じる誤認識を防ぐことができる。また、カラーCC
Dの代わりに、赤外線ラインセンサを用い、人体の発す
る赤外線を検出し、手、指の検出を行うようにしてもよ
い。これにより、写真やカラー印刷等の撮影時に誤認識
を防ぐことができる。
It is also possible to cover the hand or finger of the operator's original with gloves of a specific color or finger sack, and detect the hand or finger based on the chromaticity value. By doing so, it is possible to prevent erroneous recognition that occurs when a document having a chromaticity value close to skin color is photographed. Also, color CC
Instead of D, an infrared line sensor may be used to detect infrared rays emitted by the human body to detect hands and fingers. As a result, it is possible to prevent erroneous recognition at the time of photographing such as photographs and color printing.

【0025】[0025]

【発明の効果】以上のように本発明によれば、原稿を上
方から撮影する場合において、特定色の検出結果をもと
に撮像出力を補正するようにしているので、特定色とし
て手・指の肌色を検出することにより、原稿を押さえる
手・指の情報を削除して美しい出力が得られる。また、
任意の大きさの原稿に対しても有効領域の大きさを検出
し、入力エリアを変化させることができる。また、原稿
中の不要部分を手、指で覆うことにより、その情報を消
去することができる。
As described above, according to the present invention, when the original is photographed from above, the image pickup output is corrected based on the detection result of the specific color. By detecting the skin color of, the information of the hand / finger holding the document can be deleted and a beautiful output can be obtained. Also,
The input area can be changed by detecting the size of the effective area even for a document of an arbitrary size. Further, by covering unnecessary portions of the document with hands and fingers, the information can be erased.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例による撮影台型の文書入力装
置の外観図である。
FIG. 1 is an external view of a shooting table type document input device according to an embodiment of the present invention.

【図2】同装置の撮影部内に納められているセンサ部と
撮像系の光路を示す図である。
FIG. 2 is a diagram showing an optical path of a sensor unit and an image pickup system housed in a photographing unit of the apparatus.

【図3】原稿台を真上から見た撮影時の様子を示す図で
ある。
FIG. 3 is a diagram showing a state at the time of shooting when the document table is viewed from directly above.

【図4】センサ部の構成を示す図である。FIG. 4 is a diagram showing a configuration of a sensor unit.

【図5】CCDのスキャンの様子を示す図である。FIG. 5 is a diagram showing how a CCD is scanned.

【図6】撮影用CCDで撮影された画像データの処理の
ためのブロック構成図である。
FIG. 6 is a block configuration diagram for processing image data photographed by a photographing CCD.

【図7】同ブロック構成図である。FIG. 7 is a block configuration diagram of the same.

【図8】同ブロック構成図である。FIG. 8 is a block configuration diagram of the same.

【図9】R−G色度図上において肌色領域と白い紙の領
域を示す図である。
FIG. 9 is a diagram showing a skin color region and a white paper region on the RG chromaticity diagram.

【図10】肌色検出のための具体的ブロック構成図であ
る。
FIG. 10 is a specific block configuration diagram for skin color detection.

【図11】同ブロック構成図である。FIG. 11 is a block configuration diagram of the same.

【図12】同ブロック構成図である。FIG. 12 is a block configuration diagram of the same.

【図13】誤判別の修正の方法を示す図である。FIG. 13 is a diagram showing a method of correcting misjudgment.

【図14】誤判別の修正の方法を示す図である。FIG. 14 is a diagram illustrating a method of correcting misjudgment.

【図15】画像領域に手や指が置かれた時に警告を発す
るようにした実施例のブロック構成図である。
FIG. 15 is a block diagram of an embodiment in which a warning is issued when a hand or a finger is placed on an image area.

【符号の説明】[Explanation of symbols]

20 撮影用モノクロラインCCD(第2の撮像手段) 21 肌色検出用カラーラインCCD(第1の撮像手
段) 44 肌色領域検出回路 45 肌色領域補正回路
20 Monochrome line CCD for image pickup (second image pickup means) 21 Color line CCD for skin color detection (first image pickup means) 44 Skin color region detection circuit 45 Skin color region correction circuit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 中村 里之 大阪市中央区安土町二丁目3番13号 大阪 国際ビル ミノルタカメラ株式会社内 (72)発明者 水口 淳 大阪市中央区安土町二丁目3番13号 大阪 国際ビル ミノルタカメラ株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Satoyuki Nakamura 2-33 Azuchi-cho, Chuo-ku, Osaka City Osaka International Building Minolta Camera Co., Ltd. (72) Atsushi Mizuguchi 2-chome, Azuchi-cho, Chuo-ku, Osaka-shi 3-13 No. 13 Osaka International Building Minolta Camera Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 原稿台上に置かれた原稿を撮影し、赤,
緑,青の三色の画素出力を得る第1の撮像手段と、撮像
したこれら赤、緑、青の三色の画素出力から特定の二色
の色度を演算する演算手段と、この二つの色度から撮像
した画素出力が特定色であるかどうかを判別する判別手
段と、前記原稿を撮影する第2の撮像手段と、上記判別
手段の出力をもとに前記第2の撮像手段からの出力を補
正する補正手段とを備えたことを特徴とする撮影台型入
力装置。
1. A document placed on a platen is photographed and red,
A first image pickup means for obtaining pixel outputs of the three colors of green and blue, a calculation means for calculating chromaticity of specific two colors from the imaged pixel outputs of the three colors of red, green and blue, and these two Based on the output of the discriminating means, the discriminating means for discriminating whether or not the pixel output captured based on the chromaticity is a specific color, the second image capturing means for photographing the document, and the second image capturing means An imaging stand type input device comprising: a correction unit that corrects an output.
JP3348001A 1991-12-02 1991-12-02 Photographing base type input device Withdrawn JPH06105091A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP3348001A JPH06105091A (en) 1991-12-02 1991-12-02 Photographing base type input device
US07/983,672 US5377019A (en) 1991-12-02 1992-12-01 Document reading apparatus having a function of determining effective document region based on a detected data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3348001A JPH06105091A (en) 1991-12-02 1991-12-02 Photographing base type input device

Publications (1)

Publication Number Publication Date
JPH06105091A true JPH06105091A (en) 1994-04-15

Family

ID=18394070

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3348001A Withdrawn JPH06105091A (en) 1991-12-02 1991-12-02 Photographing base type input device

Country Status (1)

Country Link
JP (1) JPH06105091A (en)

Similar Documents

Publication Publication Date Title
US5377019A (en) Document reading apparatus having a function of determining effective document region based on a detected data
US7035462B2 (en) Apparatus and method for processing digital images having eye color defects
EP1496687A1 (en) Digital camera
JP5087936B2 (en) camera
JPS6113867A (en) Area designation system
JPS60154244A (en) Photographic image information detector
JP2000188417A (en) Three-color linear image sensor
JPH06105091A (en) Photographing base type input device
JP3501960B2 (en) Image display control apparatus and method
JP2956377B2 (en) Image reading device
JPH10108033A (en) Scanner and interpolation picture element generation method therefor
EP1553757A1 (en) Digital camera
JP3020596B2 (en) Color image processing apparatus and method
JP3051474B2 (en) Color image reading device
JPH0698168A (en) Picture reader
EP1496688A1 (en) Digital camera
JP2001148762A (en) Device and method for reading image, and storage medium
KR100338073B1 (en) Color Image Scanning Method Using Mono Image Sensor
JP3813713B2 (en) Image processing device
JP2003110801A (en) Image reader
JPH10210353A (en) Digital camera
JPH02295394A (en) Color picture input device
JPH10210352A (en) Digital camera
JPS60220325A (en) Detection for photographic picture information
JP2004328132A (en) Image pickup device, image processing device and image processing program

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990311