CN101170628B - Device and method for automatically recognizing fax image coding format and pixel quantity - Google Patents

Device and method for automatically recognizing fax image coding format and pixel quantity Download PDF

Info

Publication number
CN101170628B
CN101170628B CN2007101777455A CN200710177745A CN101170628B CN 101170628 B CN101170628 B CN 101170628B CN 2007101777455 A CN2007101777455 A CN 2007101777455A CN 200710177745 A CN200710177745 A CN 200710177745A CN 101170628 B CN101170628 B CN 101170628B
Authority
CN
China
Prior art keywords
pixel quantity
row pixel
facsimile
coded format
coding
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.)
Expired - Fee Related
Application number
CN2007101777455A
Other languages
Chinese (zh)
Other versions
CN101170628A (en
Inventor
鲍小云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007101777455A priority Critical patent/CN101170628B/en
Publication of CN101170628A publication Critical patent/CN101170628A/en
Application granted granted Critical
Publication of CN101170628B publication Critical patent/CN101170628B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for automatically identify the code format and row pixel quantity of a facsimile image, which comprises: step 1, coding received facsimile data individually based on the code format and row pixel quantity used by facsimile image, recording the frequency of coding error; step 2, comparing various coding error frequencies, and judging the code format and row pixel quantity with the least error as the code format and row pixel quantity used for the facsimile image. Therefore, the invention can automatically identify the code format and row pixel quantity of facsimile image without manual operation, and facilitates the code format identification of facsimile image and the recovery of facsimile image.

Description

Automatically discern the device and method of facsimile signal coded format and row pixel quantity
Technical field
The present invention relates to facsimile domain, relate in particular to the device and method of a kind of automatic identification facsimile signal coded format and row pixel quantity.
Background technology
In the T30 facsimile protocol, fax is divided into 5 stages, in stage B (process before the message), as shown in Figure 1.
Step S101, called equipment sends digital identification signal DIS (Digital IdentificationSignal), indicates the ability that called equipment is supported, as the agreement of fax modulation, the coded format and the row pixel quantity of facsimile signal.Non-standard equipment NSF (Non-Standard Facilities) and CSI called subscriber identification CSI (Called Subscriber Identification) are optional frame, select to send.
Step S102, caller equipment is after receiving the DIS frame, the ability of supporting according to the called equipment that shows in the DIS frame negotiates the ability that both sides work and support in conjunction with the situation of equipment of itself support, sends to called equipment by digital command signal DCS (Digital Command Signal).The form of DCS frame has clear and definite description in the T30 agreement, called equipment can be separated and read the DCS frame, obtains the coded format of facsimile signal and the information of row pixel quantity.
Step S103, caller equipment send training check TCF (TrainingCheck) after having sent the DCS frame.
Step S104, called equipment is received TCF, if train successfully, replys confirmation of receipt CFR (Confirmation To Receive), the configuration in the DCS frame is accepted in expression.
For the fax of non-standard equipment, as shown in Figure 2.
Step S201, called equipment sends DIS, indicates the ability that called equipment is supported, sends the NSF frame simultaneously.
Step S202, caller equipment receive after the DIS frame, are not by DCS frame acknowledgment negotiation result, confirm but set up NSS (Non-Standard Facilities Set-up) by non-standard equipment.
Step S203, caller equipment send TCF after having sent the NSS frame.
Step S204, called equipment is received TCF, if train successfully, replys CFR, the configuration in the NSS frame is accepted in expression.
NSS frame coded format does not define in the ITU-T of standardization department of international telecommunication union telecommunication agreement, but is defined voluntarily by each device fabrication manufacturer.If the fax receiving equipment can not be discerned the content in the NSS frame, just can not know the pixel quantity of facsimile signal coded format and delegation.Prior art is in order to recover facsimile signal, and by the standard of artificial selection decoding, whether the picture that artificial judgement decoding obtains is correct, if incorrect, attempts another kind of coding standards.Therefore, prior art is given the identification of facsimile signal coded format, and fax picture recovers to have brought very big inconvenience.
Summary of the invention
For addressing the above problem, the invention discloses the device and method of a kind of automatic identification facsimile signal coded format and row pixel quantity, its purpose is, can discern facsimile signal coded format and row pixel quantity automatically under the situation of not knowing facsimile signal coded format and row pixel quantity.
The invention discloses the method for a kind of automatic identification facsimile signal coded format and row pixel quantity, comprising:
Step 1 is deciphered coded format and row pixel quantity that the facsimile data that receives adopts facsimile signal to adopt respectively, writes down its decoding number of times of makeing mistakes;
Step 2, the more various decodings number of times of makeing mistakes, the minimum coded format of makeing mistakes and the judgement of row pixel quantity are coded format and row pixel quantity that facsimile signal adopted.
Also comprise before the described step 1:
Step 21 is resolved the Frame and the fax reciprocal process of facsimile protocol and is determined coding format and the row pixel quantity that facsimile signal adopts.
Described facsimile protocol is the T30 agreement.
Described step 21 also comprises:
Step 41, the DIS frame of parsing facsimile protocol is determined the coding format that the fax receiving equipment is supported and the pixel quantity of going;
Step 42 under the non real-time situation, after described T30 facsimile protocol reciprocal process finishes, is resolved process, has judged whether to adopt the transfer process of error code correction, if do not adopt, the coded format that then described decoding is adopted does not comprise the MMR coding.
Described step 1 also comprises, when coded format of supporting at the uncertain equipment of receiving faxes and row pixel quantity, deciphers by all coded formats and row pixel quantity.
Described step 41 comprises that also when resolving the DIS frame of any configuration, the fax receiving equipment is supported the MH coding.
Described step 41 also comprises:
Determine according to DIS frame bit 16 whether the fax receiving equipment supports the MR coding;
Determine the capable pixel quantity that the fax receiving equipment is supported according to DIS frame bit 18;
Determine according to DIS frame bit 27 and bit 31 whether the fax receiving equipment supports the MMR coding.
The invention also discloses the device of a kind of automatic identification facsimile signal coded format and row pixel quantity, comprising:
Decoding module is used for adopting different coded formats and row pixel quantity to decipher respectively to the facsimile data that receives, and writes down its decoding number of times of makeing mistakes;
Judging module is used for the more various decodings number of times of makeing mistakes, and the minimum coded format of makeing mistakes and the judgement of row pixel quantity are coded format and row pixel quantity that facsimile signal adopted.
Described device also comprises, parsing module is used to resolve the Frame of facsimile protocol and the reciprocal process of faxing, and determines coding format and row pixel quantity that facsimile signal adopts.
Described facsimile protocol is the T30 agreement.
Beneficial effect of the present invention is to use this method can discern facsimile signal coded format and row pixel quantity automatically, need not artificial participation, has made things convenient for identification of facsimile signal coded format and fax picture to recover.
Description of drawings
Fig. 1 is a standard device fax stage B schematic diagram in the T30 agreement;
Fig. 2 is a non-standard equipment fax stage B schematic diagram in the T30 agreement;
Fig. 3 is that the DIS frame is resolved schematic diagram;
Fig. 4 is an image encoding identifying schematic diagram.
Embodiment
The present invention can comprise parsing, deciphers and adjudicate three steps.Analyzing step, the data of analysis frame and facsimile posting are determined coding format and row pixel quantity that facsimile signal may adopt.The decoding step, the coding format and the row pixel quantity that adopt facsimile signal to adopt are respectively deciphered facsimile image data, and write down the number of times that adopts every kind of coding format and the decoding of row pixel quantity to make mistakes.Decision steps, few coded format of makeing mistakes and row pixel quantity are adjudicated the coded format and the row pixel quantity that adopt for facsimile signal.
Do not carrying out analyzing step, when directly adopting decoding and judgement, thinking that facsimile signal all may adopt all coded formats and row pixel quantity.
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
When adopting the T30 agreement to fax, specific embodiments of the invention are described as follows.
The device of a kind of automatic identification facsimile signal coded format and row pixel quantity comprises:
Parsing module is used to resolve the Frame of facsimile protocol and the reciprocal process of faxing, and determines coding format and row pixel quantity that facsimile signal may adopt;
Decoding module is used for adopting different coded formats and row pixel quantity to decipher respectively to the facsimile data that receives, and writes down its decoding number of times of makeing mistakes;
Judging module is used for the more various decodings number of times of makeing mistakes, and the minimum coded format of makeing mistakes and the judgement of row pixel quantity are coded format and row pixel quantity that facsimile signal adopted.
The method of a kind of automatic identification facsimile signal coded format and row pixel quantity comprises the steps.
1 analyzing step
The DIS frame is resolved, determine coding format and row pixel quantity that the fax receiving equipment is supported.For common fax, coded format has three kinds of situations of improved Huffman encoding MH (Modified Huffman), improved READ coding MR (Modified READ), improved MR coding MMR (Modified ModifiedREAD), and the row pixel has 1728,2048,2,432 three kinds.If can not get the DIS frame, think that then facsimile signal all may adopt above-mentioned three kinds of coded formats and row pixel quantity.
Under non real-time situation, after whole fax T30 reciprocal process finishes, its process is resolved, whether adopted the transfer process of error code correction to determine the fax receiving equipment, if do not adopt this flow process, think that then the fax receiving equipment do not support MMR coding.
According to the analysis result of DIS frame and the parsing conclusion of T30 reciprocal process, obtain coded format and row pixel quantity that facsimile signal may adopt.
2 decoding steps
According to the analysis result of resolving part, the coded format and the row pixel quantity that adopt facsimile signal to adopt are respectively deciphered, and the number of times of makeing mistakes in the statistical decoding process.
Judgement standard of makeing mistakes and the record of makeing mistakes are as follows:
1. when deciphering, if the data binary combination that receives does not find, think that then this moment, decoding made mistakes in the codeword table of correspondence coding, error log adds 1.
2. when deciphering, if find the capable pixel quantity (as 1728) of the pixel quantity of delegation greater than appointment, think that decoding makes mistakes, error log adds 1.
3. when deciphering, detect EOL mark EOL (End Of Line), and find the capable pixel quantity (as 1728) of the pixel quantity of delegation less than appointment, think that decoding makes mistakes, error log adds 1.
3 decision steps
The number of times of makeing mistakes of more various decodings, the minimum coded format of makeing mistakes and row pixel quantity are thought coded format and the row pixel quantity that facsimile signal adopts.
The resolving of DIS frame as shown in Figure 3.
S301, bit 16 show whether equipment has two-dimensional encoded ability.If be 1, think that then fax receiving equipment support MR encodes.
S302, bit 17 and 18 shows the ability of equipment records width.00 expresses support for 1728 capable pixel, and 01 expresses support for 1728,2048,2432 capable pixel, and 10 express support for 1728,2048 capable pixel.
S303, bit 27 show whether support error code correction pattern ECM, 1 expresses support for.Bit 31 shows the ability of T6 coding, and 1 expression has.At bit 27 and bit 31 all is 1 situation, thinks that the fax receiving equipment supports the MMR coding.
For the DIS frame of any configuration, think that all fax receiving equipment support MH encodes.
Fax T30 reciprocal process analytic method is as follows.
According to whether having part page or leaf PP (Partial Page) frame to judge whether to adopt the transfer process of error code correction.If find to have in the T30 reciprocal process part page signal PPS (Partial Page Signal) and part page or leaf request PPR (Partial Page Request), then think and adopted error code correction pattern ECM.If do not find PPS or PPR frame, then think and do not adopt ECM mode, think that facsimile signal does not adopt the MMR coding this moment.
Be illustrated in figure 4 as the automatic identifying of facsimile signal coding and row pixel quantity.
Step S401 earlier according to the analysis result of DIS frame and T30 reciprocal process, confirms the critical field of fax decoding.
Step S402 judges whether to carry out MMR decoding.
Step S403 carries out MMR decoding in possible capable pixel coverage.Because the MMR coded data is to adopt error code correction pattern ECM, therefore the data that receive mistake can not occur.
Step S404 during decoding, judges whether to occur mistake.If mistake all appears in the corresponding every kind of MMR decoding that may go pixel quantity, think that then coding format is not MMR; If mistake does not appear in the MMR decoding of corresponding certain row pixel quantity, think that then coding format is MMR and adopts this row pixel quantity.
Step S405 identifies the facsimile signal coded format and adopts the MMR coding, withdraws from.
Step S406 judges whether to carry out MR decoding.
Step S407 carries out MR decoding if desired, then deciphers in possible capable pixel coverage.Preserve decoding under the various situations quantity of makeing mistakes.
Step S408 relatively in possible capable pixel coverage, judges the minimum a kind of situation of makeing mistakes in the multiple choices that draw MH decoding and MR decoding.The minimum coded format of makeing mistakes and row pixel quantity are thought coded format and the row pixel quantity that facsimile signal uses.
Step S409 carries out MH decoding in possible capable pixel coverage, preserve decoding under the various situations counting of makeing mistakes.If do not carry out MR decoding, then directly in the MH of various capable pixels decode results, compare the minimum situation of makeing mistakes think the to encode capable pixel of employing.MR decoding if desired then needs the result who forwards step S408 and MR decoding to compare together.If do not need MR decoding, and determine that the capable pixel quantity of fax receiving equipment support has only 1,728 one kinds, then do not need to carry out MH decoding, can think directly that facsimile signal adopts the MH coding, 1728 row pixels.
Step S410 identifies the facsimile signal coded format and adopts the MH coding, withdraws from.
Step S411 identifies the facsimile signal coded format and adopts the MR coding, withdraws from.

Claims (5)

1. a method of discerning facsimile signal coded format and row pixel quantity automatically is characterized in that, comprising:
Step 1 is deciphered coded format and row pixel quantity that the facsimile data that receives adopts facsimile signal to adopt respectively, writes down its decoding number of times of makeing mistakes;
Step 2, the more various decodings number of times of makeing mistakes, the minimum coded format of makeing mistakes and the judgement of row pixel quantity are coded format and row pixel quantity that facsimile signal adopted;
Also comprise before the described step 1: step 21, resolve the Frame of facsimile protocol and the reciprocal process of faxing, determine coding format and row pixel quantity that facsimile signal may adopt; Described facsimile protocol is the T30 agreement;
Described step 21 comprises: step 41, and the DIS frame of parsing facsimile protocol is determined the coding format that the fax receiving equipment is supported and the pixel quantity of going; Step 42 is under the non real-time situation, after described T30 facsimile protocol reciprocal process finishes, process is resolved, judge whether the fax receiving equipment has adopted the transfer process of error code correction, if do not adopt, the coded format that then described decoding is adopted does not comprise the MMR coding.
2. the method for automatic identification facsimile signal coded format as claimed in claim 1 and row pixel quantity, it is characterized in that, described step 1 also comprises, when coded format of supporting at the uncertain equipment of receiving faxes and row pixel quantity, deciphers by all coded formats and row pixel quantity.
3. the method for automatic identification facsimile signal coded format as claimed in claim 1 and row pixel quantity is characterized in that, described step 41 comprises that also when resolving the DIS frame of any configuration, the fax receiving equipment is supported the MH coding.
4. as the method for claim 1 or 3 described automatic identification facsimile signal coded formats and row pixel quantity, it is characterized in that described step 41 also comprises:
Determine according to DIS frame bit 16 whether the fax receiving equipment supports the MR coding;
Determine the capable pixel quantity that the fax receiving equipment is supported according to DIS frame bit 17 and 18;
Determine according to DIS frame bit 27 and bit 31 whether the fax receiving equipment supports the MMR coding.
5. a device of discerning facsimile signal coded format and row pixel quantity automatically is characterized in that, comprising:
Decoding module is used for different coded formats and row pixel quantity that the facsimile data that receives adopts facsimile signal to adopt are respectively deciphered, and writes down its decoding number of times of makeing mistakes;
Judging module is used for the more various decodings number of times of makeing mistakes, and the minimum coded format of makeing mistakes and the judgement of row pixel quantity are coded format and row pixel quantity that facsimile signal adopted;
Described device also comprises, parsing module is used to resolve the Frame of facsimile protocol and the reciprocal process of faxing, and determines coding format and row pixel quantity that facsimile signal may adopt; Described facsimile protocol is the T30 agreement; Described parsing module is specially: resolve the DIS frame of facsimile protocol, determine coding format and row pixel quantity that the fax receiving equipment is supported; Under the non real-time situation, after described T30 facsimile protocol reciprocal process finishes, process is resolved, judge whether described fax receiving equipment has adopted the transfer process of error code correction, if do not adopt, the coded format that then described decoding is adopted does not comprise the MMR coding.
CN2007101777455A 2007-11-20 2007-11-20 Device and method for automatically recognizing fax image coding format and pixel quantity Expired - Fee Related CN101170628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101777455A CN101170628B (en) 2007-11-20 2007-11-20 Device and method for automatically recognizing fax image coding format and pixel quantity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101777455A CN101170628B (en) 2007-11-20 2007-11-20 Device and method for automatically recognizing fax image coding format and pixel quantity

Publications (2)

Publication Number Publication Date
CN101170628A CN101170628A (en) 2008-04-30
CN101170628B true CN101170628B (en) 2011-05-11

Family

ID=39391079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101777455A Expired - Fee Related CN101170628B (en) 2007-11-20 2007-11-20 Device and method for automatically recognizing fax image coding format and pixel quantity

Country Status (1)

Country Link
CN (1) CN101170628B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004229136A (en) * 2003-01-24 2004-08-12 Canon Inc Image communication method
CN1522049A (en) * 2003-01-28 2004-08-18 上海华龙信息技术开发中心 A method for improving answerback ratio of special purpose facsimile reception apparatus
CN1816006A (en) * 2005-02-03 2006-08-09 华为技术有限公司 Method for treating non-standard frame by T.38 network gate

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004229136A (en) * 2003-01-24 2004-08-12 Canon Inc Image communication method
CN1522049A (en) * 2003-01-28 2004-08-18 上海华龙信息技术开发中心 A method for improving answerback ratio of special purpose facsimile reception apparatus
CN1816006A (en) * 2005-02-03 2006-08-09 华为技术有限公司 Method for treating non-standard frame by T.38 network gate

Also Published As

Publication number Publication date
CN101170628A (en) 2008-04-30

Similar Documents

Publication Publication Date Title
US4887162A (en) Facsimile machine having retransmission function
JP4314733B2 (en) COMMUNICATION CONNECTION DEVICE AND DATA OUTPUT CONTROL METHOD
EP0674424A2 (en) Communication apparatus
KR100547146B1 (en) Image processing apparatus and the method thereof
CN1161968C (en) Color facisimile and color facsimile transmission method
CN101170628B (en) Device and method for automatically recognizing fax image coding format and pixel quantity
US20030193692A1 (en) Color image transmitting apparatus
KR100234733B1 (en) Conversion apparatus of facsimile signal in facsimile tv
US5353125A (en) Facsimile apparatus
JPS596661A (en) Communication system of character
KR100260910B1 (en) Method for error correction function of receiving data in facsimile
JP3908132B2 (en) Image communication device
JPS59111468A (en) Facsimile device having correcting function of communication error
JP3376095B2 (en) Image communication device
JP2002218194A (en) Facsimile terminal and equipment with built-in facsimile
JPH0775362B2 (en) Facsimile communication control method
JPH0412061B2 (en)
JPH0374993B2 (en)
JP3734871B2 (en) Image communication method
JP3556363B2 (en) Image communication method
JPS58179059A (en) Detecting system for line data error number
JPH08149288A (en) Facsimile equipment
JPH08125869A (en) Method and device for image communication
JP2000165630A (en) Image data communication method
JPH0447511B2 (en)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110511

Termination date: 20171120