KR100297117B1 - How to Convert Fax Data - Google Patents

How to Convert Fax Data Download PDF

Info

Publication number
KR100297117B1
KR100297117B1 KR1019980062358A KR19980062358A KR100297117B1 KR 100297117 B1 KR100297117 B1 KR 100297117B1 KR 1019980062358 A KR1019980062358 A KR 1019980062358A KR 19980062358 A KR19980062358 A KR 19980062358A KR 100297117 B1 KR100297117 B1 KR 100297117B1
Authority
KR
South Korea
Prior art keywords
data
dimensional
determined
line
coded data
Prior art date
Application number
KR1019980062358A
Other languages
Korean (ko)
Other versions
KR20000045764A (en
Inventor
박권원
Original Assignee
서평원
엘지정보통신주식회사
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 서평원, 엘지정보통신주식회사 filed Critical 서평원
Priority to KR1019980062358A priority Critical patent/KR100297117B1/en
Publication of KR20000045764A publication Critical patent/KR20000045764A/en
Application granted granted Critical
Publication of KR100297117B1 publication Critical patent/KR100297117B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • H04N1/411Bandwidth or redundancy reduction for the transmission or storage or reproduction of two-tone pictures, e.g. black and white pictures
    • H04N1/413Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information
    • H04N1/417Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information using predictive or differential encoding
    • H04N1/4177Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information using predictive or differential encoding encoding document change data, e.g. form drop out data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N2201/00Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
    • H04N2201/0077Types of the still picture apparatus
    • H04N2201/0093Facsimile machine

Abstract

1차원 코딩방식을 기본으로 2차원 코딩을 하는 알고리즘을 역으로 하여 2차원으로 코딩된 팩시밀리 데이터를 분석하여 1차원의 팩시밀리 데이터로 변환하는 팩시밀리 데이터 변환방법에 관한 것으로, 라인의 시작을 표시하는 데이터를 통해 한 라인의 코딩된 데이터가 1차원 코딩 데이터 인지 2차원 코딩 데이터인지를 판단하는 과정과, 상기에서 2차원의 코딩 데이터인 것으로 판단되면 한 라인의 코딩된 데이터의 개수를 카운트하는 카운터를 "0"으로 초기화한 다음 데이터 비트를 분석하여 데이터 비트 "1"이 검출되기까지의 "0"의 개수를 카운트하여 해당 모드를 판단하는 과정과, 상기 과정에서 판단되는 모드에 따라, 처음 변화하는 요소 'a0'의 우측 다음 변화 요소인 'a1'과, 상기 'a0'의 우측에서 기준 라인의 첫 번째 변화하는 요소임과 동시에 'a0'와 반대되는 색깔 요소인 'bl'사이의 거리 위치를 판단한후, 카운트를 증가시킨 다음 1차원 코딩을 실행하는 과정을 포함한다.A method of converting facsimile data that analyzes two-dimensional coded facsimile data into one-dimensional facsimile data by reversing an algorithm that performs two-dimensional coding based on a one-dimensional coding method. Determining whether a line of coded data is 1-dimensional coded data or 2-dimensional coded data through, and if it is determined that the two-dimensional coded data is a counter for counting the number of coded data of a line " Initializing to 0 ", analyzing the data bits, counting the number of" 0 "s until the data bit" 1 "is detected, and determining the corresponding mode, and the first changing factor according to the mode determined in the process. 'a1', which is the next change element on the right side of 'a0', and 'a0' and the half, while being the first changing element of the reference line on the right side of 'a0' After determining the distance position between 'bl', which is the color element to be applied, increasing the count and then performing one-dimensional coding.

Description

팩시밀리 데이터 변환방법How to Convert Fax Data

본 발명은 T.4 프로토콜의 팩시밀리 데이터 처리방법에 관한 것으로, 보다 상세하게는 1차원 코딩방식을 기본으로 2차원 코딩을 하는 알고리즘을 역으로 하여 2차원으로 코딩된 팩시밀리 데이터를 분석하여 1차원의 팩시밀리 데이터로 변환하는 팩시밀리 데이터 변환방법에 관한 것이다.The present invention relates to a method for processing facsimile data in the T.4 protocol, and more particularly, to analyzing two-dimensional coded facsimile data based on a two-dimensional coding algorithm based on a one-dimensional coding method. The present invention relates to a method of converting facsimile data into facsimile data.

종래에는 T.4 프로토콜에 따라 2차원으로 코딩된 팩시밀리 데이터를 1차원으로 역변환하는 방법이 제시되어 있지 않아 1차원 코딩된 데이터를 2차원 방식을 채택하는 기기에 채택하여 사용할 수 없는 문제점이 있으며, 1차원 코딩 방식을 사용하는 송신측 팩시밀리와 2차원 코딩 방식을 사용하는 팩시밀리간의 상호 호환이 이루어지지 않는 문제점이 있었다.In the related art, since a method of inversely converting facsimile data coded in two dimensions according to the T.4 protocol into one dimension has not been proposed, there is a problem that the one-dimensional coded data cannot be adopted and used in a device adopting the two-dimensional method. There is a problem in that mutual compatibility between a transmitting side facsimile using a 1D coding scheme and a facsimile using a 2D coding scheme is not achieved.

본 발명은 전술한 바와 같은 제반적인 문제점을 감안하여 안출된 것으로, 그 목적은 전송 시간을 단축하며 에러의 발생이 최소화되는 2차원으로 코딩된 데이터를 1차원으로 역변환하여 팩시밀리 데이터의 전송에 신뢰성과 신속성을 제공하며, 1차원 코딩 방식을 사용하는 기기나 2차원 코딩방식을 사용하는 기기에 범용적으로 사용하여 팩시밀리 데이터의 전송에 편리성을 제공하도록 한 것이다.SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and its object is to reduce the transmission time and minimize the generation of errors by inversely converting two-dimensional coded data into one-dimensional reliability and transmission of facsimile data. It is designed to provide speed and to provide convenience to the transmission of facsimile data by using it universally for devices that use one-dimensional coding or devices that use two-dimensional coding.

도1은 본 발명에 따른 T.4 프로토콜의 팩스 데이터를 2차원 코딩하는 흐름도이고,1 is a flowchart for two-dimensional coding of fax data of the T.4 protocol according to the present invention;

도2a는 각 라인에서 연달아 이어진 색깔의 개수에 따라 데이터가 정해지는 1차원 코딩 테이블이며,FIG. 2A is a one-dimensional coding table in which data is determined according to the number of colors consecutive in each line.

도2b는 각 라인에서 연달아 이어진 색깔의 개수에 따라 데이터가 정해지는 메이크 업 코딩 테이블이며,2B is a make-up coding table in which data is determined according to the number of colors successively arranged in each line.

도2c는 각 라인에서 흑백 연속 연속 개수에 따라 데이터가 정해지는 메이크업 코딩 테이블이며,2C is a makeup coding table in which data is determined according to the number of consecutive black and white continuous lines in each line;

도3은 본 발명에 따라 T.4 프로토콜의 2차원 팩스 데이터를 1차원 팩스 데이터로 변환하는 흐름도이며,3 is a flowchart for converting two-dimensional fax data of the T.4 protocol into one-dimensional fax data according to the present invention;

도4는 각 모드별 1차원 데이터 코딩을 실행하는 흐름도이다.4 is a flowchart for performing one-dimensional data coding for each mode.

상기한 바와 같은 목적을 달성하기 위한 본 발명의 특징은, 팩시밀리 데이터 전송방법에 있어서, 라인의 시작을 표시하는 데이터를 통해 한 라인의 코딩된 데이터가 1차원 코딩 데이터 인지 2차원 코딩 데이터인지를 판단하는 과정과; 상기에서 2차원의 코딩 데이터인 것으로 판단되면 한 라인의 코딩된 데이터의 개수를 카운트하는 카운터를 "0"으로 초기화한 다음 데이터 비트를 분석하여 데이터 비트 "1"이 검출되기까지의 "0"의 개수를 카운트하여 해당 모드를 판단하는 과정과; 상기 과정에서 판단되는 모드에 따라, 처음 변화하는 요소 'a0'의 우측 다음 변화 요소인 "a1'과, 상기 'a0'의 우측에서 기준 라인의 첫 번째 변화하는 요소임과 동시에 'a0'와 반대되는 색깔 요소인 'b1'사이의 거리 위치를 판단한 후, 카운트를 증가시킨 다음 1차원 코딩을 실행하는 과정을 포함하는데 있다.A feature of the present invention for achieving the above object is, in the facsimile data transmission method, it is determined whether the coded data of a line is one-dimensional coded data or two-dimensional coded data through the data indicating the start of the line Process of doing; If it is determined that the data is two-dimensional coded data, the counter for counting the number of coded data in one line is initialized to "0", and then the data bit is analyzed to determine the "0" until the data bit "1" is detected. Counting the number to determine the mode; According to the mode determined in the above process, "a1", which is the right next change element of the first changing element 'a0', and the first changing element of the reference line at the right of the 'a0', and opposite to 'a0' The method includes determining a distance position between 'b1', which is a color component, and increasing a count, and then executing one-dimensional coding.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 일 실시예를 상세히 설명하면 다음과 같다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 발명은 라인의 시작을 표시하는 데이터를 이용하여 한 라인의 데이터가 1차원 데이터인지 2차원 데이터인지를 구분한 다음 1차원 데이터를 기준으로 그 다음 2차원 데이터를 분석하여 1차원 데이터의 위치와 색깔을 바탕으로 2차원 데이터의 색깔 종류를 알아서 1차원 코딩 데이터로 다시 변환하여 준다.According to the present invention, the data of a line is distinguished from one-dimensional data or two-dimensional data by using the data indicating the start of a line, and then the second two-dimensional data is analyzed based on the one-dimensional data to determine the position of the one-dimensional data. Based on the color, the color type of the 2D data is recognized and converted back into 1D coded data.

라인 시작 데이터는 "000000000001" 이라는 12비트로 구성되어 있으며 그 다음에 따르는 한 비트의 값으로 다음 데이터가 1차원인지 2차원인지를 구분한다.The line start data consists of 12 bits called "000000000001", and the value of one bit following it distinguishes whether the next data is one-dimensional or two-dimensional.

2차원 데이터를 분석하는데 있어 데이터의 "1"의 위치를 가지고 데이터의 모드를 구분하는데, 통과모드, 수직모드, 평행모드 세 종류로 구분되며, 수직모드에서는 7종류로 다시 분리된다.In analyzing two-dimensional data, the data is divided into three types by the position of "1" of the data, and it is divided into three types of pass mode, vertical mode, and parallel mode.

이러한 각 모드를 이용하여 2차원 데이터를 분석하면 데이터가 어떤 모드인지를 판별할 수 있으며, 그 다음 1차원 데이터를 이용하여 2차원 데이터의 1차원으로 코딩될 데이터 개수와 색깔 종류들을 구분한다.By analyzing the two-dimensional data using each of these modes, it is possible to determine what mode the data is. Then, the number and color types of the data to be coded in the first dimension of the two-dimensional data are distinguished using the one-dimensional data.

1차원 데이터의 경우 한 색깔이 연달아 이어진 개수를 이용하여 그 수에 맞는 1차원 데이터를 만들어 내는데, 1차원 데이터를 만들어 내기 위해서는 1차원 데이터를 만들어 주는 메이크 업(MAKE-UP) 코드와 종단(TERMINATING) 코드의 값을 이용한다.In the case of one-dimensional data, one color is used to create a one-dimensional data that matches the number. To make one-dimensional data, a make-up code and a termination code are used to create one-dimensional data. ) Use the value of the code.

이하, T.4프로토콜에서 제시하는 1차원 팩시밀리 데이터를 2차원 팩시밀리 데이터로 변환하는 과정을 도1을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, a process of converting 1D facsimile data presented by the T.4 protocol into 2D facsimile data will be described in detail with reference to FIG. 1.

문서가 입력되면 2차원 코딩을 1차원을 기준으로 몇 라인까지 코딩할 것인지를 판단할 수 있도록 제1라인에 표시되는 K 값인지를 판단한다(S101).When the document is input, it is determined whether the K value is displayed on the first line so as to determine how many lines to code the 2D coding based on the 1D (S101).

상기에서 제1라인에 표시되는 K 값이 2차원 코딩의 실행인 것으로 판단되면 최종 라인으로 부터 1차원 데이터인지 2차원 데이터인지를 인식하여(S102) 2차원 데이터인 것으로 판단되면 코딩할 라인의 처음 변화하는 요소나 기준 요소로 가상의 흰색 요소인 색상종류 'a0'를 제1라인 전에 위치시킨 다음(S103), 코딩 라인 'a0' 우측 다음 변화하는 요소 'a1'과 'a0'의 우측에서 기준 라인의 첫 번째 변화하는 요소임과 동시에 'a0'와 반대되는 색깔 요소인 'b1'과 기준 라인에서 'b1'의 우측 다음 변화하는 요소인 'b2'를 검출한다(S104-S106).If it is determined that the K value displayed in the first line is execution of two-dimensional coding, it is recognized whether the two-dimensional data is one-dimensional data or two-dimensional data from the final line (S102). A color type 'a0', which is a virtual white element, is placed before the first line as a changing element or a reference element (S103), and then, on the right side of the coding element 'a0' and then on the right of the changing elements 'a1' and 'a0'. At the same time as the first changing element of the line, the color element 'b1' opposite to 'a0' and 'b2', which is the next changing element to the right of 'b1' in the reference line, are detected (S104-S106).

이후, 'b1'의 우측 다음 변화하는 요소인 'b2'가 'a0' 우측 다음 변화하는 요소 'a1'의 좌측에 위치 하는지를 판단하여(S107), 좌측에 위치하는 것으로 판단되면 통과모드의 실행으로 인식하고(S108), 코딩할 라인의 기준 요소인 'a0'를 기준 라인에서 'b1'의 우측 다음 변화하는 요소인 'b2' 아래에 위치시킨다(S109).Subsequently, it is determined whether 'b2', which is the next changing element on the right of 'b1', is located on the left side of the 'a1', which is changing on the right after 'a0' (S107). In operation S108, 'a0', which is a reference element of the line to be coded, is positioned below 'b2', which is a right-changing element next to 'b1', in the reference line (S109).

상기에서 'b1'의 우측 다음 변화하는 요소인 'b2'가 'a0' 우측 다음 변화하는 요소 'a1'의 좌측에 위치하지 않으면, 'a1'과 'b1'의 거리를 계산하여 절대값이 설정된 기준값 3 이하인지를 판단한다(S110).If the element 'b2', which changes next to the right of 'b1', is not located on the left of the element 'a1', which changes after the right of 'a0', the absolute value is set by calculating the distance between 'a1' and 'b1'. It is determined whether the reference value 3 or less (S110).

상기에서 'a'과 'b1' 거리의 절대값이 기준값인 3을 초과하는 것으로 판단되면 코딩 라인의 'a1' 우측 다음 변화하는 요소 'a2'를 검출한 다음(S111) 수직모드의 코딩인 것으로 인식하고(S112), 코딩할 라인의 기준 요소인 'a0'의 위치를 코딩라인의 'a0' 우측 다음 변화하는 요소인 'a1'의 위치에 위치시킨다(S113).If it is determined that the absolute value of the distance between 'a' and 'b1' exceeds 3, which is a reference value, it detects the element 'a2' that changes next to the right side of 'a1' of the coding line (S111) and then determines that the coding is in vertical mode. In operation S112, the position of 'a0', which is the reference element of the line to be coded, is positioned at the position of 'a1', which is the next changing element after the right of 'a0' of the coding line (S113).

상기에서 'a'과 'b1' 거리의 절대값이 기준값인 3 이하인 것으로 판단되면 평행 모드의 실행인 것으로 인식하고(S114) 코딩할 라인의 기준 요소인 'a0'의 위치를 코딩 라인의 'a1' 우측 다음 변화하는 요소인 'a2'에 위치시킨다(S115).If it is determined that the absolute values of the distances 'a' and 'b1' are less than or equal to 3 as the reference value, it is recognized that the parallel mode is executed (S114) and the position of 'a0' which is the reference element of the line to be coded is determined as 'a1' of the coding line. It is positioned at 'a2' which is the next changing element on the right (S115).

상기한 바와 같은 코딩 라인의 위치 변경에 따라 검출되는 데이터를 하기의 표 1에 도시되어 있는 T. 프로토콜 제공 2차원 테이블에 대입하여 코딩이 진행되는 상태에서 최종 라인이 검출되는지를 판단한다(S116).Substituting the data detected according to the position change of the coding line as described above into the T. protocol provided two-dimensional table shown in Table 1 below, it is determined whether or not the final line is detected in the coding progress state (S116). .

[표 1]TABLE 1

상기에서 최종 라인이 검출되지 않은 상태이면 S104로 리턴되어 상기한 과정을 반복적으로 실행하고, 최종 라인이 검출되면 현재의 페이지가 전송되는 전체의 페이지중에서 최종 페이지인지를 판단한다(S117).If the last line is not detected, the process returns to S104 and repeatedly executes the above-described process. If the last line is detected, it is determined whether the current page is the last page among all pages transmitted (S117).

상기에서 최종 페이지가 아니면 리턴되어 새로운 페이지 입력에 따라 제1라인에서 K값을 검출하는 동작을 반복적으로 실행하고 최종 페이지 인 것으로 판단되면 제어신호를 초기화한 이후(S118) 종료한다.If it is not the last page, it is returned and repeatedly executes the operation of detecting the K value in the first line according to the input of a new page. If it is determined that the final page is the last page, the control signal is initialized (S118).

상기 S101에서 처음 라인에서 검출되는 K값이 1차원 코딩을 요구하는 값이면 설정된 알고리즘에 따라 1차원 코딩 동작을 최종 페이지까지 실행한다(S120,S121).If the K value detected in the first line in S101 is a value requiring 1D coding, the 1D coding operation is executed up to the last page according to the set algorithm (S120 and S121).

상기한 바와 같은 과정을 통해 2차원으로 변환된 팩시밀리 데이터를 1차원으로 변환시키는 동작을 도3을 참조하여 설명하면 다음과 같다.An operation of converting the facsimile data converted into two dimensions through one process as described above to one dimension will be described with reference to FIG. 3.

먼저, 코딩하고자 입력되는 데이터가 1차원으로 변환된 데이터인지 2차원으로 변환된 데이터인지를 구분하는데, 1차원 데이터의 경우 최종 라인을 지시하는 EOL의 다음 비트가 1로 되어 있고, 2차원의 데이터의 경우 최종 라인을 지시하는 EOL의 다음 비트가 0으로 되어 있으므로, 최종 라인 다음 비트가 "0" 인지 "1"인지를 구분하여 입력되는 데이터가 1차원 데이터 인지 또는 2차원 데이터 인지를 판단한다(S210).First, it distinguishes whether the input data to be coded is data transformed in one dimension or data converted in two dimensions. In the case of one-dimensional data, the next bit of the EOL indicating the final line is 1, and the two-dimensional data In this case, since the next bit of the EOL indicating the last line is 0, it is determined whether the input data is one-dimensional data or two-dimensional data by distinguishing whether the next bit of the last line is "0" or "1". S210).

상기에서 판단된 데이터가 2차원으로 코딩된 데이터인 것으로 판단되면 기준라인으로서 1차원 코딩 데이터를 사용하여 2차원 코딩 데이터를 1차원 데이터로 변환시기는 모드로 진입한 다음 한 라인의 코딩 데이터를 카운트한 카운터 값을 "0"으로 초기화한 다음(S220) 데이터 비트를 분석하여 데이터 비트가 "1"이 검출될 때까지 "0"의 개수를 카운트한다(S230).If it is determined that the data determined in the above is the two-dimensional coded data, the mode enters a mode to convert the two-dimensional coded data into the one-dimensional data using the one-dimensional coded data as a reference line, and then counts one line of coded data. One counter value is initialized to "0" (S220) and then the number of "0" is counted until the data bit is detected by "1" by analyzing the data bits (S230).

상기에서 한 라인의 코딩 데이터는 1728개의 검정 및 흰색의 요소를 가리키는 코딩 데이터를 기본으로 하나 팩시밀리 용지에 따라 혹은 더 선명한 이미지를 나타내기 위하여 그 이상의 요소로 구성되며, 한 라인이 몇 개의 요소로 이루어지던 간에 한 라인 단위로 변환하기 때문에 어떤 길이의 데이터도 변환되어 진다.The coding data of one line is composed of one or more elements according to one facsimile paper or a sharper image based on coding data indicating 1728 black and white elements. In either case, any length of data is converted because it is converted to one line.

상기에서 데이터 비트가 "1"이 검출되지 까지 카운트를 진행하는 상태에서 "0"의 개수가 제로인 경우(S231-1) 수직모드 V(0)로 'a1'과 'b1'의 이격된 거리가 "0"임을 의미한다.If the number of "0" is zero in the counting state until the data bit "1" is detected (S231-1), the distance between a1 and b1 in the vertical mode V (0) Means "0".

이는 2차원 코딩 데이터 위치 'a1' 바로 위에 1차원 코딩 데이터 'b1'이 존재하고 이는 바로 1차원 코딩 데이터를 2차원 코딩 데이터로 변환하는 과정에서 수직모드 V(0)임을 의미하므로 "1"이 검출될 때 까지의 데이터 개수에다 데이터 비트 "1"의 개수를 더하면 카운트 값이 1이 되어 "1" 만큼 데이터 비트가 증가되어 다음변환 데이터는 데이터 비트 "1" 다음의 데이터 비트부터 시작한다.This means that the one-dimensional coded data 'b1' exists just above the two-dimensional coded data position 'a1', which means that the vertical mode V (0) is converted to the two-dimensional coded data. When the number of data bits "1" is added to the number of data until it is detected, the count value becomes 1 and the data bits are increased by "1" so that the next converted data starts with the data bits after the data bits "1".

상기와 같이 수직모드 V(0)에서의 카운트 1이 증가되면(S231-3) 이전 2차원 코딩 데이터는 1차원으로 변환되어 진다(S240).When the count 1 in the vertical mode V (0) is increased as described above (S231-3), the previous two-dimensional coded data is converted into one dimension (S240).

또한, 상기에서 데이터 비트가 "1"이 검출되지 까지 카운트를 진행하는 상태에서 "0"의 개수가 1인 경우(S232-1) 수직모드 V1(1),Vr(1)이므로, 그 다음 비트의 상태가 비트 "0" 또는 "1" 인가를 구분한다(S232-2).In addition, when the number of "0" is 1 in the counting state until the data bit "1" is detected in the above (S232-1), since the vertical mode V1 (1), Vr (1), the next bit Distinguish whether the state of bit is "0" or "1" (S232-2).

상기에서 다음 비트가 "0" 일때는 'a1'과 'b1'의 이격된 거리가 "1" 이며 'a1'의 위치가 'b1' 의 좌측에 위치되어 있는 것을 의미하는 수직모드V1(1)인 것으로 판단하고(S232-3,232-4), 다음 비트가 "1" 일 때는 'a1'과 'b1'의 이격된 거리가 "1"이며 'a1'의 위치가 'b1'의 우측에 위치되어 있는 것을 의미하는 수직모드 Vr(1)인 것으로 판단한다(S232-5,S232-6).When the next bit is "0", the vertical mode V1 (1) means that the spaced distance between "a1" and "b1" is "1" and the position of "a1" is located to the left of "b1". (S232-3, 232-4), when the next bit is "1", the spaced distance between "a1" and "b1" is "1" and the position of "a1" is located to the right of "b1" It is determined that the vertical mode Vr (1) which means there is (S232-5, S232-6).

따라서, "0"의 개수와 데이터 비트 "1" 및 그 다음 비트까지 카운트를 3만큼 증가시켜(S232-7) 2차원 코딩된 데이터를 1차원 데이터로의 변환을 실행한다.Accordingly, the count is incremented by three (S232-7) to the number of " 0 " and the data bit " 1 " and the next bit (S232-7) to convert the two-dimensional coded data into one-dimensional data.

상기에서 데이터 비트가 "1"이 검출되지 까지 카운트를 진행하는 상태에서 "0"의 개수가 2개인 경우(S233-1) 평행모드이며(S233-2) 'a1'과 'b1'의 이격된 거리가 설정된 값 3이하인 것을 의미한다.When the number of "0" s is two (S233-1) in the state of proceeding counting until the data bit "1" is detected in the above (S233-1) in the parallel mode (S233-2) spaced between 'a1' and 'b1' It means that the distance is below the set value 3.

따라서, 평행모드에서는 1차원 데이터를 2차원 데이터로 변환할 때도 'a0', 'al'의 위치와 'a1','a2'의 위치에 따라서 1차원 코딩 데이터로 2차원 코딩 데이터를 만들어 냄으로 이 데이터는 2차원 데이터 임과 동시에 1차원 데이터이므로 1차원 코딩 데이터로의 변환에서 그대로 사용하며, 카운트는 1차원 코딩 데이터의 비트 만큼 증가시킨다(S233-3).Therefore, in parallel mode, even when converting one-dimensional data into two-dimensional data, two-dimensional coded data is generated from one-dimensional coded data according to the positions of 'a0' and 'al' and 'a1' and 'a2'. Since this data is two-dimensional data and one-dimensional data, it is used as it is in the conversion to the one-dimensional coded data, and the count is increased by the bit of the one-dimensional coded data (S233-3).

상기에서 데이터 비트가 "1"이 검출되지 까지 카운트를 진행하는 상태에서 "0"의 개수가 3인 경우(S234-1) 통과모드이며(S234-2), 'a1'의 위치가 'b1'의 우측에 위치함을 의미하며 카운트는 "0"의 개수 "3"과 "1"의 개수 "1"을 더하여 "4"만큼 중가시킨다(S234-3).If the number of "0" is 3 in the state that the data bit is counted until the "1" is detected (S234-1), the pass mode (S234-2), the position of 'a1' is 'b1' It means that it is located on the right side of the count is added to the number "3" of "0" and the number "1" of "1" by weighting "4" (S234-3).

상기에서 데이터 비트가 "1"이 검출되지 까지 카운트를 진행하는 상태에서 "0"의 개수가 4인 경우(S235-1) 수직모드 V1(2),Vr(2)이므로, 그 다음 비트의 상대가 비트 "0" 또는 "1" 인가를 구분한다(S235-2).When the number of "0" is 4 in the state where the count is progressed until the data bit "1" is detected (S235-1), since the vertical mode V1 (2) and Vr (2), the relative of the next bit Distinguishes whether the bit is "0" or "1" (S235-2).

상기에서 다음 비트가 "0" 일때는 'a1'과 'b1'의 이격된 거리가 "2" 이며 'a1'의 위치가 'b1' 의 좌측에 위치되어 있는 것을 의미하는 수직모드V1(2)인 것으로 판단하고(S235-3,235-4), 다음 비트가 "1"일 때는 'a1'과 'b1'의 이격된 거리가 "2"이며 'a1'의 위치가 'b1'의 우측에 위치되어 있는 것을 의미하는 수직모드 Vr(2)인 것으로 판단한다(S235-5,S235-6).When the next bit is "0", the vertical mode V1 (2) means that the spaced distance between "a1" and "b1" is "2" and the position of "a1" is located to the left of "b1". (S235-3, 235-4), when the next bit is "1", the spaced distance between "a1" and "b1" is "2" and the position of "a1" is located to the right of "b1" It is determined that the vertical mode Vr (2), which means there is (S235-5, S235-6).

따라서, "0"의 개수와 데이터 비트 "1" 및 그 다음 비트까지 카운트를 6만큼 증가시켜(S235-7) 2차원 코딩된 데이터를 1차원 데이터로의 변환을 실행한다.Therefore, the count is increased by 6 to the number of " 0 " and the data bit " 1 " and the next bit (S235-7) to convert the two-dimensional coded data into one-dimensional data.

상기에서 데이터 비트가 "1"이 검출되지 까지 카운트를 진행하는 상태에서 "0"의 개수가 5인 경우(S236-1) 수직모드 V1(3),Vr(3)이므로, 그 다음 비트의 상태가 비트 "0" 또는 "1" 인가를 구분한다(S236-2).If the number of "0" is 5 in the state that the data bit is counted until "1" is detected (S236-1), since the vertical mode V1 (3), Vr (3), the state of the next bit Distinguishes whether the bit is "0" or "1" (S236-2).

상기에서 다음 비트가 "0" 일때는 'a1'과 'b1'의 이격된 거리가 "3'' 이며 'a1'의 위치가 'b1' 의 좌측에 위치되어 있는 것을 의미하는 수직모드V1(3)인 것으로 판단하고(S236-3,236-4), 다음 비트가 "1" 일 때는 'a1'과 'b1'의 이격된 거리가 "3" 이며 'a1'의 위치가 'b1'의 우측에 위치되어 있는 것을 의미하는 수직모드 Vr(3)인 것으로 판단한다(S236-5,S236-6).When the next bit is "0", the vertical mode V1 (3) means that the spaced distance between 'a1' and 'b1' is '3' and the position of 'a1' is located to the left of 'b1'. ) And when the next bit is "1", the spaced distance between "a1" and "b1" is "3" and the position of "a1" is located to the right of "b1". It is determined that it is the vertical mode Vr (3) which means that it is (S236-5, S236-6).

따라서, "0"의 개수와 데이터 비트 "1" 및 그 다음 비트까지 카운트를 7만큼 증가시켜(S236-7) 2차원 코딩된 데이터를 1차원 데이터로의 변환을 실행한다.Therefore, the count is increased by 7 to the number of "0" and the data bit "1" and the next bit (S236-7) to convert the two-dimensional coded data into one-dimensional data.

상기와 같이 한 라인씩 2차원 코딩 데이터를 1차원 코딩 데이터로의 변환을 실행하는 상태에서 페이지의 최종 라인을 지시하는 RTC(RETURN TO CONTROL)가 검출되는지를 판단하여(S250), 최종 라인을 지시하는 RTC가 검출되지 않는 경우 상기 S230으로 리턴되어 상기의 과정을 반복적으로 실행하고, RTC가 검출되는 경우 1차원의 데이터 개수가 6개이면 2차원 데이터를 1차원 데이터로 변환하는 동작을 종료한다.As described above, it is determined whether the RTC (RETURN TO CONTROL) indicating the last line of the page is detected in the state of converting the two-dimensional coded data into the one-dimensional coded data line by line (S250), and indicates the final line. If the RTC is not detected, the process returns to S230 and the above process is repeatedly executed. When the RTC is detected, if the number of one-dimensional data is six, the operation of converting the two-dimensional data into one-dimensional data is terminated.

상기한 과정애서 판별된 각각의 모드에 따라서 2차원 코딩 데이터를 1차원 코딩 데이터로 변환하는 동작을 도4를 참조하여 설명하면 다음과 같다.An operation of converting 2D coded data into 1D coded data according to each mode determined in the above process will be described with reference to FIG. 4.

1차원 라인으로 판별된 라인의 시작은 항상 가상의 흰색인 'a0'로 정해지므로, 'a0'를 검출한 다음(S310) 기준 라인의 'b1'과 'b2'를 각각 검출하여 각 모드를 판단한다(S320).Since the start of the line determined as the one-dimensional line is always set to 'a0', which is a virtual white color, the mode is determined by detecting 'a0' (S310) and then detecting 'b1' and 'b2' of the reference line, respectively. (S320).

상기에서 판단된 모드가 수직모드V(0)인 경우(S320-1) 'a0'와 'b1'의 거리를 측정하고 'b1'의 색깔을 판단하여 'b1'의 반대되는 색깔을 도2의 테이블에서 판단하여 1차원의 데이터로 변환한다(S320-2,S320-3).When the determined mode is the vertical mode V (0) (S320-1), the distance between 'a0' and 'b1' is measured and the color of 'b1' is determined to determine the opposite color of 'b1' as shown in FIG. Judging from the table, the data is converted into one-dimensional data (S320-2 and S320-3).

상기에서 판단된 모드가 수직모드V1(1)인 경우(S321-1) 'a0'와 'b1'의 거리를 측정한 다음 측정된 거리에다가 -1을 하면 데이터 요소의 길이가 되며 'b1'의 반대되는 색깔을 도2의 테이블에서 판단하여 1차원의 데이터로 변환한다(S321-2,S321-3).When the determined mode is the vertical mode V1 (1) (S321-1), the distance between 'a0' and 'b1' is measured, and -1 of the measured distance is the length of the data element, and the value of 'b1' The opposite color is determined from the table of FIG. 2 and converted into one-dimensional data (S321-2 and S321-3).

상기에서 판단된 모드가 수직모드Vr(1)인 경우(S322-1) 'a0'와 'b1'의 거리를 측정한 다음 측정된 거리에다가 +1을 하면 데이터 요소의 길이가 되며 'b1'의 반대되는 색깔을 도2의 테이블에서 판단하여 1차원의 데이터로 변환한다(S322-2,S322-3).If the mode determined above is the vertical mode Vr (1) (S322-1), the distance between 'a0' and 'b1' is measured, and +1 of the measured distance is the length of the data element. The opposite color is determined from the table of FIG. 2 and converted into one-dimensional data (S322-2 and S322-3).

상기에서 판단된 모드가 수직모드V1(2)인 경우(S325-1) 'a0'와 'b1'의 거리를 측정한 다음 측정된 거리에다가 -2을 하면 데이터 요소의 길이가 되며 'b1'의 반대되는 색깔을 도2의 테이블에서 판단하여 1차원의 데이터로 변환한다(S325-2,S325-3).When the determined mode is the vertical mode V1 (2) (S325-1), the distance between 'a0' and 'b1' is measured, and -2 of the measured distance is the length of the data element, and the value of 'b1' The opposite color is determined from the table of FIG. 2 and converted into one-dimensional data (S325-2 and S325-3).

상기에서 판단된 모드가 수직모드Vr(2)인 경우(S326-1) 'a0'와 'b1'의 거리를 측정한 다음 측정된 거리에다가 +2을 하면 데이터 요소의 길이가 되며 'b1'의 반대되는 색깔을 도2의 테이블에서 판단하여 1차원의 데이터로 변환한다(S326-2,S326-3).If the mode determined above is the vertical mode Vr (2) (S326-1), the distance between 'a0' and 'b1' is measured, and +2 is added to the measured distance to become the length of the data element, and The opposite color is determined from the table of FIG. 2 and converted into one-dimensional data (S326-2 and S326-3).

상기에서 판단된 모드가 수직모드V1(3)인 경우(S327-1) 'a0'와 'b1'의 거리를 측정한 다음 측정된 거리에다가 -3을 하면 데이터 요소의 길이가 되며 'b1'의 반대되는 색깔을 도2의 테이블에서 판단하여 1차원의 데이터로 변환한다(S327-2,S327-3).When the determined mode is the vertical mode V1 (3) (S327-1), the distance between 'a0' and 'b1' is measured, and -3 of the measured distance is the length of the data element, and the value of 'b1' The opposite color is determined from the table of FIG. 2 and converted into one-dimensional data (S327-2 and S327-3).

상기에서 판단된 모드가 수직모드Vr(3)인 경우(S328-1) 'a0'와 'b1'의 거리를 측정한 다음 측정된 거리에다가 +3을 하면 데이터 요소의 길이가 되며 'bl'의 반대되는 색깔을 도2의 테이블에서 판단하여 1차원의 데이터로 변환한다(S328-2,S328-3).If the mode determined above is the vertical mode Vr (3) (S328-1), the distance between 'a0' and 'b1' is measured, and if the measured distance is +3, the length of the data element becomes 'bl'. The opposite color is determined from the table of FIG. 2 and converted into one-dimensional data (S328-2, S328-3).

또한, 상기에서 판단된 모드가 평행 모드인 경우(S323-1) 그 다음 모드가 결정되기 전까지의 데이터는 모드 그대로의 1차원 데이터이므로 그대로 1차원 코딩로 된다(S323-2,S323-3).In addition, when the mode determined above is the parallel mode (S323-1), data until the next mode is determined is one-dimensional data as it is, and thus one-dimensional coding is performed as it is (S323-2, S323-3).

또한, 상기에서 판단된 모드가 통과모드인 경우(S324-1) 'a0'와 'b2'의 거리가 데이터 요소의 거리가 되며 색깔은 'b1'의 반대 색깔이 되므로 도2의 테이블을 통해 판단하여 1차원 데이터로 변환한다(S324-2,S324-3).In addition, when the determined mode is the pass mode (S324-1), the distance between 'a0' and 'b2' becomes the distance between the data elements and the color becomes the opposite color of 'b1'. To 1-dimensional data (S324-2, S324-3).

이상에서 설명한 바와 같이 본 발명은 T.30의 팩시밀리 프로트콜을 실행함에 있어 1차원 데이터를 2차원 데이터로 코딩하고 2차원 데이터를 1차원 데이터로 코딩하므로 코딩 방식이 서로 다른 팩시밀리 기기와의 사용에 호환성을 제공하고, 1차원 데이터의 길이보다 상대적으로 짧은 2차원 데이터를 통한 전송으로 전송시간이 단축되며, 이로 인한 에러의 발생이 최소화되어 팩시밀리 데이터의 전송에 신뢰성을 제공한다.As described above, the present invention codes the one-dimensional data into the two-dimensional data and the two-dimensional data into the one-dimensional data in executing the facsimile protocol of T.30. It provides compatibility, and the transmission time is shortened by the transmission through the two-dimensional data relatively shorter than the length of the one-dimensional data, thereby minimizing the occurrence of errors, thereby providing reliability in the transmission of the facsimile data.

Claims (8)

(정정) 팩시밀리 데이터 전송방법에 있어서, 라인의 시작을 표시하는 데이터를 통해 한 라인의 코딩된 데이터가 1차원 코딩 데이터 인지 2차원 코딩 데이터인지를 판단하는 과정과; 상기에서 2차원의 코딩 데이터인 것으로 판단되면 한 라인의 코딩된 데이터의 개수를 카운트하는 카운터를 "0"으로 초기화한 다음 데이터 비트를 분석하여 데이터 비트 "1"이 검출되기까지의 "0"의 개수를 카운트하여 해당 모드를 판단하는 과정과; 상기 과정에서 판단되는 모드에 따라, 처음 변화하는 요소 'a0'의 우측 다음 변화 요소인 'a1'과, 상기 'a0'의 우측에서 기준 라인의 첫 번째 변화하는 요소임과 동시에 'a0'와 반대되는 색깔 요소인 'b1'사이의 거리 위치를 판단한 후, 카운터를 증가시킨 다음 1차원 코딩을 실행하는 과정을 포함하는 것을 특징으로 하는 팩시밀리 데이터 변환방법.(Correction) A facsimile data transmission method comprising: determining whether coded data of a line is one-dimensional coded data or two-dimensional coded data through data indicating the start of a line; If it is determined that the data is two-dimensional coded data, the counter for counting the number of coded data in one line is initialized to "0", and then the data bit is analyzed to determine the "0" until the data bit "1" is detected. Counting the number to determine the mode; According to the mode determined in the above process, 'a1', which is the right next change element of the first changing element 'a0', and the first changing element of the reference line at the right of 'a0', and opposite to 'a0' And determining a distance between the color elements 'b1' and increasing a counter, and then performing one-dimensional coding. 제 1항에 있어서, 상기 과정에서 1차원 코딩 데이터 인지 2차원 코딩 데이터인지의 구분은 페이지의 최종 라인을 지시하는 데이터 비트의 다음 비트를 통해 판단하는 것을 특징으로 하는 팩시밀리 데이터 변환방법.2. The method of claim 1, wherein the classification of the 1D coded data or the 2D coded data is determined by the next bit of the data bit indicating the last line of the page. (정정) 제 1항에 있어서, 상기 카운트 되는 "0"의 개수가 "0"인 경우, 상기 'a1' 바로 위에 상기 'b1'이 존재하며 수직모드 V(0)인 것으로 판단하여, 카운트를 "1"만큼 증가시키는 것을 특징으로 하는 팩시밀리 데이터 변환방법.(Correction) The method of claim 1, wherein when the number of the counted "0" is "0", it is determined that the 'b1' exists immediately above the 'a1' and is in the vertical mode V (0). A facsimile data conversion method characterized by increasing by "1". (정정) 제 1항에 있어서, 상기 카운트되는 "0'의 개수가 1인 경우, 다음 비트가 "0" 이면 상기 'a1'과 'b1'의 이격된 거리가 "1" 이며 'a1'의 위치가 'b1'의 좌측에 위치되어 있는 수직모드V1(1)인 것으로 판단하고, 상기 다음 비트가 "1" 이면 상기 'a1'과 'b1'의 이격된 거리가 "1" 이며 'a1'의 위치가 'b1'의 우측에 위치되어 있는 수직모드Vr(1)인 것으로 판단하여, 카운트를 "3"만큼 증가시키는 것을 특징으로 하는 팩시밀리 데이터 변환방법.(Correction) The method of claim 1, wherein when the number of the counted "0" is 1, when the next bit is "0", the spaced distance between "a1" and "b1" is "1" and the value of "a1" It is determined that the position is the vertical mode V1 (1) positioned to the left of 'b1'. If the next bit is '1', the spaced distance between 'a1' and 'b1' is '1' and 'a1' And the count is increased by " 3 ", judging that the position of " " is in the vertical mode Vr (1) located to the right of 'b1'. (정정) 제 1항에 있어서, 상기에서 카운트되는 "0"의 개수가 2개인 경우 평행모드이며 상기 'a1'과 'b1'의 이격된 거리가 설정된 값 3이하인 것으로 판단하고, 데이터의 코딩 변환을 실행하지 않고 1차원 코딩 데이터로의 변환에 그대로 사용하는 것을 특징으로 하는 팩시밀리 데이터 변환방법.(Correct) The coding conversion of data according to claim 1, wherein when the number of "0" counted in the above is 2, it is determined that the distance between the 'a1' and the 'b1' is less than or equal to the set value 3 when the number of " 0 " A method of converting facsimile data, characterized in that it is used as it is for conversion to one-dimensional coded data without executing. (정정) 제 1항에 있어서, 상기에서 카운트되는 "0"의 개수가 3인 경우 통과 모드이며 'a1'의 위치가 'b1'의 우측에 위치하는 것으로 판단하고, 카운트를 "4"만큼 증가시키는 것을 특징으로 하는 팩시밀리 데이터 변환방법.(Correction) The method according to claim 1, wherein when the number of "0" s counted above is 3, it is determined that the position of 'a1' is located on the right side of 'b1', and the count is increased by "4". A facsimile data conversion method, characterized in that. (정정) 제 1항에 있어서, 상기에서 카운트되는 "0"의 개수가 4인 경우, 다음 비트가 "0" 이면 'a1'과 'b1'의 이격된 거리가 "2"이며 'a1'이 'b1' 의 좌측에 위치되어 있는 수직모드V1(2)인 것으로 판단하고, 상기 다음 비트가 "1"이면 'a1'과 'b1'의 이격된 거리가 "2" 이며 'a1'이 'b1'의 우측에 위치되어 있는 수직모드 Vr(2)인 것으로 판단하여, 카운트를 ''6"만큼 증가시키는 것을 특징으로 하는 팩시밀리 데이터 변환방법.(Correction) The method of claim 1, wherein when the number of "0" counted above is 4, when the next bit is "0", the spaced distance between "a1" and "b1" is "2" and "a1" is It is determined that the vertical mode V1 (2) located to the left of 'b1'. If the next bit is '1', the spaced distance between 'a1' and 'b1' is '2' and 'a1' is 'b1'. Determining the vertical mode Vr (2) located on the right side of ', and increasing the count by " 6 ". (정정) 제 1항에 있어서, 상기에서 카운트되는 "0"의 개수가 5인 경우, 다음 비트가 "0"이면 'a1'과 'b1'의 이격된 거리가 "3" 이며 'a1' 이 'b1' 의 좌측에 위치되어 있는 수식모드V1(3)인 것으로 판단하고, 상기 다음 비트가 "1" 이면 'a1'과 'b1'의 이격된 거리가 "3" 이며 'a1'이 'b1'의 우측에 위치되어 있는 수직모드 Vr(3)인 것으로 판단하여, 카운트를 "7"만큼 증가시기는 것을 특징으로 하는 팩시밀리 데이터 변환방법.(Correction) The method of claim 1, wherein when the number of "0" s counted above is 5, and the next bit is "0", the spaced distance between "a1" and "b1" is "3" and "a1" is It is determined that the modified mode V1 (3) located to the left of 'b1', and if the next bit is "1", the spaced distance between "a1" and "b1" is "3" and "a1" is "b1". And the count is increased by " 7 " for determining that it is the vertical mode Vr (3) located on the right side of "
KR1019980062358A 1998-12-30 1998-12-30 How to Convert Fax Data KR100297117B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980062358A KR100297117B1 (en) 1998-12-30 1998-12-30 How to Convert Fax Data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980062358A KR100297117B1 (en) 1998-12-30 1998-12-30 How to Convert Fax Data

Publications (2)

Publication Number Publication Date
KR20000045764A KR20000045764A (en) 2000-07-25
KR100297117B1 true KR100297117B1 (en) 2001-10-26

Family

ID=19569022

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980062358A KR100297117B1 (en) 1998-12-30 1998-12-30 How to Convert Fax Data

Country Status (1)

Country Link
KR (1) KR100297117B1 (en)

Also Published As

Publication number Publication date
KR20000045764A (en) 2000-07-25

Similar Documents

Publication Publication Date Title
EP1615420B1 (en) Code recognizing method and device
US4953230A (en) Document image processing system
US4301479A (en) Signal processing system of facsimile
EP0309655B1 (en) Image processing apparatus and method
US5335294A (en) Image processing for pattern extraction
KR100297117B1 (en) How to Convert Fax Data
US7064865B2 (en) Image processing method and apparatus for detecting characteristic points
JPS58112176A (en) Optical character reader
GB1576837A (en) Information density decision circuit
US5661569A (en) Facsimile adapter unit having error detecting function
JPS646589B2 (en)
JPH0497652A (en) Long original division system in facsimile equipment
US5276526A (en) Decoding device for two-dimensional codes by using first or second reference line signals
JPH0737018A (en) Mark sheet and its tilt detecting method and optical mark reader
JPS5927503B2 (en) calligraphy communication device
JP2000224422A (en) Encoding method and encoder using pattern matching
JP2000156762A (en) Image processor
JPS62260477A (en) Data compression system
JP3270593B2 (en) OCR reader
JPS6142310B2 (en)
JPS61114651A (en) Facsimile equipment
KR100214331B1 (en) Image decimation method
JPH0512411A (en) Image processor
JPH0444311B2 (en)
WO1995024793A2 (en) Arrangement and method for reading in and compression of data for telefax transmission

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee