[go: up one dir, main page]

JPH07123256A - Binarization device - Google Patents

Binarization device

Info

Publication number
JPH07123256A
JPH07123256A JP4312913A JP31291392A JPH07123256A JP H07123256 A JPH07123256 A JP H07123256A JP 4312913 A JP4312913 A JP 4312913A JP 31291392 A JP31291392 A JP 31291392A JP H07123256 A JPH07123256 A JP H07123256A
Authority
JP
Japan
Prior art keywords
image
density
black
threshold value
image pickup
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.)
Pending
Application number
JP4312913A
Other languages
Japanese (ja)
Inventor
Kazuto Yamamoto
一人 山本
Takeshi Kato
剛 加藤
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP4312913A priority Critical patent/JPH07123256A/en
Publication of JPH07123256A publication Critical patent/JPH07123256A/en
Pending legal-status Critical Current

Links

Landscapes

  • Picture Signal Circuits (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

(57)【要約】 【目的】 視覚的に最適な濃度の画像が得られるように
する。 【構成】 画像読取り部100における撮像レンズ2の
結像範囲内に離間して三つの読み取りポイントを決定
し、各ポイントでの画像信号1ライン分の読み取りを行
う。そして、各ポイントにおける黒字ビットの数を計数
した後、黒字積分値に対する黒字率を求める。そして、
黒字率に対する閾値の補正値を示す特性より、求めた黒
字率に対する閾値データを決定し、この閾値データを階
調制御および2値化回路25に供給する。これにより、
現在の被写体に対して視覚的に最適な濃度の画像を得る
ことができる。
(57) [Summary] [Purpose] To obtain an image with visually optimum density. [Structure] Three reading points are set apart from each other within the image forming range of the imaging lens 2 in the image reading unit 100, and one line of image signal is read at each point. Then, after counting the number of surplus bits at each point, the surplus ratio with respect to the surplus integration value is obtained. And
The threshold data for the obtained black character ratio is determined from the characteristic indicating the threshold correction value for the black character ratio, and this threshold data is supplied to the gradation control and binarization circuit 25. This allows
It is possible to obtain an image with a visually optimum density for the current subject.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、2値化装置に係わり、
例えばラインCCDを用いて空間走査を行い、被写体を
撮像する走査型の電子撮像装置に用いて好適な2値化装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binarization device,
For example, the present invention relates to a binarization device suitable for use in a scanning electronic image pickup device that performs spatial scanning using a line CCD and picks up an image of a subject.

【0002】[0002]

【従来の技術】一般に、2値化装置は画像信号等の処理
を行う分野に多く使われており、例えば、電子撮像装置
にも使用されている。一方、近時、ラインCCDを用い
て被写体を走査して撮像する走査型の電子撮像装置(通
称、立体コピー装置)が開発されており、この装置を用
いて、例えば黒板に書かれた文字情報等をその場で撮影
し、直ちにプリントアウトして出力することが行われて
いる。電子黒板と異なり、電子撮像装置を使用すると、
通常の黒板でもその文字情報等を印字できるもので、極
めて便利なものである。
2. Description of the Related Art Generally, a binarizing device is often used in the field of processing image signals and the like, and is also used in an electronic image pickup device, for example. On the other hand, recently, a scanning type electronic imaging device (commonly called a stereoscopic copying device) that scans an image of a subject using a line CCD has been developed, and using this device, for example, character information written on a blackboard. It is being performed that the images are taken on the spot and printed out immediately for output. Unlike an electronic blackboard, using an electronic imaging device
It is extremely convenient because the character information can be printed even on an ordinary blackboard.

【0003】ところで、2値化装置を用いた従来の電子
撮像装置では、ラインCCDより読み取った映像信号に
対してAGC回路により映像信号のレベルが一定になる
ように制御して濃度のバラツキを抑えるようにしてい
る。
By the way, in a conventional electronic image pickup device using a binarization device, the AGC circuit controls the video signal read from the line CCD so that the level of the video signal becomes constant, thereby suppressing variations in density. I am trying.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述し
た従来の電子撮像装置にあっては、図8の波形図に示す
ように、蛍光灯等の光源があるラインでは高輝度な映像
信号レベルを基準としてAGCが動作してしまうので、
他の映像信号レベルが下がることから全体的に黒く沈ん
だ画像になってしまう。また、図9の波形図に示すよう
に、明暗の少ない被写体を撮像した場合には全体的に映
像信号レベルが上がることから、白く飛んだ画像になっ
てしまう。
However, in the above-mentioned conventional electronic image pickup device, as shown in the waveform diagram of FIG. 8, a line having a light source such as a fluorescent lamp is used as a reference for a high-luminance video signal level. As AGC will operate as
Since the other video signal levels are lowered, the image becomes black as a whole. Further, as shown in the waveform diagram of FIG. 9, when a subject with little light and shade is imaged, the image signal level rises overall, resulting in a white-blown image.

【0005】このように2値化装置を用いた従来の電子
撮像装置には、露光の状態により全体的に黒の多い画像
になったり、または白の多い画像になったりして、実際
の被写体との視覚的な濃度の違いが生ずるという問題点
があった。
As described above, in the conventional electronic image pickup apparatus using the binarization apparatus, an image having a large amount of black or an image having a large amount of white is formed depending on the exposure state, and an actual object is obtained. There was a problem in that there was a visual difference in density.

【0006】そこで本発明は、視覚的に最適な濃度の画
像を得ることができる2値化装置を提供することを目的
としている。
Therefore, an object of the present invention is to provide a binarizing device capable of visually obtaining an image having optimum density.

【0007】[0007]

【課題を解決するための手段】上記目的達成のため、請
求項1記載の発明による2値化装置は、映像信号を所定
閾値で2値化する2値化手段と、この2値化手段により
2値化された映像信号の白あるいは黒の濃度を検出する
濃度検出手段と、この濃度検出手段により検出された白
あるいは黒の濃度に基づいて前記2値化手段の所定閾値
を設定する閾値設定手段とを有することを特徴とする。
In order to achieve the above object, a binarizing device according to the invention of claim 1 is a binarizing device for binarizing a video signal with a predetermined threshold value, and the binarizing device. Density detecting means for detecting the white or black density of the binarized video signal, and threshold setting for setting a predetermined threshold of the binarizing means based on the white or black density detected by the density detecting means. And means.

【0008】また、請求項2記載の発明による2値化装
置は、光学系により結像された被写体像を撮像する撮像
手段と、この撮像手段により撮像して得られた映像信号
を所定閾値で2値化する2値化手段と、この2値化手段
により2値化された映像信号の白あるいは黒の濃度を検
出する濃度検出手段と、この濃度検出手段により検出さ
れた白あるいは黒の濃度に基づいて前記2値化手段の所
定閾値を設定する閾値設定手段とを有することを特徴と
する。
According to the second aspect of the present invention, the binarizing device has an image pickup means for picking up a subject image formed by the optical system, and a video signal obtained by picking up the image by the image pickup means with a predetermined threshold value. Binarizing means for binarizing, density detecting means for detecting the density of white or black of the image signal binarized by the binarizing means, and white or black density detected by the density detecting means. Threshold setting means for setting a predetermined threshold of the binarizing means based on the above.

【0009】また、請求項3記載の発明による2値化装
置は、請求項2記載の発明による2値化装置の撮影手段
が、撮影面の複数の所定エリアを撮影する機能を有する
ものであることを特徴とする。
In the binarizing device according to the third aspect of the present invention, the photographing means of the binarizing device according to the second aspect has a function of photographing a plurality of predetermined areas on the photographing surface. It is characterized by

【0010】[0010]

【作用】請求項1記載の発明では、映像信号を所定閾値
で取り込んで2値化して白あるいは黒の濃度を検出す
る。そして、検出した白または黒の濃度に基づいて2値
化するための閾値を設定する。したがって、視覚的に最
適な濃度の画像を得ることができる。
According to the first aspect of the invention, the image signal is captured by a predetermined threshold value and binarized to detect the density of white or black. Then, a threshold for binarization is set based on the detected white or black density. Therefore, it is possible to obtain an image with the visually optimum density.

【0011】請求項2記載の発明では、撮像手段により
撮像して得られた映像信号を所定閾値で2値化して白あ
るいは黒の濃度を検出する。そして、検出した白あるい
は黒の濃度に基づい2値化するための閾値を新たに設定
する。したがって、上記同様に視覚的に最適な濃度の画
像を得ることができる。
According to the second aspect of the present invention, the image signal obtained by image pickup by the image pickup means is binarized by a predetermined threshold value to detect the density of white or black. Then, a threshold for binarization is newly set based on the detected white or black density. Therefore, similarly to the above, it is possible to obtain an image having a visually optimum density.

【0012】請求項3記載の発明では、請求項2記載の
発明の撮像手段を、撮影面の複数の所定エリアを撮影さ
せる。そして、撮影した複数の所定エリアの各々におけ
る映像信号を所定閾値で2値化して白あるいは黒の濃度
を検出する。そして、得られた各濃度に基づいて2値化
するための閾値を新たに設定する。したがって、サンプ
リングする点が増しただけ、さらに最適な濃度の画像を
得ることができる。
According to a third aspect of the invention, the image pickup means of the second aspect causes the plurality of predetermined areas on the image pickup surface to be photographed. Then, the video signal in each of the plurality of photographed predetermined areas is binarized by a predetermined threshold value to detect the density of white or black. Then, a threshold value for binarization is newly set based on each obtained density. Therefore, as the number of sampling points increases, it is possible to obtain an image with more optimal density.

【0013】[0013]

【実施例】以下、図面を参照して本発明の一実施例につ
いて説明する。図1は本発明に係る2値化装置を適用し
た電子撮像装置(通称、立体コピー装置)の外観図であ
る。図1において、1は電子撮像装置で、一定の大きさ
の直方体形状をなし、例えば携帯に便利なように小型化
されている。電子撮像装置1の前面側には撮像レンズ2
が配置されている。また、電子撮像装置1の上部表面の
操作面側にはビューファインダ3および操作部4が配置
されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is an external view of an electronic imaging device (commonly called a stereoscopic copying device) to which a binarizing device according to the present invention is applied. In FIG. 1, reference numeral 1 denotes an electronic image pickup apparatus, which has a rectangular parallelepiped shape of a certain size, and is miniaturized for convenience of carrying. An image pickup lens 2 is provided on the front side of the electronic image pickup apparatus 1.
Are arranged. A viewfinder 3 and an operation unit 4 are arranged on the operation surface side of the upper surface of the electronic image pickup apparatus 1.

【0014】ビューファインダ3は、対象とする被写体
の範囲を決めたりする場合などに、撮像者が覗いて被写
体を見る部分であり、撮像レンズ2を通してフォーカス
スクリーン(図示略)に結像された被写体は、このビュ
ーファインダ3から見ることができるようになってい
る。なお、撮像レンズ2からビューファインダ3を貫く
光軸上にAF(オートフォーカス機構)や一次元のイメ
ージセンサ(ラインCCD)が内蔵されている。
The viewfinder 3 is a portion where the photographer looks into the subject when determining the range of the subject, and the subject is focused on a focus screen (not shown) through the imaging lens 2. Can be seen from this viewfinder 3. An AF (autofocus mechanism) and a one-dimensional image sensor (line CCD) are built in on the optical axis penetrating the viewfinder 3 from the imaging lens 2.

【0015】操作部4は、撮像のために必要な各種の操
作を行う部分で、例えばシートスイッチによって構成さ
れ、「起動」、「撮像」、「印字」等の操作が可能にな
っている。電子撮像装置1の側方にはプリンタ部5が配
置されており、プリンタ部5は撮像面に結像した被写体
画像を熱転写によって印字して出力する。
The operation section 4 is a section for performing various operations necessary for image pickup, and is composed of, for example, a sheet switch, and can perform operations such as "start", "image pickup", and "print". A printer unit 5 is arranged beside the electronic image pickup apparatus 1, and the printer unit 5 prints and outputs the subject image formed on the image pickup surface by thermal transfer.

【0016】図2は電子撮像装置1の内部構成を示すブ
ロック図である。図2において、撮像レンズ2の後方に
は素子を縦方向に配列してなるラインCCD(撮像素子
に相当)21が画像読取り部100に取り付けられてお
り、このラインCCD21は一次元のイメージセンサと
しての機能を有し、画像読取り部100によって撮像レ
ンズ2の結像範囲内を横方向(矢印方向)に移動するこ
とにより、1画面分の画像を読み取るようになってい
る。横方向への移動に伴って順次ラインCCD21から
出力される映像信号は、プリアンプ22により増幅され
るとともに、AGCアンプ23によって利得を一定に調
整されて画像の輪郭が強調補正される。
FIG. 2 is a block diagram showing the internal structure of the electronic image pickup apparatus 1. In FIG. 2, a line CCD (corresponding to an image pickup device) 21 in which elements are vertically arranged is attached to the image reading unit 100 behind the image pickup lens 2, and the line CCD 21 serves as a one-dimensional image sensor. The image reading unit 100 moves the image forming range of the imaging lens 2 in the lateral direction (arrow direction) to read an image for one screen. The video signal sequentially output from the line CCD 21 with the movement in the horizontal direction is amplified by the preamplifier 22 and the gain of the AGC amplifier 23 is adjusted to be constant so that the contour of the image is emphasized and corrected.

【0017】画像読取り部100には図示のように三つ
の読み取りポイント(Rpa、Rpb、Rpc)が設定される
ようになっている。この読み取りポイント(Rpa、Rp
b、Rpc)の詳細については後述するが、映像信号に対
する閾値の補正時に使用される。
In the image reading section 100, three reading points (Rpa, Rpb, Rpc) are set as shown in the figure. This reading point (Rpa, Rp
Although details of (b, Rpc) will be described later, they are used when correcting the threshold value for the video signal.

【0018】上記AGCアンプ23から出力された映像
信号は、シェーディング補正回路24により画像中心部
と周辺部の明暗が補正処理された後、階調制御および2
値化回路25により階調制御されるとともに2値化さ
れ、2値化された映像信号は画素メモリ26に入力され
る。
The video signal output from the AGC amplifier 23 is subjected to gradation control and 2 after the shading correction circuit 24 corrects the brightness of the central portion and the peripheral portion of the image.
The gradation control is performed by the binarization circuit 25 and the binarized video signal is input to the pixel memory 26.

【0019】画素メモリ26は2値化された映像信号を
記憶する。画素メモリ26より出力される2値画素デー
タは黒字カウンタ27およびサーマルヘッド制御回路3
2に入力される。黒字カウンタ27は入力した2値画素
データの黒ビット数をカウントするものであり、その出
力がコントローラ30に入力され、カウント値に対する
黒字率が求められる。
The pixel memory 26 stores a binarized video signal. The binary pixel data output from the pixel memory 26 is the black character counter 27 and the thermal head control circuit 3.
Entered in 2. The black character counter 27 counts the number of black bits of the input binary pixel data, and the output thereof is input to the controller 30 to obtain the black character ratio with respect to the count value.

【0020】AGCアンプ23、階調制御および2値化
回路25、画素メモリ26の作動はコントローラ30に
よって制御されており、コントローラ30は、例えばマ
イクロコンピュータによって構成され、上記階調制御お
よび2値化回路25での映像信号に対する閾値を演算に
より求める。この場合、閾値は黒字率に対応して補正さ
れる。
The operations of the AGC amplifier 23, the gradation control / binarization circuit 25, and the pixel memory 26 are controlled by a controller 30. The controller 30 is composed of, for example, a microcomputer, and the gradation control / binarization is performed. The threshold value for the video signal in the circuit 25 is calculated. In this case, the threshold value is corrected corresponding to the surplus rate.

【0021】ここで、閾値の補正について説明する。図
3は、蛍光灯等の光源がある場合の各種信号を示す波形
図である。蛍光灯等の光源がある場合は、その光源の映
像信号を基準としてAGCが動作するので、全体的に映
像信号のレベルが低くなる。このことは、同図(ホ)の
閾値の2値画素データに示すように、白レベルが少な
く、黒字率が高くなっていることから分る。図4は全体
的に明暗の差が少ない場合の各種信号を示す波形図であ
り、全体的に明暗の差が少ない場合は、同図(ホ)の閾
値の2値画素データに示すように黒レベルが少なくな
っている(黒字率が低くなっている)ことから分る。
Here, the correction of the threshold will be described. FIG. 3 is a waveform diagram showing various signals when there is a light source such as a fluorescent lamp. When there is a light source such as a fluorescent lamp, the AGC operates based on the video signal of the light source, so that the level of the video signal becomes low as a whole. This can be seen from the fact that the white level is low and the black character ratio is high, as shown in the binary pixel data of the threshold value in FIG. FIG. 4 is a waveform diagram showing various signals when there is little difference in lightness and darkness as a whole. When there is little difference in lightness and darkness as a whole, as shown in the binary pixel data of the threshold in FIG. We know that the level is low (the surplus rate is low).

【0022】いま仮に図3に示す2値画素データの黒字
積分値が「881」であるとすれば、その黒字率は図5
の黒字積分値と黒字率の関係を示す特性図から「17
%」になる。また、図4に示す2値画素データの黒字積
分値が「1555」であるとすれば、その黒字率は図5
の特性図から「30%」になる。この場合、図5の縦軸
が“3ポイントの黒字積分値”としているが、この3ポ
イントの黒字積分値とは画像読取り部100における読
み取りポイント(Rpa、Rpb、Rpc)の黒字積分値に対
する黒字率のことである。
Assuming that the black pixel integrated value of the binary pixel data shown in FIG. 3 is "881", the black character ratio is as shown in FIG.
From the characteristic diagram showing the relationship between the black surplus integral value and the surplus ratio,
%"become. Further, assuming that the black surplus integral value of the binary pixel data shown in FIG. 4 is “1555”, the surplus ratio is as shown in FIG.
It becomes "30%" from the characteristic chart. In this case, the vertical axis of FIG. 5 is "3 points black integrated value", but this 3 point black integrated value is the black value with respect to the black integrated value of the reading points (Rpa, Rpb, Rpc) in the image reading unit 100. It is the rate.

【0023】図6は黒字率に対する閾値の補正値を示す
特性図である。この場合、閾値としてのデータが32段
階があり、補正値はこれら閾値データを何段階上下にシ
フトするかという割合である。一般的に標準の黒字率は
15〜33%とされているので、黒字率24%を基準と
して読み取った映像信号の黒字率と比較して閾値の補正
を行う。
FIG. 6 is a characteristic diagram showing a threshold correction value for the black character ratio. In this case, there are 32 levels of data as the threshold value, and the correction value is a ratio of how many levels the threshold value data is shifted up and down. Generally, the standard black character ratio is set to 15 to 33%, and therefore the threshold value is corrected by comparing the black character ratio of 24% with the black character ratio of the read video signal.

【0024】図3における黒字率を17%としているの
で、図6より閾値を−3段階に補正する。図3(ハ)に
示す閾値が補正した波形図である。他方、図4におけ
る黒字率は30%としているので、閾値を+2段階に補
正する。図4(ハ)に示す閾値が補正した波形図であ
る。なお、黒字率15%〜33%の範囲外の場合は±4
ポイント以上の補正は行わない。このようにして黒字率
によって閾値を変化させる。なお、図5に示す黒字積分
値と黒字率の関係を示す特性と、図6に示す黒字率に対
する閾値の補正値を示す特性はデータテーブルの形でコ
ントローラ30の内部のROMに書き込まれている。
Since the black character ratio in FIG. 3 is set to 17%, the threshold value is corrected in -3 steps from FIG. FIG. 4 is a waveform diagram in which the threshold value shown in FIG. 3C is corrected. On the other hand, since the surplus rate in FIG. 4 is 30%, the threshold value is corrected in +2 steps. FIG. 5 is a waveform diagram in which the threshold value shown in FIG. 4C is corrected. If the surplus rate is outside the range of 15% to 33%, ± 4
Do not correct more than the points. In this way, the threshold value is changed depending on the surplus rate. The characteristic showing the relationship between the black surplus integral value and the black surplus rate shown in FIG. 5 and the characteristic showing the threshold correction value for the black surplus rate shown in FIG. 6 are written in the ROM inside the controller 30 in the form of a data table. .

【0025】コントローラ30は補正した閾値を階調制
御および2値化回路25に出力する。これにより階調制
御および2値化回路25から補正した閾値に基づく2値
画素データが出力される。例えば、図3(ホ)に示す2
値画素データに変って図3(ヘ)に示す2値画素データ
が出力される。この場合は閾値を−3段階に補正したの
で、2値画素データの白レベルが増えていることが分
る。また、図4では、同図(ホ)に示す2値画素データ
に変って同図(ヘ)に示す2値画素データが出力され
る。この場合は閾値を+2段階に補正したので、2値画
素データの黒レベルが増えていることが分る。以上のよ
うな方法で、露光状態に応じて最適な閾値に設定され
る。
The controller 30 outputs the corrected threshold value to the gradation control and binarization circuit 25. As a result, the gradation control and binarization circuit 25 outputs binary pixel data based on the corrected threshold value. For example, 2 shown in FIG.
The binary pixel data shown in FIG. 3F is output instead of the binary pixel data. In this case, since the threshold value is corrected in -3 steps, it can be seen that the white level of the binary pixel data has increased. Further, in FIG. 4, the binary pixel data shown in FIG. 4F is output instead of the binary pixel data shown in FIG. In this case, since the threshold value is corrected in +2 steps, it can be seen that the black level of the binary pixel data has increased. By the method as described above, the optimum threshold value is set according to the exposure state.

【0026】図2に戻り、コントローラ30は上述した
閾値を求める演算を行う他、AGCアンプ23、階調制
御および2値化回路25、画素メモリ26の制御を行
い、さらにラインCCD21の走査を制御する駆動信号
をモータ制御および駆動回路31に出力するとともに、
サーマルヘッド制御回路32に制御信号を出力する。
Returning to FIG. 2, the controller 30 controls the AGC amplifier 23, the gradation control and binarization circuit 25, the pixel memory 26, and the scanning of the line CCD 21 in addition to the above-described calculation for obtaining the threshold value. And outputs a drive signal to the motor control and drive circuit 31,
A control signal is output to the thermal head control circuit 32.

【0027】モータ制御および駆動回路31はラインC
CD21を横方向に駆動するCCD移動モータ33と、
ピントを合せるべく撮像レンズ2を光軸方向に駆動する
とともに、特に本実施例では撮像時に光の入射方向に沿
って撮像レンズ2を所定量だけ移動させるように駆動す
るレンズ移動モータ34と、プリンタ部5におけるロー
ラ(図示略)を回転駆動するフィードモータ35を制御
する。なお、プリンタ部5のローラはサーマル紙Pを送
り駆動するものである。また、ラインCCD21で変換
された光量に対応する電荷を転送するため、電荷転送ク
ロックによりラインCCD21を駆動している。
The motor control and drive circuit 31 is line C
A CCD moving motor 33 for driving the CD 21 laterally,
A lens moving motor 34 for driving the image pickup lens 2 in the optical axis direction for focusing, and particularly for moving the image pickup lens 2 by a predetermined amount along the incident direction of light at the time of image pickup, and a printer. A feed motor 35 that rotationally drives a roller (not shown) in the section 5 is controlled. The rollers of the printer unit 5 feed and drive the thermal paper P. Further, the line CCD 21 is driven by the charge transfer clock in order to transfer the charges corresponding to the amount of light converted by the line CCD 21.

【0028】サーマルヘッド制御回路32はコントロー
ラ30から出力される制御信号および画像メモリ26か
ら出力される画素データに基づいてサーマルヘッド駆動
部36を制御する。このサーマルヘッド駆動部36が入
力される信号等に従って動作することにより、ローラに
より送り駆動されるサーマル紙Pに、ラインCCD21
が横方向に1回移動した際の1画面分の画像が熱転写さ
れる。
The thermal head control circuit 32 controls the thermal head drive section 36 based on the control signal output from the controller 30 and the pixel data output from the image memory 26. The thermal head drive unit 36 operates according to an input signal or the like, so that the line CCD 21 is attached to the thermal paper P fed and driven by the roller.
The image for one screen is transferred by heat when is moved once in the horizontal direction.

【0029】上記階調制御および2値化回路25は2値
化手段に対応する。また、上記黒字率カウンタ27は濃
度検出手段に対応する。また、上記コントローラ30は
閾値設定手段に対応する。また、上記画像読取り部10
0は撮像手段に対応する。
The gradation control and binarization circuit 25 corresponds to binarization means. The black character ratio counter 27 corresponds to the density detecting means. The controller 30 corresponds to a threshold setting means. In addition, the image reading unit 10
0 corresponds to the image pickup means.

【0030】動作説明 次に、図7に示すフローチャートを参照しながら本装置
の印字に関する動作について説明する。なお、本実施例
では、ラインCCD21の往復走査において往路で黒字
率により閾値を設定し、復路でその閾値により撮像した
映像信号を2値化する。まず、ステップS1で初期化を
行う。すなわち、コントローラ30において画像信号に
対する閾値を規定の閾値に設定する。この設定を行った
後、黒字率BUFFをクリアする。次いで、ステップS2で
ラインCCD21をホームポジションに移動させた後、
撮影開始位置方向に向って移動を開始させる(往路)。
Description of Operation Next, the operation relating to printing of this apparatus will be described with reference to the flowchart shown in FIG. In this embodiment, in the reciprocal scanning of the line CCD 21, a threshold value is set by the black ratio on the outward path, and the image signal picked up by the threshold value on the return path is binarized. First, initialization is performed in step S1. That is, the controller 30 sets the threshold for the image signal to a prescribed threshold. After making this setting, clear the black ratio BUFF. Next, after moving the line CCD 21 to the home position in step S2,
The movement is started in the direction of the shooting start position (outward path).

【0031】次いで、ステップS3で読み取りポイント
Rpa、Rpb、Rpcに移動したか否かの判定を行う。この
判定において、それぞれのポイントに移動したと判断す
るとステップS4に進み、読み取りポイントにおける主
走査方向ラインの画像信号1ライン分の読み取りを行
う。まず、始めにポイントRpaにおける読み取りを行う
ものとする。
Next, in step S3, it is determined whether or not the reading points Rpa, Rpb, and Rpc have been moved. In this determination, if it is determined that each point has been moved, the process proceeds to step S4, and one line of the image signal of the main scanning direction line at the reading point is read. First, it is assumed that reading is performed at the point Rpa.

【0032】読み取りポイントRpaにおける主走査方向
ラインの映像信号1ライン分の読み取りを行った後、ス
テップS5で映像信号を規定の閾値で2値化し、画素メ
モリ26に一時的に記憶される。そして、記憶した画素
データを黒字率カウンタ27に転送し、黒字ビット数を
カウントさせる。そして、ステップS6で黒字ビットの
カウント値を入力し、黒字率BUFFに書き込む。
After reading one line of the video signal of the main scanning direction line at the reading point Rpa, the video signal is binarized by a predetermined threshold value in step S5 and temporarily stored in the pixel memory 26. Then, the stored pixel data is transferred to the black character ratio counter 27, and the number of black character bits is counted. Then, in step S6, the count value of black character bits is input and written in the black character ratio BUFF.

【0033】読み取りポイントRpaにおける黒字ビット
数のカウントを行った後、ステップS7で撮影開始位置
か否かの判定を行う。現在は、読み取りポイントRpaに
おける処理が終了しているだけであるので、撮影開始位
置ではないと判断し、ステップS3に戻る。そして、上
記同様の処理を行って読み取りポイントRpbにおける黒
字ビット数のカウントを行う。この処理が終了すると、
読み取りポイントRpcにおける上記同様の処理を行う。
After counting the number of black bits at the reading point Rpa, it is determined in step S7 whether or not the photographing start position is reached. At present, the process at the reading point Rpa is only completed, so it is determined that the photographing start position is not reached, and the process returns to step S3. Then, the same processing as described above is performed to count the number of black character bits at the reading point Rpb. When this process ends,
The same processing as above at the reading point Rpc is performed.

【0034】各読み取りポイントRpa、Rpb、Rpcにお
ける黒字ビット数のカウントを行った後、これら3ポイ
ントの黒字積分値に対する黒字率を演算により求める。
そして、ステップS7の判定において撮影開始位置であ
ると判断すると、ステップS8で補正値テーブル(図
6)を参照して黒字率BUFFの値に対応する閾値データを
決定する。閾値データを決定した後、ステップS9で閾
値データを階調制御および2値化回路25へ出力する。
これにより、現在の被写体に対して視覚的に最適な濃度
の画像が得られる閾値が決定される。閾値が決定された
後、ステップS10でラインCCD21を折り返し移動
させた後、ステップS11で撮影を行う(復路)。そし
て、撮影が行われて濃度補正された画像がサーマル紙P
に印刷される。
After the number of black character bits at each reading point Rpa, Rpb, Rpc is counted, the black character ratio with respect to the black character integral value of these three points is calculated.
Then, if it is determined in the determination in step S7 that it is the shooting start position, the threshold value data corresponding to the value of the black character ratio BUFF is determined with reference to the correction value table (FIG. 6) in step S8. After the threshold data is determined, the threshold data is output to the gradation control and binarization circuit 25 in step S9.
As a result, the threshold value with which a visually optimal density image is obtained for the current subject is determined. After the threshold is determined, the line CCD 21 is folded and moved in step S10, and then the image is taken in step S11 (return pass). Then, the image that has been photographed and whose density has been corrected is the thermal paper P.
Printed on.

【0035】上記実施例では、黒字率カウンタ27を設
けて、このカウント値に基づいて濃度補正を行うので、
ハードウェア的にもソフトウェア的にも負担が少ないと
いう利点がある。
In the above embodiment, the black character ratio counter 27 is provided and the density is corrected based on this count value.
There is an advantage that the load is small in terms of hardware and software.

【0036】なお、上記実施例では、黒字率に基づいて
閾値の補正を行うようにしたが、逆に白字率に基づいて
閾値の補正を行うようにしても良い。また、本発明の適
用は電子撮像装置に限るものではなく、画像信号等を2
値化するような装置であれば、適用が可能である。
Although the threshold value is corrected based on the black character ratio in the above embodiment, the threshold value may be corrected based on the white character ratio. Further, the application of the present invention is not limited to the electronic image pickup device, and an image signal or the like
Any device capable of digitizing can be applied.

【0037】[0037]

【発明の効果】本発明によれば、予め映像信号を2値化
して白あるいは黒の濃度を検出し、この検出結果から2
値化するための新たな閾値を設定するようにしたので、
視覚的に最適な濃度の画像が得られる。また、一度で最
適な濃度の画像が得られるので、従来のように濃度の具
合により撮り直す必要が殆どないので、用紙および時間
等の経費を節減することができる。
According to the present invention, the image signal is binarized in advance to detect the density of white or black, and 2 is detected from the detection result.
Since I set a new threshold for digitizing,
An image with a visually optimum density is obtained. In addition, since an image having an optimum density can be obtained at one time, there is almost no need to retake the image depending on the density condition as in the conventional case, so that the cost of paper and time can be saved.

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

【図1】本発明に係る2値化装置を適用した電子撮像装
置の外観図である。
FIG. 1 is an external view of an electronic imaging device to which a binarizing device according to the present invention is applied.

【図2】同実施例の電子撮像装置の内部構成を示すブロ
ック図である。
FIG. 2 is a block diagram showing an internal configuration of the electronic image pickup apparatus of the embodiment.

【図3】同実施例の電子撮像装置における各種信号の波
形図である。
FIG. 3 is a waveform chart of various signals in the electronic image pickup apparatus of the embodiment.

【図4】同実施例の電子撮像装置における各種信号の波
形図である。
FIG. 4 is a waveform chart of various signals in the electronic image pickup apparatus of the same embodiment.

【図5】同実施例の電子撮像装置での濃度補正を説明す
るための特性図である。
FIG. 5 is a characteristic diagram for explaining density correction in the electronic image pickup apparatus of the embodiment.

【図6】同実施例の電子撮像装置での濃度補正を説明す
るための特性図である。
FIG. 6 is a characteristic diagram for explaining density correction in the electronic image pickup apparatus of the embodiment.

【図7】同実施例の電子撮像装置における濃度補正動作
を示すフローチャートである。
FIG. 7 is a flowchart showing a density correction operation in the electronic image pickup apparatus of the embodiment.

【図8】従来の電子撮像装置における各種信号の波形図
である。
FIG. 8 is a waveform diagram of various signals in a conventional electronic image pickup device.

【図9】従来の電子撮像装置における各種信号の波形図
である。
FIG. 9 is a waveform chart of various signals in a conventional electronic image pickup apparatus.

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

21 ラインCCD 25 階調制御および2値化回路(2値化手段) 26 画素メモリ 27 黒字率カウンタ(濃度検出手段) 30 コントローラ(閾値設定手段) 100 画像読取り部(撮像手段) 21 line CCD 25 gradation control and binarization circuit (binarization means) 26 pixel memory 27 black character ratio counter (density detection means) 30 controller (threshold setting means) 100 image reading unit (imaging means)

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 映像信号を所定閾値で2値化する2値化
手段と、 前記2値化手段により2値化された映像信号の白あるい
は黒の濃度を検出する濃度検出手段と、 前記濃度検出手段により検出された白あるいは黒の濃度
に基づいて前記2値化手段の所定閾値を設定する閾値設
定手段と、 を有することを特徴とする2値化装置。
1. A binarizing means for binarizing a video signal with a predetermined threshold value, a density detecting means for detecting a white or black density of the video signal binarized by the binarizing means, and the density. A threshold value setting means for setting a predetermined threshold value of the binarizing means based on the density of white or black detected by the detecting means;
【請求項2】 光学系により結像された被写体像を撮像
する撮像手段と、 前記撮像手段により撮像して得られた映像信号を所定閾
値で2値化する2値化手段と、 前記2値化手段により2値化された映像信号の白あるい
は黒の濃度を検出する濃度検出手段と、 前記濃度検出手段により検出された白あるいは黒の濃度
に基づいて前記2値化手段の所定閾値を設定する閾値設
定手段と、 を有することを特徴とする2値化装置。
2. An image pickup means for picking up a subject image formed by an optical system, a binarization means for binarizing a video signal obtained by picking up the image by the image pickup means, and the binary value. Density detecting means for detecting the density of white or black of the image signal binarized by the digitizing means, and a predetermined threshold value of the binarizing means is set based on the density of white or black detected by the density detecting means. And a threshold value setting means for controlling the threshold value.
【請求項3】 前記撮影手段は、撮影面の複数の所定エ
リアを撮影することを特徴とする請求項2記載の2値化
装置。
3. The binarization apparatus according to claim 2, wherein the photographing means photographs a plurality of predetermined areas on a photographing surface.
JP4312913A 1992-10-28 1992-10-28 Binarization device Pending JPH07123256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4312913A JPH07123256A (en) 1992-10-28 1992-10-28 Binarization device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4312913A JPH07123256A (en) 1992-10-28 1992-10-28 Binarization device

Publications (1)

Publication Number Publication Date
JPH07123256A true JPH07123256A (en) 1995-05-12

Family

ID=18034974

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4312913A Pending JPH07123256A (en) 1992-10-28 1992-10-28 Binarization device

Country Status (1)

Country Link
JP (1) JPH07123256A (en)

Similar Documents

Publication Publication Date Title
US6359650B1 (en) Electronic camera having a tilt detection function
EP1688884B1 (en) Image pickup apparatus
US8379108B2 (en) Electronic camera that detects and extracts faces
EP1992160B1 (en) Imaging apparatus and exposure control method
US6249362B1 (en) Image read apparatus, information processing apparatus, and image read system constituted therewith
JP2000155257A (en) Method and device for autofocusing
JP2004032167A (en) Image reading system and image reading processing system
US20100110210A1 (en) Method and means of recording format independent cropping information
JP4046276B2 (en) Digital camera
JP2001211382A (en) Image processing apparatus, image processing method, and recording medium
JP4586290B2 (en) Electronic camera
JPH07123256A (en) Binarization device
JPH11331575A (en) Image processing device
JP3292542B2 (en) Camera and automatic focusing device
JPH08307761A (en) Digital type camera
JP3457993B2 (en) Red eye correction device
US5450127A (en) Image pickup apparatus for performing exposure control by using one-dimensional image pickup device
JP2763552B2 (en) Image reading device
JPH05346537A (en) Automatic focusing controller
JP2006157817A (en) Digital camera, image processing system and image processing program
JP3430776B2 (en) Image reading device
JP2002232772A (en) Electronic camera and its photometric value calculation method
JPH06135041A (en) Print controller for thermal printer
JP2001111888A (en) Digital camera and its character photographing method
JPH11355511A (en) Picture processor