JPH08172522A - Resolution switching device - Google Patents

Resolution switching device

Info

Publication number
JPH08172522A
JPH08172522A JP6316153A JP31615394A JPH08172522A JP H08172522 A JPH08172522 A JP H08172522A JP 6316153 A JP6316153 A JP 6316153A JP 31615394 A JP31615394 A JP 31615394A JP H08172522 A JPH08172522 A JP H08172522A
Authority
JP
Japan
Prior art keywords
resolution
data
run length
frequency
black
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
JP6316153A
Other languages
Japanese (ja)
Inventor
Etsuro Yamazaki
悦郎 山崎
Ryuichi Kohara
竜一 古原
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data 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 Oki Data Corp filed Critical Oki Data Corp
Priority to JP6316153A priority Critical patent/JPH08172522A/en
Publication of JPH08172522A publication Critical patent/JPH08172522A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide a resolution switching device selecting automatically proper resolution depending on an original. CONSTITUTION: A communication equipment using an image processing section 2 to binarize data at a prescribed area of the XY coordinate system and sending the data at a prescribed resolution is provided with a calculation section 4 calculating frequency of incidence of '1' or '0' levels of the binarized data for a prescribed area, and a comparator section 5 comparing the frequency of incidence of '1' or '0' levels calculated by the calculation section 4 with a prescribed threshold level and also with a selection section 6 selecting a resolution of data for the transmission based on the result obtained by the comparator section 5.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ファクシミリ等の通信
機器においてデータを送信する際に、そのデータに応じ
て解像度を切り換える解像度切り換え装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a resolution switching device for switching the resolution according to the data when transmitting the data in a communication device such as a facsimile.

【0002】[0002]

【従来の技術】ファクシミリ等の通信機器では、文章や
画像などのデータを送信する際に、主走査方向および副
走査方向の各々に送信のための解像度(スタンダード/
ファイン/EXファイン等のモード)が設定されてい
る。例えば、主走査方向には8ドット/mmや16ドッ
ト/mm、副走査方向には3.851本/mmや7.7
1本/mm、15.4本/mmの解像度が設定されてい
る。ファクシミリによる原稿データの送信を行うには、
この解像度に応じた原稿の読み取りを行い、2値化した
データを所定の回線を介して相手方に伝送している。
2. Description of the Related Art In a communication device such as a facsimile, when transmitting data such as a text or an image, a resolution (standard / standard) for transmission in each of a main scanning direction and a sub scanning direction is transmitted.
Fine / EX fine mode) is set. For example, 8 dots / mm or 16 dots / mm in the main scanning direction and 3.851 lines / mm or 7.7 in the sub scanning direction.
Resolutions of 1 line / mm and 15.4 lines / mm are set. To send original data by fax,
The original is read according to this resolution, and the binarized data is transmitted to the other party via a predetermined line.

【0003】このような通信機器において原稿を送信す
る場合には、予めユーザが自ら原稿の繊細さを判別し、
それに応じた解像度を選択して機器に対する設定を行っ
ている。すなわち、原稿の文字や図が細かい場合には解
像度をファイン(または、EXファイン)に設定し、文
字や図面が粗い場合には解像度をスタンダードに設定し
ている。
When transmitting a manuscript in such a communication device, the user himself / herself determines the delicateness of the manuscript in advance,
The resolution is selected accordingly and the device is set. That is, the resolution is set to fine (or EX fine) when the characters and drawings of the original are fine, and the resolution is set to standard when the characters and drawings are rough.

【0004】[0004]

【発明が解決しようとする課題】しかし、このような解
像度の設定をユーザに行わせることは操作の煩わしさを
招くとともに、解像度の設定を誤った場合に種々の問題
を生じさせる。つまり、解像度の設定がユーザの判断に
委ねられているため、原稿の文字や図の繊細さの判別が
人によって異なってしまったり、操作ミスによって設定
誤りを起こす場合もある。例えば、原稿の文字や図が細
かい場合にスタンダードを選択すると、十分な送信解像
度が得られないため受信側の画像が不鮮明となってしま
う。また、反対に原稿の文字や図が粗い場合にファイン
(または、EXファイン)を選択すると、受信側の画像
においてはスタンダードとほとんど差がないにもかかわ
らず必要以上に伝送時間が長くなり通信コストを増加さ
せる原因となる。
However, allowing the user to set the resolution in this way causes a troublesome operation and causes various problems when the resolution is set incorrectly. In other words, since the setting of the resolution is left to the user's judgment, the determination of the delicateness of the characters and figures of the original document may vary from person to person, or the setting error may occur due to an operation error. For example, if the standard is selected when the characters and figures of the original are small, the image on the receiving side becomes unclear because a sufficient transmission resolution cannot be obtained. On the other hand, if you select Fine (or EX Fine) when the characters or drawings on the original are rough, the transmission time will be longer than necessary even though the image on the receiving side is almost the same as the standard, and communication costs will increase. Cause to increase.

【0005】[0005]

【課題を解決するための手段】本発明はこのような課題
を解決するために成された解像度切り換え装置である。
すなわち、本発明は、xy座標系から成る所定領域のデ
ータを2値化して、所定の解像度で送信する通信機器に
おいて、2値化されたデータにおける一定領域での
「1」または「0」の発生頻度を算出する算出手段と、
この算出手段にて算出された「1」または「0」の発生
頻度を所定のしきい値と比較する比較手段と、比較手段
により得られた結果に基づきデータを送信する際の解像
度を選択する選択手段とを備えている解像度切り換え装
置である。
SUMMARY OF THE INVENTION The present invention is a resolution switching device made to solve such a problem.
That is, according to the present invention, in a communication device that binarizes data in a predetermined area composed of an xy coordinate system and transmits the data at a predetermined resolution, a "1" or a "0" in a predetermined area in the binarized data is displayed. Calculation means for calculating the occurrence frequency,
The comparing means for comparing the occurrence frequency of "1" or "0" calculated by the calculating means with a predetermined threshold value, and the resolution for transmitting data based on the result obtained by the comparing means are selected. And a resolution switching device including selection means.

【0006】[0006]

【作用】本発明では、2値化されたデータにおける
「1」または「0」の発生頻度を算出手段により算出
し、その発生頻度と所定のしきい値との比較を比較手段
にて行って、データの繊細さを定量的に判別している。
すなわち、2値化データにおける「1」または「0」の
発生頻度が多いほど原稿が細かいと判断し、少ないほど
原稿が粗いと判断している。また、選択手段では比較手
段にて判別したデータの繊細さに応じて送信の解像度を
選択している。つまり、本発明では、送信するデータの
繊細さの判別とともに、これに応じた解像度の切り換え
を自動的に行うことができるようになる。
In the present invention, the occurrence frequency of "1" or "0" in the binarized data is calculated by the calculation means, and the occurrence frequency is compared with a predetermined threshold value by the comparison means. , Quantitatively determine the delicacy of the data.
That is, it is determined that the document is finer as the frequency of occurrence of "1" or "0" in the binarized data is higher, and the document is coarser as the frequency is low. Further, the selecting means selects the transmission resolution according to the delicateness of the data determined by the comparing means. That is, according to the present invention, it is possible to determine the delicateness of the data to be transmitted and automatically switch the resolution according to the determination.

【0007】[0007]

【実施例】以下に、本発明の解像度切り換え装置におけ
る実施例を図に基づいて説明する。図1は本発明の第1
実施例を説明するブロック図である。第1実施例におけ
る解像度切り換え装置は、主として原稿等のデータの読
み取りを行うセンサ1と、センサ出力の増幅、A/D変
換、疑似階調処理、2値化処理等を行う画像処理部2
と、2値化データの蓄積を行うページメモリ3と、2値
化データにおける「1」、「0」の発生頻度を算出する
算出部4と、この発生頻度と所定のしきい値との比較を
行う比較部5と、比較部5の結果に応じて解像度の切り
換えを行う選択部6と、選択された解像度によってデー
タの送信を行う通信制御部7とを備えた構成となってい
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the resolution switching device of the present invention will be described below with reference to the drawings. FIG. 1 shows the first embodiment of the present invention.
It is a block diagram explaining an Example. The resolution switching device in the first embodiment is mainly composed of a sensor 1 for reading data such as a document, and an image processing unit 2 for amplification of sensor output, A / D conversion, pseudo gradation processing, binarization processing, and the like.
And a page memory 3 for accumulating binarized data, a calculator 4 for calculating the frequency of occurrence of "1" and "0" in the binarized data, and comparison of the frequency of occurrence with a predetermined threshold value. The configuration includes a comparison unit 5 that performs the above, a selection unit 6 that switches the resolution according to the result of the comparison unit 5, and a communication control unit 7 that transmits data according to the selected resolution.

【0008】以下、説明を分かりやすくするため、本実
施例における解像度切り換え装置がファクシミリから成
る通信機器に備えられている場合を例として説明する。
センサ1はファクシミリ送信を行うための原稿に記載さ
れた文字や図等のデータを1ライン毎に読み取り、画像
データとして画像処理部2へ出力している。なお、セン
サ1によるデータの読み取りは、最も細かい解像度にて
行う。画像処理部2では、センサ出力である画像データ
を得て、これに対する種々の処理すなわちセンサ出力の
増幅、A/D変換、疑似階調処理、2値化処理等を行
い、ページメモリ3および算出部4へその2値化データ
を出力している。
In order to make the explanation easy to understand, a case where the resolution switching device according to the present embodiment is provided in a communication device composed of a facsimile will be described below as an example.
The sensor 1 reads data such as characters and figures written on a document for facsimile transmission line by line and outputs it as image data to the image processing unit 2. The data read by the sensor 1 is performed at the finest resolution. The image processing unit 2 obtains image data which is a sensor output, and performs various processes on the image data, that is, amplification of the sensor output, A / D conversion, pseudo gradation process, binarization process, etc., and page memory 3 and calculation. The binarized data is output to the unit 4.

【0009】算出部4は、入力部41、判定部42およ
びカウンタ部43から構成されている。この入力部41
は、画像処理部2から2値化データを順次得るととも
に、その2値化データにおける最新の2つのデータ(1
ライン中で隣接する2画素のデータ)を記憶し、それを
判定部42へ出力している。図2は入力部41のタイミ
ングチャートであり、時間t=0〜9におけるA〜Iの
データの状態(「0」レベル、「1」レベル)を示すも
のである。
The calculation unit 4 is composed of an input unit 41, a determination unit 42 and a counter unit 43. This input section 41
Sequentially obtains the binarized data from the image processing unit 2, and the latest two data (1
Data of two adjacent pixels in the line) are stored and output to the determination unit 42. FIG. 2 is a timing chart of the input unit 41 and shows the states of the data A to I (“0” level, “1” level) at times t = 0 to 9.

【0010】例えば、時間t=2の場合には、最新の2
つであるA、Bのデータの状態(0,0)を入力部41
で記憶する。また、時間t=3の場合には、最新の2つ
であるB、Cのデータの状態(0,1)を入力部41で
記憶する。さらに、時間t=9の場合には、最新の2つ
であるH、Iのデータの状態(1,1)を入力部41で
記憶する。判定部42は、入力部41から送られた2つ
のデータの状態が等しいか異なるかを判定し、異なる場
合すなわち2つのデータの状態が(1,0)または
(0,1)となっている場合にデータの変化点であると
みなして変化点ありの情報をカウンタ部43へ送ってい
る。
For example, when the time t = 2, the latest 2
The state (0, 0) of the data of A and B, which are two
Memorize with. When the time t = 3, the input unit 41 stores the latest two data states of B and C (0, 1). Further, when the time t = 9, the input unit 41 stores the latest two data states of H and I (1, 1). The determination unit 42 determines whether the states of the two data sent from the input unit 41 are equal or different, and when they are different, that is, the states of the two data are (1,0) or (0,1). In this case, the information indicating that there is a change point is sent to the counter unit 43 as if it were a change point of the data.

【0011】カウンタ部43は判定部42から変化点あ
りの情報を受けることにより変化点数のカウンタを加算
し、1ライン中の変化点総数を比較部5へ出力してい
る。比較部5は、カウンタ部43から得た1ライン中の
変化点総数と、しきい値記憶部51から得た所定のしき
い値とを比較して、その結果を選択部6へ出力する。比
較部5から出力される比較結果は、データ送信の際にど
の解像度を選択するかの指示信号である。
The counter unit 43 adds the counter for the number of change points by receiving the information indicating that there is a change point from the determination unit 42, and outputs the total number of change points in one line to the comparison unit 5. The comparison unit 5 compares the total number of change points in one line obtained from the counter unit 43 with a predetermined threshold value obtained from the threshold value storage unit 51, and outputs the result to the selection unit 6. The comparison result output from the comparison unit 5 is an instruction signal indicating which resolution is selected when transmitting data.

【0012】すなわち、解像度の種類をMi (ただし、
i=1 〜n であり、番号が若いほど細かい解像度であるこ
とを示している。)、しきい値をThj (j=1 〜(n-1)
であり、Th1 >Th2 >…>Thn-1 )、1ライン中
の変化点総数をCとした場合、C≧Th1 のとき解像度
M1 を、Th1 >C≧Th2 のとき解像度M2 を、Th
2 >C≧Th3 のとき解像度M3 を、…Thn-2 >C≧
Thn-1 のとき解像度Mn-1 を、Thn-1 >C≧Thn
のとき解像度Mn を各々選択するような指示信号を比較
部5から出力する。
That is, the type of resolution is Mi (however,
i = 1 to n, and the smaller the number, the finer the resolution. ), The threshold value is Thj (j = 1 to (n-1)
, Th1>Th2>...> Thn−1), where C is the total number of change points in one line, the resolution M1 is C ≧ Th1, the resolution M2 is Th1> C ≧ Th2, and Th
When 2> C ≧ Th3, the resolution M3 is set to ... Thn-2> C ≧
When Thn-1, the resolution Mn-1 is Thn-1> C≥Thn.
In this case, the comparison section 5 outputs an instruction signal for selecting each resolution Mn.

【0013】つまり、1ライン中の2値化データにおけ
る「1」、「0」の変化点数が少ないほど粗い原稿デー
タであるとみなして粗い解像度を選択し、変化点数が多
いほど細かい原稿データであるとみなして細かい解像度
を選択するようにする。選択部6は、比較部5から解像
度を選択するための指示信号を受けて、それに応じた解
像度を選択する。なお、操作部61は、オペレータの選
択により解像度の自動切り換えを行うか否かの設定を行
ったり、手動で解像度を選択する場合に選択した解像度
の情報を選択部6へ出力する役目を果たしている。
That is, the smaller the number of change points of "1" and "0" in the binarized data in one line, the coarser the original data is considered to be, and the coarser resolution is selected. The larger the number of change points, the finer the original data is. Assuming that there is, select a fine resolution. The selection unit 6 receives the instruction signal for selecting the resolution from the comparison unit 5 and selects the resolution according to the instruction signal. The operation unit 61 plays a role of setting whether to automatically switch the resolution according to the operator's selection or outputting information of the selected resolution to the selection unit 6 when manually selecting the resolution. .

【0014】通信制御部7では、選択部6にて選択され
た解像度により、ページメモリ33から送られる2値化
データを所定の通信回線(図示せず)を介して相手先に
伝送する処理を行っている。なお、ページメモリ3には
センサ1により最も細かい解像度にて読み取ったデータ
が蓄積されているため、選択部6にて粗い解像度が選択
された場合には通信制御部7でデータの間引きを行いな
がら送信を行うようにする。
The communication control unit 7 carries out a process of transmitting the binarized data sent from the page memory 33 to a destination via a predetermined communication line (not shown) according to the resolution selected by the selection unit 6. Is going. Since the data read by the sensor 1 at the finest resolution is stored in the page memory 3, when the coarse resolution is selected by the selection unit 6, the communication control unit 7 thins out the data. Try to send.

【0015】ここで、一例として解像度を細かい順にE
Xファイン/ファイン/スタンダードの3種類設定でき
る場合を説明する。この場合には、設定できる解像度の
数(n)は3であり、解像度の種類はEXファインがM
1 、ファインがM2 、スタンダードがM3 である。ま
た、実験等により予め決定したしきい値Th1 を80
0、Th2 を400とする。このような条件で1ライン
中の2値化データの変化点総数Cを先に説明したように
算出部4にて算出し、比較部5での比較を行う。
Here, as an example, the resolution E
The case where three types of X fine / fine / standard can be set will be described. In this case, the number of resolutions (n) that can be set is 3, and the type of resolution is M for EX Fine.
1, fine is M2, standard is M3. In addition, the threshold value Th1 determined in advance by experiments is set to 80
0 and Th2 are set to 400. Under such conditions, the total number C of change points of the binarized data in one line is calculated by the calculation unit 4 as described above, and the comparison by the comparison unit 5 is performed.

【0016】そして、C≧800のとき、C≧Th1 と
なるため解像度M1 すなわちEXファインを選択し、8
00>C≧400のとき、Th1 >C≧Th2 となるた
め解像度M2 すなわちファインを選択し、400>Cの
とき、Th2 >Cとなるため解像度M3 すなわちスタン
ダードを選択するようにする。このようにして、送信の
ための原稿の読み取りを行うとともにその粗さを自動的
に判別し、最適な送信解像度を設定できるようになる。
When C ≧ 800, C ≧ Th1 is satisfied, so the resolution M1 or EX fine is selected, and 8
When 00> C ≧ 400, Th1> C ≧ Th2, so resolution M2, that is, fine is selected. When 400> C, Th2> C, so resolution M3, that is, standard is selected. In this way, it is possible to read the original for transmission and automatically determine the roughness thereof to set the optimum transmission resolution.

【0017】次に、本発明の第2実施例における解像度
切り換え装置の説明を行う。図3は本発明の第2実施例
を説明する構成図である。この解像度切り換え装置は、
装置全体のコントロールを行うCPU10と、原稿を読
み取りセンサ11と、センサ出力を2値化する2値化回
路12と、2値化データをバス10aへ接続するバスイ
ンタフェース13と、2値化データを格納する画像メモ
リ15と、2値化データを画像メモリ15へ転送するた
めのDMAC(ダイレクト・メモリ・アクセス・コント
ローラ)14と、画像データの符号化(圧縮化)を行う
符号化回路16と、2値化データ内での所定のラン長の
発生頻度をカウントするランレングス統計回路17と、
符号化データを変調して回線へ送出するモデム18とか
ら構成されている。
Next, a resolution switching device according to the second embodiment of the present invention will be described. FIG. 3 is a block diagram for explaining the second embodiment of the present invention. This resolution switching device
A CPU 10 for controlling the entire apparatus, a document reading sensor 11, a binarization circuit 12 for binarizing the sensor output, a bus interface 13 for connecting the binarized data to a bus 10a, and a binarized data An image memory 15 for storing, a DMAC (Direct Memory Access Controller) 14 for transferring binary data to the image memory 15, and an encoding circuit 16 for encoding (compressing) image data, A run length statistical circuit 17 for counting the frequency of occurrence of a predetermined run length in the binarized data,
It is composed of a modem 18 which modulates encoded data and sends it out to a line.

【0018】第2実施例における解像度切り換え装置で
は、センサ1にて読み取った原稿の画像データから2値
化データを得て、その2値化データにおける所定領域で
の所定のラン長の発生頻度をランレングス統計回路17
でカウントし、そのカウント値に応じて原稿を繊細さを
判別して最適な送信解像度を選択する点に特徴がある。
In the resolution switching apparatus according to the second embodiment, binarized data is obtained from the image data of the original read by the sensor 1, and the occurrence frequency of a predetermined run length in a predetermined area in the binarized data is determined. Run length statistical circuit 17
Is characterized in that the document is delicately determined according to the count value and the optimum transmission resolution is selected.

【0019】ここで、図4に基づいて副走査方向のラン
長について説明する。図4では、主走査方向をx、副走
査方向をyとした場合の各ドットのデータの状態を示し
ている。なお、図中白抜きの四角は白データ、黒塗りの
四角は黒データを示している。図4における(A)で示
す部分では、副走査方向に沿って白データが3つ連続し
ており白ラン長「3」が発生していることを示してい
る。また、図中(B)で示す部分では、副走査方向に沿
って黒データが5つ連続しており黒ラン長「5」が発生
していることを示している。また、図中(C)で示す部
分では、副走査方向に沿って黒データが3つ連続してお
り黒ラン長「3」が発生していることを示している。
The run length in the sub-scanning direction will be described with reference to FIG. FIG. 4 shows the data state of each dot when the main scanning direction is x and the sub scanning direction is y. In the figure, white squares indicate white data, and black squares indicate black data. In the portion indicated by (A) in FIG. 4, three pieces of white data are continuous in the sub-scanning direction, and the white run length “3” is generated. Further, in the portion indicated by (B) in the figure, five black data are continuous in the sub-scanning direction, and the black run length "5" is generated. Further, in the portion indicated by (C) in the drawing, three black data are continuous in the sub-scanning direction, and the black run length "3" is generated.

【0020】図3に示すランレングス統計回路17で
は、このように2値化データにおける所定領域での所定
のラン長の発生頻度をカウントして、原稿の繊細さを判
断する上での情報を得る役目を果たしている。図5は、
このようなラン長のカウントを行うためのランレングス
統計回路の内部構成図である。ランレングス統計回路
は、バスインタフェース回路21と、DMAC22と、
黒白変化点検出器23および白黒変化点検出器24と、
黒ラン長カウンタ25および白ラン長カウンタ26と、
黒ラン長「1」、「2」、「3」の度数を各々カウント
する度数カウンタ27〜29および白ラン長「1」、
「2」、「3」の度数を各々カウントする度数カウンタ
30〜32とから構成されている。
The run length statistical circuit 17 shown in FIG. 3 counts the frequency of occurrence of a predetermined run length in a predetermined area in the binarized data in this way, and provides information for judging the delicacy of the original. Play a role in gaining. Figure 5
It is an internal block diagram of a run length statistical circuit for performing such run length counting. The run length statistical circuit includes a bus interface circuit 21, a DMAC 22,
A black and white change point detector 23 and a black and white change point detector 24,
A black run length counter 25 and a white run length counter 26,
Frequency counters 27 to 29 for counting the frequencies of the black run lengths "1", "2", and "3" and the white run length "1",
It is composed of frequency counters 30 to 32 for counting the frequencies of "2" and "3", respectively.

【0021】このような構成となっているランレングス
統計回路17(図3参照)では、黒ラン長および白ラン
長の「1」、「2」、「3」の発生頻度をカウントでき
るようになっている。例えば、図4に示すような2値化
データにおける副走査方向に沿って1ドットづつ
「白」、「黒」のデータがランレングス統計回路17に
入力されると、その内の黒ラン長「1」〜「3」の発生
頻度および白ラン長「1」〜「3」の発生頻度をカウン
トする。なお、図5に示す構成では「4」以上のラン長
はカウントしないようになっている。
In the run length statistical circuit 17 (see FIG. 3) having such a configuration, the occurrence frequency of "1", "2" and "3" of the black run length and the white run length can be counted. Has become. For example, when "white" and "black" data is input to the run length statistical circuit 17 dot by dot along the sub-scanning direction in the binarized data as shown in FIG. 4, the black run length " The frequency of occurrence of 1 "to" 3 "and the frequency of occurrence of white run lengths" 1 "to" 3 "are counted. In the configuration shown in FIG. 5, run lengths of "4" and above are not counted.

【0022】ランレングス統計回路17に例えば「黒」
データが入力されると、そのデータはシリアルに黒ラン
長カウンタ25に入力され、黒ラン長のカウントが成さ
れることになる。このカウントは黒白変化点検出器23
から信号が与えられるまで続けられ、黒ラン長に応じた
出力を行うことになる。
For example, "black" is added to the run length statistical circuit 17.
When data is input, the data is serially input to the black run length counter 25, and the black run length is counted. This count is based on the black and white change point detector 23.
Is continued until a signal is given from, and output is performed according to the black run length.

【0023】つまり、黒白変化点検出器23にて変化点
の検出を行い、その出力が黒ラン長カウンタ25に入力
されると、その段階でのカウント値すなわち黒ラン長の
値に対応する度数カウンタ27〜29のいずれかがカウ
ントアップされる。また、このカウントアップと同時に
黒ラン長カウンタ25がリセットされ、次の黒ラン長カ
ウントに備えることになる。同様に、白ラン長において
も、白黒変化点検出器24からの出力があった段階で白
ラン長カウンタ26から出力されるラン長の値に応じた
各度数カウンタ30〜32がカウントアップされること
になる。
That is, when the black and white change point detector 23 detects a change point and the output thereof is input to the black run length counter 25, the count value at that stage, that is, the frequency corresponding to the value of the black run length. Any of the counters 27 to 29 is counted up. At the same time as this count-up, the black run length counter 25 is reset to prepare for the next black run length count. Similarly, with respect to the white run length, the frequency counters 30 to 32 corresponding to the run length value output from the white run length counter 26 are incremented when the white / black change point detector 24 outputs. It will be.

【0024】図6はランレングス統計回路のタイミング
チャートである。すなわち、ランレングス統計回路は2
値の画像データを受け、黒(=1)データおよび白(=
0)データの連続値をカウントすることになる。黒ラン
長は、黒白変化点検出出力があった際の黒ラン長カウン
タ出力によって得ることができ、白ラン長は、白黒変化
点検出出力があった際の白ラン長カウンタ出力によって
得ることができる。このようにして得た「1」〜「3」
までの黒ラン長および白ラン長の発生頻度は、図5に示
す各ラン長の度数カウンタ27〜32でカウントされる
ことになる。
FIG. 6 is a timing chart of the run length statistical circuit. That is, the run length statistical circuit is 2
Value (= 1) data and white (= 1) data
0) A continuous value of data will be counted. The black run length can be obtained by the black run length counter output when there is a black and white change point detection output, and the white run length can be obtained by the white run length counter output when there is a black and white change point detection output. it can. "1" to "3" obtained in this way
The occurrence frequencies of the black run length and the white run length up to are counted by the frequency counters 27 to 32 for each run length shown in FIG.

【0025】第2実施例における解像度切り換え装置で
は、この黒ラン長および白ラン長の発生頻度を先ず図4
に示す副走査方向に沿った最初の1ライン分(x=0)
においてカウントし、これが終了した段階で度数カウン
タ27〜32以外のカウンタすなわち黒ラン長カウンタ
25および白ラン長カウンタ26を一旦リセットする。
次いで、xの値をインクリメントして同様なカウントを
行い、最終的に1ページ分の黒ラン長および白ラン長の
発生頻度をカウントする。そして、1ページ分のカウン
トを終了した段階で、各度数カウンタ27〜32の値を
図3に示すバス10aを介してCPU10に送るように
する。
In the resolution switching apparatus in the second embodiment, the frequency of occurrence of the black run length and the white run length is first shown in FIG.
For the first line along the sub-scanning direction (x = 0)
The counters other than the frequency counters 27 to 32, that is, the black run length counter 25 and the white run length counter 26 are once reset at the stage of counting.
Then, the value of x is incremented and the same counting is performed, and finally the occurrence frequency of the black run length and the white run length for one page is counted. When the count for one page is completed, the values of the frequency counters 27 to 32 are sent to the CPU 10 via the bus 10a shown in FIG.

【0026】CPU10は、ランレングス統計回路17
から得た「1」〜「3」の黒ラン長および白ラン長の各
々の発生頻度に応じて原稿の繊細さを定量的に判別し、
それに適応した送信解像度を選択する処理を行う。
The CPU 10 has a run length statistical circuit 17
The delicateness of the original is quantitatively determined according to the occurrence frequency of each of the black run length and the white run length of "1" to "3" obtained from
A process for selecting a transmission resolution adapted to that is performed.

【0027】図7はCPUによる解像度切り換え処理の
一例を説明するフローチャートである。なお、この例で
は、副走査方向を3つの解像度(3.851本/mm、
7.71本/mm、15.4本/mm)に切り換える場
合を示している。先ず、CPU10(図3参照)は、ラ
ンレングス統計回路17(図3参照)から各ラン長の度
数カウンタを読み出す処理を行う(ステップS1)。な
お、ここでBRL(1)は黒ラン長「1」の度数、BR
L(2)は黒ラン長「2」の度数、BRL(3)は黒ラ
ン長「3」の度数を示し、WRL(1)は白ラン長
「1」の度数、WRL(2)は白ラン長「2」の度数、
WRL(3)は白ラン長「3」の度数を示している。
FIG. 7 is a flow chart for explaining an example of resolution switching processing by the CPU. In this example, three resolutions in the sub-scanning direction (3.851 lines / mm,
7.71 lines / mm, 15.4 lines / mm). First, the CPU 10 (see FIG. 3) performs a process of reading the frequency counter of each run length from the run length statistical circuit 17 (see FIG. 3) (step S1). Here, BRL (1) is the frequency of the black run length "1", BR
L (2) is the frequency of the black run length “2”, BRL (3) is the frequency of the black run length “3”, WRL (1) is the frequency of the white run length “1”, and WRL (2) is the white. Frequency of run length "2",
WRL (3) indicates the frequency of the white run length "3".

【0028】次に、CPU10(図3参照)は、BRL
(1)+WRL(1)が所定のしきい値T1 よりも小さ
いか否かの比較を行う(ステップS2)。このステップ
S2の判断でYes(BRL(1)+WRL(1)がし
きい値T1 より小さい)となった場合には次のステップ
S3へ進む。反対に、このステップS2の判断でNo
(BRL(1)+WRL(1)がしきい値T1 以上)と
なった場合にはステップS7へ進み、解像度=15.4
本/mmを選択する処理を行う。
Next, the CPU 10 (see FIG. 3) causes the BRL
(1) + WRL (1) is compared to see if it is smaller than a predetermined threshold value T1 (step S2). If the determination in step S2 is Yes (BRL (1) + WRL (1) is smaller than the threshold value T1), the process proceeds to the next step S3. On the contrary, the determination in step S2 is No.
If (BRL (1) + WRL (1) is greater than or equal to the threshold value T1), the process proceeds to step S7, and resolution = 15.4.
A process of selecting books / mm is performed.

【0029】つまり、黒ラン長「1」と白ラン長「1」
との和があるしきい値T1 以上発生しているということ
は、細かい文字や図が原稿内に存在するということにな
り、最も細かい解像度を選択するようにしている。次
に、ステップS2の判断でYesとなった場合には、C
PU10(図3参照)はステップS3の判断すなわちB
RL(1)+WRL(1)+BRL(2)+WRL
(2)がしきい値T2 より小さいか否かの判断を行う。
この判断でYesとなった場合には次のステップS4へ
進み、Noとなった場合にはステップS6において解像
度=7.71本/mmを選択する処理を行う。つまり、
BRL(1)+WRL(1)+BRL(2)+WRL
(2)がしきい値T2 以上となっているということは、
中程度の繊細さの文字や図等が原稿内に存在することに
なり、中程度の解像度を選択するようにしている。
That is, the black run length "1" and the white run length "1".
That is, the fact that the sum of the above occurs more than a certain threshold value T1 means that there are fine characters and figures in the document, and the finest resolution is selected. Next, if the determination in step S2 is Yes, C
The PU 10 (see FIG. 3) makes the determination in step S3, that is, B.
RL (1) + WRL (1) + BRL (2) + WRL
It is determined whether or not (2) is smaller than the threshold value T2.
If the result of this determination is Yes, the process proceeds to the next step S4, and if the result is No, a process of selecting resolution = 7.71 lines / mm is performed in step S6. That is,
BRL (1) + WRL (1) + BRL (2) + WRL
The fact that (2) is above the threshold value T2 means that
Since medium delicate characters and figures are present in the manuscript, the medium resolution is selected.

【0030】また、ステップS3の判断でYesとなっ
た場合には、ステップS4の判断すなわちBRL(1)
+WRL(1)+BRL(2)+WRL(2)+BRL
(3)+WRL(3)がしきい値T3 より小さいか否か
の判断を行う。この判断でNoとなった場合にはステッ
プS6へ進み、中程度の解像度である7.71本/mm
を選択する処理を行う。一方、この判断でYesとなっ
た場合にはステップS5へ進み、最も粗い解像度である
3.851本/mmを選択する処理を行う。
If the determination in step S3 is Yes, the determination in step S4, that is, BRL (1)
+ WRL (1) + BRL (2) + WRL (2) + BRL
(3) + WRL (3) is judged whether it is smaller than the threshold value T3. If the result of this judgment is No, the operation proceeds to step S6, where the medium resolution is 7.71 lines / mm.
The process of selecting is performed. On the other hand, if this determination is Yes, the process proceeds to step S5, and the process of selecting the coarsest resolution of 3.851 lines / mm is performed.

【0031】すなわち、BRL(1)+WRL(1)+
BRL(2)+WRL(2)+BRL(3)+WRL
(3)がしきい値T3 より小さいということは、黒レン
長および白レン長「1」〜「3」の発生頻度が高くない
場合を示している。つまり、黒レン長および白レン長
「4」以上のものが原稿の大半を占めていることにな
り、原稿中の文字や図等が粗いということを表してい
る。このため、ステップS4の判断でYesとなった場
合には、粗い原稿であるとして最も粗い解像度を選択す
るようにしている。
That is, BRL (1) + WRL (1) +
BRL (2) + WRL (2) + BRL (3) + WRL
The fact that (3) is smaller than the threshold value T3 indicates that the black-lens length and the white-lens lengths "1" to "3" are not frequently generated. That is, the black len length and the white len length of “4” or more occupy most of the original, which means that the characters and figures in the original are rough. For this reason, if the determination in step S4 is Yes, the coarsest document is selected and the coarsest resolution is selected.

【0032】CPU10(図3参照)は、以上の処理を
行うことによりデータの送信における解像度を原稿の繊
細さに応じて適宜選択することになる。図3に示すDM
AC14は、CPU10にて選択した解像度に応じて画
像メモリ15から必要な量のデータ読み出しを行う。例
えば、解像度15.4本/mmが選択された場合には、
画像メモリ15に格納されている全データの読み出しを
行い、解像度7.71本/mmが選択された場合には、
画像メモリ15に格納されたデータの主走査2ライン置
きに1ラインのデータの読み出しを行い、解像度3.8
51本/mmが選択された場合には、主走査4ライン置
きに1ラインのデータの読み出を行うようにする。そし
て、DMAC14にて読み出したデータを符号化回路1
6へ転送し、ここで解像度変換を行いモデム18を介し
て変調されたデータを回線へ送出する。
The CPU 10 (see FIG. 3) appropriately selects the resolution in data transmission according to the delicateness of the original by performing the above processing. DM shown in FIG.
The AC 14 reads out a required amount of data from the image memory 15 according to the resolution selected by the CPU 10. For example, if a resolution of 15.4 lines / mm is selected,
When all the data stored in the image memory 15 is read and the resolution of 7.71 lines / mm is selected,
The data stored in the image memory 15 is read every two main scanning lines, and the data of one line is read out to obtain a resolution of 3.8.
When 51 lines / mm is selected, data for one line is read every four lines for main scanning. Then, the data read by the DMAC 14 is used as the encoding circuit 1.
6, the resolution is converted here, and the modulated data is sent to the line via the modem 18.

【0033】このように、第2実施例における解像度切
り換え装置では、所定長さの黒ラン長および白ラン長の
発生頻度を算出して原稿の繊細さを判別し、これに応じ
た適切な送信解像度を選択しているため、原稿の繊細さ
を的確にとらえた解像度切り換えを行うことが可能とな
る。
As described above, in the resolution switching apparatus according to the second embodiment, the frequency of occurrence of the black run length and the white run length of a predetermined length is calculated to determine the delicacy of the original, and the appropriate transmission according to this is calculated. Since the resolution is selected, it is possible to switch the resolution while accurately grasping the delicacy of the original.

【0034】なお、第2実施例においては黒ラン長およ
び白ラン長の発生頻度に基づいて原稿の繊細さを判別す
る例を示したが、黒ラン長または白ラン長のいずれか一
方の発生頻度に基づいて判別するようにしてもよい。ま
た、黒および白のラン長として「1」〜「3」をカウン
トするようなランレングス統計回路17(図3参照)を
用いた例を示したが、さらに細かい解像度切り換えを行
うため、これよりも長いラン長の発生頻度をカウントす
るようにしてもよい。
In the second embodiment, an example of discriminating the fineness of a document based on the occurrence frequency of the black run length and the white run length has been shown. However, either the black run length or the white run length is generated. The determination may be made based on the frequency. Also, an example in which the run length statistical circuit 17 (see FIG. 3) that counts “1” to “3” as the black and white run lengths is used has been shown. The frequency of occurrence of a long run length may be counted.

【0035】また、副走査方向に沿った黒ラン長および
白ラン長の発生頻度をカウントする例を示したが、主走
査方向に沿った黒ラン長および白ラン長の発生頻度をカ
ウントして主走査方向における解像度の切り換えを行う
場合であっても同様である。さらに、ランレングス統計
回路17を専用ハードウェアとして利用する例を示した
が、プログラムされたCPU10によっても実現しても
同様である。また、解像度変換の手法として単純間引き
(主走査数ライン置きに1ラインのデータを読み出す手
法)を用いたが、本発明はこれに限定されず、例えば廃
棄ラインを利用したある種の画像処理による解像度変換
等、他の手法であってもかまわない。
Although an example of counting the occurrence frequency of the black run length and the white run length along the sub-scanning direction has been shown, the occurrence frequency of the black run length and the white run length along the main scanning direction is counted. The same applies when the resolution is switched in the main scanning direction. Furthermore, although an example in which the run length statistical circuit 17 is used as dedicated hardware has been shown, the same applies to the case where it is realized by the programmed CPU 10. Further, as the resolution conversion method, simple thinning (a method of reading out one line of data every other number of main scanning lines) is used, but the present invention is not limited to this. For example, a certain type of image processing using a discard line is used. Other methods such as resolution conversion may be used.

【0036】また、第1実施例および第2実施例では、
いずれも画像データ(2値化データ)をページメモリ3
や画像メモリ15に格納する例を示したが、これらを用
いずに順次符号化した2値化データにより「白」、
「黒」すなわちデータの「0」、「1」の発生頻度を算
出するようにしてもよい。この発生頻度を算出する領域
としては1ラインや1ページに限定されるものではな
く、ある特定面積毎の発生頻度を算出するようにしても
よく、この場合には、その特定面積毎の「0」、「1」
の発生頻度の分布率を利用して原稿の繊細さを判別すれ
ばよい。
Further, in the first and second embodiments,
In both cases, image data (binarized data) is stored in page memory 3
And an example in which the image data is stored in the image memory 15 is shown.
The frequency of occurrence of “black”, that is, “0” and “1” of the data may be calculated. The area for calculating the occurrence frequency is not limited to one line or one page, and the occurrence frequency for each specific area may be calculated. In this case, “0” for each specific area is calculated. , "1"
The delicateness of the document may be determined by using the distribution rate of the occurrence frequency of.

【0037】さらに、本発明における解像度切り換え装
置はファクシミリから成る通信機器に備えられている場
合以外にも、解像度が可変な各種通信機器例えばパーソ
ナルコンピュータによる通信において適用しても同様で
ある。
Further, the resolution switching device according to the present invention is not limited to the case where it is provided in a communication device composed of a facsimile, but the same applies when it is applied to communication by various communication devices having variable resolutions such as a personal computer.

【0038】[0038]

【発明の効果】以上説明したように、本発明の解像度切
り換え装置によれば次のような効果がある。すなわち、
本発明では算出部によって原稿の繊細さを自動的に判別
し、選択部にてその判別に基づいた解像度の選択を行う
ため、オペレータによる解像度の切り換えおよび選択操
作が不要となり、しかも最適な解像度を自動的に設定す
ることが可能となる。これにより、原稿のデータを十分
な鮮明度で伝送することがきるとともに、適切な伝送時
間内に送信することができるため通信コストの低減を図
ることが可能となる。
As described above, the resolution switching device of the present invention has the following effects. That is,
In the present invention, the calculation unit automatically determines the delicacy of the original, and the selection unit selects the resolution based on the determination. Therefore, the operator does not need to switch the resolution and perform the selection operation, and the optimum resolution can be obtained. It becomes possible to set automatically. As a result, the data of the original can be transmitted with sufficient definition, and since it can be transmitted within an appropriate transmission time, the communication cost can be reduced.

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

【図1】本発明の第1実施例を説明するブロック図であ
る。
FIG. 1 is a block diagram illustrating a first embodiment of the present invention.

【図2】入力部のタイミングチャートである。FIG. 2 is a timing chart of an input unit.

【図3】本発明の第2実施例を説明する構成図である。FIG. 3 is a configuration diagram illustrating a second embodiment of the present invention.

【図4】副操作方向のラン長を説明する図である。FIG. 4 is a diagram illustrating a run length in a sub operation direction.

【図5】ランレングス統計回路の内部構成図である。FIG. 5 is an internal configuration diagram of a run length statistical circuit.

【図6】ランレングス統計回路のタイミングチャートで
ある。
FIG. 6 is a timing chart of a run length statistical circuit.

【図7】解像度切り換え処理を説明するフローチャート
である。
FIG. 7 is a flowchart illustrating a resolution switching process.

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

1 センサ 2 画像処理部 3 ページメモリ 4 算出部 5 比較部 6 選択部 7 通信制御部 10 CPU 17 ランレングス統計回路 41 入力部 42 判定部 43 カウンタ部 51 しきい値記憶部 61 操作部 1 Sensor 2 Image Processing Section 3 Page Memory 4 Calculation Section 5 Comparison Section 6 Selection Section 7 Communication Control Section 10 CPU 17 Run Length Statistical Circuit 41 Input Section 42 Judgment Section 43 Counter Section 51 Threshold Storage Section 61 Operation Section

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 xy座標系から成る所定領域のデータを
2値化して、所定の解像度で送信する通信機器におい
て、 2値化された前記データにおける一定領域での「1」ま
たは「0」の発生頻度を算出する算出手段と、 前記算出手段にて算出された「1」または「0」の発生
頻度を所定のしきい値と比較する比較手段と、 前記比較手段により得られた結果に基づき前記データを
送信する際の解像度を選択する選択手段とを備えている
ことを特徴とする解像度切り換え装置。
1. A communication device for binarizing data in a predetermined area consisting of an xy coordinate system and transmitting the data at a predetermined resolution, in which "1" or "0" in a certain area in the binarized data is set. Calculation means for calculating the occurrence frequency, comparison means for comparing the occurrence frequency of "1" or "0" calculated by the calculation means with a predetermined threshold value, and based on the result obtained by the comparison means A resolution switching device, comprising: a selection unit that selects a resolution when transmitting the data.
【請求項2】 前記算出手段は、2値化された前記デー
タの「1」、「0」の変化点数により前記発生頻度を算
出することを特徴とする請求項1記載の解像度切り換え
装置。
2. The resolution switching device according to claim 1, wherein the calculation means calculates the occurrence frequency based on the number of change points of "1" and "0" of the binarized data.
【請求項3】 前記算出手段は、2値化された前記デー
タの「1」または「0」における所定のラン長の頻度に
より前記発生頻度を算出することを特徴とする請求項1
記載の解像度切り換え装置。
3. The calculation means calculates the occurrence frequency based on a frequency of a predetermined run length in “1” or “0” of the binarized data.
The resolution switching device described.
JP6316153A 1994-12-20 1994-12-20 Resolution switching device Pending JPH08172522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6316153A JPH08172522A (en) 1994-12-20 1994-12-20 Resolution switching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6316153A JPH08172522A (en) 1994-12-20 1994-12-20 Resolution switching device

Publications (1)

Publication Number Publication Date
JPH08172522A true JPH08172522A (en) 1996-07-02

Family

ID=18073872

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6316153A Pending JPH08172522A (en) 1994-12-20 1994-12-20 Resolution switching device

Country Status (1)

Country Link
JP (1) JPH08172522A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006345321A (en) * 2005-06-09 2006-12-21 Olympus Imaging Corp Data coding apparatus, data decoding apparatus, data coding method, data decoding method, and program
JP2006345320A (en) * 2005-06-09 2006-12-21 Olympus Imaging Corp Data coding apparatus, data decoding apparatus, data coding method, data decoding method, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006345321A (en) * 2005-06-09 2006-12-21 Olympus Imaging Corp Data coding apparatus, data decoding apparatus, data coding method, data decoding method, and program
JP2006345320A (en) * 2005-06-09 2006-12-21 Olympus Imaging Corp Data coding apparatus, data decoding apparatus, data coding method, data decoding method, and program
JP4493552B2 (en) * 2005-06-09 2010-06-30 オリンパスイメージング株式会社 Data encoding apparatus, data decoding apparatus, data encoding method, data decoding method, and program
JP4493551B2 (en) * 2005-06-09 2010-06-30 オリンパスイメージング株式会社 Data encoding apparatus, data decoding apparatus, data encoding method, data decoding method, and program

Similar Documents

Publication Publication Date Title
US4996603A (en) Image processing system
EP0187724A2 (en) Halftone picture processing apparatus
JPH05227425A (en) Improvement in automatic image segmentation
JPH04356869A (en) Image processor
JPH0632072B2 (en) Slice circuit for multilevel pattern signals
US5341227A (en) Dot image discrimination circuit for discriminating a dot image from other types of images
EP0501450A2 (en) Apparatus for distinguishing between different areas of an image
JPH07262374A (en) Image processor
JPH0626436B2 (en) Method and apparatus for recognizing halftone image information
JPH08172522A (en) Resolution switching device
JP4007134B2 (en) Image processing device
JPH0888770A (en) Image processing unit
JPS6359272A (en) Picture processor
JPH082083B2 (en) Multi-level image block coding device
JP3303990B2 (en) Image signal processing device
JP3216165B2 (en) Image region identification device and image region identification method
JPS6080365A (en) Processor of pseudo medium gradation picture
JP2878695B2 (en) Image processing apparatus and multi-value image estimation method
JP2521744B2 (en) Image processing device
JPH0951438A (en) Image processing unit
JPS62241082A (en) Detector for characteristics of picture data
JPH10327323A (en) Image reader, read image evaluation method and storage medium
JP2608964B2 (en) Image processing device
JP3146517B2 (en) Image processing device
JPH04287565A (en) Picture processor