CN102497555B - High definition encoder Chinese support method and system - Google Patents

High definition encoder Chinese support method and system Download PDF

Info

Publication number
CN102497555B
CN102497555B CN201110426517.3A CN201110426517A CN102497555B CN 102497555 B CN102497555 B CN 102497555B CN 201110426517 A CN201110426517 A CN 201110426517A CN 102497555 B CN102497555 B CN 102497555B
Authority
CN
China
Prior art keywords
file
high definition
chinese
text
definition encoder
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.)
Active
Application number
CN201110426517.3A
Other languages
Chinese (zh)
Other versions
CN102497555A (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.)
Hisense TransTech Co Ltd
Qingdao Hisense Network Technology Co Ltd
Original Assignee
Qingdao Hisense Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Network Technology Co Ltd filed Critical Qingdao Hisense Network Technology Co Ltd
Priority to CN201110426517.3A priority Critical patent/CN102497555B/en
Publication of CN102497555A publication Critical patent/CN102497555A/en
Application granted granted Critical
Publication of CN102497555B publication Critical patent/CN102497555B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • Machine Translation (AREA)
  • Facsimiles In General (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The invention discloses a high definition encoder Chinese support method and system. The method comprises the following steps: 1. converting input Chinese characters to text files; 2. converting the text files to image files; 3. converting the image files to grayscale files; and 4. converting the grayscale files to files in a binary format. The method has the following beneficial effects: through a series of conversions, the input Chinese characters are finally converted to the files in a binary format, which can be recognized by encoders, thus realizing Chinese support of the high definition encoders; and the method is simple and is easy to realize.

Description

Method and system supported in a kind of Chinese of high definition encoder
Technical field
Method and system supported in the Chinese that the present invention relates to a kind of high definition encoder, belongs to high clear video image processing technology field.
Background technology
Real-time video monitoring, especially high-definition video monitoring, monitoring and playing back videos are core and the vitality place of video monitoring in real time, and the storage of video data, accumulate over a long period and can form mass data, how in mass data, retrieval, the useful video of playback are very large challenges to storing.The when and where that video frequency searching is importantly watched video shows, generally the when and where information of video recording is very important.In this video recording that just needs to store, synchronously contain when and where information.If lose this part information, can make the meaning of real-time video monitoring and later stage evidence obtaining work have a greatly reduced quality.
In the high clear video image processing technology field of intelligent transportation, after vision signal is gathered by headend equipment, need to be through Video processing such as the compressed encodings of encoder, just can be transmitted through the network to receiving terminal, domestic video camera is supported Chinese character stack, but, some high definition encoders, such as MG3500 supports H.264 high definition codec SOC (system on a chip), its BURNIN font is used * .bin file as fontlib, only include 0-9, A-Z, a-z and a small amount of symbol, do not support Chinese, can only Overlapping display English word or letter, to checking that personnel require to have certain English read-write level, therefore give domestic use and popularization brings inconvenience.
Therefore, how inventing a kind of Chinese support method of high definition encoder, be applied in the video image processing that can not support Chinese high definition encoder, realized the Chinese support of such high definition encoder, is the problem that the present invention mainly solves.
Summary of the invention
The present invention does not support the problem of Chinese character in order to solve more existing high definition encoders, provide a kind of Chinese of high definition encoder to support method and system, has realized the Chinese support of such high definition encoder, is easy to realize.
In order to solve the problems of the technologies described above, the present invention is achieved by the following technical solutions:
A kind of Chinese support method of high definition encoder, comprises the following steps:
(1), convert the Chinese character of input to text;
(2), described text is converted into image file;
(3), described converting of image file is become to gray scale file;
(4), described gray scale file is converted into binary format file.
Further, step (2) is converted into image file by described text, also comprises following sub-step:
(21), first described text is converted into the file of bmp form;
(22), the file of described bmp form is converted into the image file of png form.
Further again, between step (22) and step (3), also comprise:
(3a) by the background process of the image file of described png form, be, transparent.
Preferably, described text is the text of utf-8 form.
Preferably, the developing instrument of described Chinese support method is ImageMagick.
The Chinese support method of a kind of high definition encoder based on above-mentioned, the present invention provides a kind of system that high definition encoder Chinese is supported that realizes simultaneously, comprising:
Text converting unit, for converting the Chinese character of input to text;
Converting of image file unit, for being converted into image file by described text;
Gray scale file converting unit, for becoming gray scale file by described converting of image file;
Binary format file converting unit, for being converted into binary format file by described gray scale file.
Further, described image text converting unit comprises two stages for the treatment of step:
First described text is converted into the file of bmp form;
Then the file of described bmp form is converted into the image file of png form.
Further again, native system also comprises background process unit, for being transparent by the background process of the image file of described png form.
Preferably, described text is the text of utf-8 form.
Preferably, the developing instrument of the described system that realizes the support of high definition encoder Chinese is ImageMagick.
Compared with prior art, advantage of the present invention and good effect are: the Chinese support method of high definition encoder of the present invention, by the Chinese character to inputted, carry out a series of conversion, finally be converted into the discernible binary format file of encoder, realized the Chinese support of such high definition encoder, and then realized high definition encoder and processed during video information, can synchronously load the important physical information such as time, place that Chinese character shows, increase greatly the value of captured video.
Read by reference to the accompanying drawings after the detailed description of embodiment of the present invention, it is clearer that the other features and advantages of the invention will become.
Accompanying drawing explanation
Fig. 1 is a kind of embodiment flow chart of the Chinese support method of high definition encoder proposed by the invention.
Embodiment
Because more existing high definition encoders are not supported to cause the problem of Chinese character captured video information simultaneous display not have the when and where information of the video recording of Chinese character, and then make video monitoring lose important meaning.The present invention is directed to above-mentioned situation, provide a kind of Chinese of high definition encoder to support method and system, by the Chinese character to inputted, carry out a series of conversion, be finally converted into the discernible binary format file of encoder, realized the Chinese support of such high definition encoder.
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in more detail.
Embodiment mono-, shown in Figure 1, the Chinese support method of the high definition encoder of the present embodiment, comprises the following steps:
S1, convert the Chinese character of input to text;
User can input by web interface the Chinese character of required use, and backstage web services can convert thereof into as text, for the ease of next step, is converted into image file.
S2, described text is converted into image file;
This step is the conversion for the gray scale file of next step.
S3, described converting of image file is become to gray scale file;
Because the conversion program of binary format file can only be changed gray scale file, therefore, this step becomes gray scale file by converting of image file above.
S4, described gray scale file is converted into binary format file.
This step has completed converting to the file of Chinese character for the discernible binary format file of high definition encoder, is stored in the fontlib of high definition encoder, when calling, can realize Chinese character and show.
As a specific embodiment, in step 2, described text is converted into image file, comprise following sub-step:
S21, first described text is converted into the file of bmp form;
If owing to thinking directly text to be converted into image file, must first be converted into the image file of bmp form, if further process, by the image file of bmp form being converted into according to actual needs again to the image file of extended formatting.
S22, the file of described bmp form is converted into the image file of png form.
Because the image file of png form is convenient to subsequent step processing, therefore, preferably the converting of image file of bmp form is become in this step to the image file of png form.
In the present embodiment by first the Chinese character of input is converted into image file as intermediate conversion file, after further processing, be converted into the binary file that high definition encoder can be identified, be stored in the fontlib of high definition encoder, the Chinese character of having realized high definition encoder shows, and then, while having realized high definition encoder processing video information, can synchronously load the time that Chinese character shows, the important physical information such as place, increased greatly the value of captured video, the present embodiment is particularly useful for the application of MG3500 high definition encoder SOC (system on a chip) coding stack Chinese character information.
Embodiment bis-, the Chinese support method of the high definition encoder of the present embodiment, the developing instrument of employing is ImageMagick.Comprise the following steps:
S1, convert the Chinese character of input to text;
User can input by web interface the Chinese character of required use, and backstage web services can convert thereof into as text, for the ease of next step, is converted into image file, and described text is preferably the text of utf-8 form.
S2, described text is converted into image file;
This step is for the conversion of the gray scale file of next step, specifically comprises:
S21, first described text is converted into the file of bmp form;
If owing to thinking directly text to be converted into image file, must first be converted into the image file of bmp form, if further process, by the image file of bmp form being converted into according to actual needs again to the image file of extended formatting.
S22, the file of described bmp form is converted into the image file of png form.
Because the image file of png form is convenient to subsequent step processing, therefore, preferably the converting of image file of bmp form is become in this step to the image file of png form.
S3a, by the background process of the image file of described png form, be transparent.
If due to background image, can cause the part of video image is stopped, be unfavorable for checking of video, therefore, in the present embodiment, by background process, be preferably transparent.
S3, described converting of image file is become to gray scale file;
Because the conversion program of binary format file can only be changed gray scale file, therefore, the converting of image file that this step need to be obtained preceding step becomes gray scale file.
S4, described gray scale file is converted into binary format file.
This step has completed converting to the file of Chinese character for the discernible binary format file of high definition encoder, is stored in the fontlib of high definition encoder, when calling, can realize Chinese character and show.
Embodiment tri-, the Chinese support method of the high definition encoder based on two embodiment narrate above, the present embodiment provides a kind of system that high definition encoder Chinese is supported that realizes, and comprising:
Text converting unit, for converting the Chinese character of input to text;
In the present embodiment, user can input by web interface the Chinese character of required use, and backstage web services can convert thereof into as text, for the ease of next step, is converted into image file.Wherein, described text can be the text of utf-8 form.
Converting of image file unit, for being converted into image file by described text;
Gray scale file converting unit, for becoming gray scale file by described converting of image file;
Binary format file converting unit, for being converted into binary format file by described gray scale file.
Further, if owing to thinking directly text to be converted into the words of image file, must first be converted into the image file of bmp form, if further process, by the image file of bmp form being converted into according to actual needs again to the image file of extended formatting.Described image text converting unit comprises two stages for the treatment of step:
First described text is converted into the file of bmp form;
Then the file of described bmp form is converted into the image file of png form.
If due to background image, can cause the part of video image is stopped, be unfavorable for checking of video, therefore, in the present embodiment, by background process, be preferably transparent, native system also comprises background process unit, for being transparent by the background process of the image file of described png form.
Preferably, the developing instrument of the described system that realizes the support of high definition encoder Chinese is ImageMagick.
Certainly; above-mentioned explanation is not limitation of the present invention; the present invention is also not limited in above-mentioned giving an example, and variation, remodeling, interpolation or replacement that those skilled in the art make in essential scope of the present invention, also should belong to protection scope of the present invention.

Claims (10)

1. the Chinese support method of a high definition encoder, is characterized in that, comprises the following steps:
(1), convert the Chinese character of input to text;
(2), described text is converted into image file;
(3), described converting of image file is become to gray scale file;
(4), described gray scale file is converted into binary format file, be stored in the fontlib of high definition encoder, when high definition encoder is processed video information, call binary format file, synchronously load upper Chinese character information.
2. the Chinese support method of high definition encoder according to claim 1, is characterized in that, step (2) comprises following sub-step:
(21), first described text is converted into the file of bmp form;
(22), the file of described bmp form is converted into the image file of png form.
3. the Chinese support method of high definition encoder according to claim 2, is characterized in that, between step (22) and step (3), also comprises:
(3a) by the background process of the image file of described png form, be, transparent.
4. the Chinese support method of high definition encoder according to claim 1, is characterized in that, described text is the text of utf-8 form.
5. according to the Chinese support method of the high definition encoder described in claim 1-4 any one claim, it is characterized in that, the developing instrument of described Chinese support method is ImageMagick.
6. realize the system that high definition encoder Chinese is supported, it is characterized in that, comprising:
Text converting unit, for converting the Chinese character of input to text;
Converting of image file unit, for being converted into image file by described text;
Gray scale file converting unit, for becoming gray scale file by described converting of image file;
Binary format file converting unit, for described gray scale file is converted into binary format file, is stored in the fontlib of high definition encoder, when high definition encoder is processed video information, calls binary format file, the synchronous above Chinese character information that loads.
7. the system that realizes the support of high definition encoder Chinese according to claim 6, is characterized in that, described image text converting unit comprises two stages for the treatment of step:
First described text is converted into the file of bmp form;
Then the file of described bmp form is converted into the image file of png form.
8. according to claim 7ly realize the system that high definition encoder Chinese is supported, it is characterized in that, also comprise background process unit, for being transparent by the background process of the image file of described png form.
9. the system that realizes the support of high definition encoder Chinese according to claim 6, is characterized in that, described text is the text of utf-8 form.
10. according to the system that high definition encoder Chinese is supported that realizes described in claim 6-9 any one claim, it is characterized in that, the developing instrument of the described system that realizes the support of high definition encoder Chinese is ImageMagick.
CN201110426517.3A 2011-12-19 2011-12-19 High definition encoder Chinese support method and system Active CN102497555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110426517.3A CN102497555B (en) 2011-12-19 2011-12-19 High definition encoder Chinese support method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110426517.3A CN102497555B (en) 2011-12-19 2011-12-19 High definition encoder Chinese support method and system

Publications (2)

Publication Number Publication Date
CN102497555A CN102497555A (en) 2012-06-13
CN102497555B true CN102497555B (en) 2014-04-16

Family

ID=46189337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110426517.3A Active CN102497555B (en) 2011-12-19 2011-12-19 High definition encoder Chinese support method and system

Country Status (1)

Country Link
CN (1) CN102497555B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018106290A (en) * 2016-12-22 2018-07-05 村田機械株式会社 Transmission/reception system and textile machine management system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1864217A (en) * 2003-10-01 2006-11-15 三星电子株式会社 Storage medium including text-based caption information, reproducing apparatus and reproducing method thereof
CN102006453A (en) * 2010-11-30 2011-04-06 华为终端有限公司 Superposition method and device for auxiliary information of video signals

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1864217A (en) * 2003-10-01 2006-11-15 三星电子株式会社 Storage medium including text-based caption information, reproducing apparatus and reproducing method thereof
CN102006453A (en) * 2010-11-30 2011-04-06 华为终端有限公司 Superposition method and device for auxiliary information of video signals

Also Published As

Publication number Publication date
CN102497555A (en) 2012-06-13

Similar Documents

Publication Publication Date Title
CN106056530B (en) Method and device for displaying picture content in application
CN102841901B (en) A kind of method and apparatus of web displaying
CN111091876A (en) DNA storage method, system and electronic equipment
CN101272442A (en) Digital image nondestructive compression method and device, resolution method and image encoder
CN105975446A (en) Method and system for displaying word document content by modules in mobile phone terminal
CN114138861A (en) Multi-source heterogeneous data processing method, device and system
CN102420855B (en) Method and system for displaying and playing by light-emitting diode (LED) terminal as well as server
CN105740196A (en) High-speed serial transmission data preprocessing method and system
CN101521782A (en) Method for fast-forward and fast-backward browsing video, system and multimedia equipment
CN112101353A (en) Text information extraction method and device, electronic equipment and storage medium
CN113779934B (en) Multi-mode information extraction method, device, equipment and computer readable storage medium
CN103151044A (en) Language transformation method and system based on voice recognition
CN102497555B (en) High definition encoder Chinese support method and system
CN102014199A (en) Information display method and terminal
CN111787325B (en) Entropy encoder and encoding method thereof
CN101754155A (en) Call bill format conversion method and device and call bill processing method and system
CN103544221A (en) Method and system for generating video thumbnail in Android system
JP4821287B2 (en) Structured document encoding method, encoding apparatus, encoding program, decoding apparatus, and encoded structured document data structure
CN107436848B (en) Method and device for realizing conversion between user data and compressed data
CN104506390A (en) Log storage method and device of road test system
CN102695096A (en) Method and device for acquiring output image-text language of bit stream and set top box
CN108876703B (en) Data storage method
CN101257590B (en) Coding, decoding method and device, display system
CN109688350A (en) Processing system for video based on non-refrigeration type thermal infrared imager
CN114911809B (en) Data processing method and device

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