CN105227873B - A kind of test method and device of on-screen display data - Google Patents

A kind of test method and device of on-screen display data Download PDF

Info

Publication number
CN105227873B
CN105227873B CN201510552574.4A CN201510552574A CN105227873B CN 105227873 B CN105227873 B CN 105227873B CN 201510552574 A CN201510552574 A CN 201510552574A CN 105227873 B CN105227873 B CN 105227873B
Authority
CN
China
Prior art keywords
character
library
dot
dot matrix
text
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
CN201510552574.4A
Other languages
Chinese (zh)
Other versions
CN105227873A (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.)
Nanjing xijueshuo Information Technology Co., Ltd
Original Assignee
QINGDAO VIMICRO ELECTRONICS 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 VIMICRO ELECTRONICS CO Ltd filed Critical QINGDAO VIMICRO ELECTRONICS CO Ltd
Priority to CN201510552574.4A priority Critical patent/CN105227873B/en
Publication of CN105227873A publication Critical patent/CN105227873A/en
Application granted granted Critical
Publication of CN105227873B publication Critical patent/CN105227873B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention provides the test method and device of a kind of on-screen display data, method therein includes: the text to be measured for receiving user's input;The corresponding lattice information of character in the text to be measured is read in the extension character library pre-established, and the lattice information is added on video image and is shown;Wherein, the pixel of character is indicated with two in the extension character library.Through the embodiment of the present invention, when carrying out the test of 2BPP osd data, it can be multiplexed established extension character library, do not have to regeneration test data, substantially increase testing efficiency.

Description

A kind of test method and device of on-screen display data
Technical field
The present invention relates to digital video technology fields, more particularly to the test method and dress of a kind of on-screen display data It sets.
Background technique
OSD (on-screen display, on-screen display) is mainly used for being superimposed text information on the video images, such as when Between, place etc., to provide more additional informations for video content, can be used as the explanation and supplement of video image, such as Temporal information can be superimposed on the display picture of monitoring device.2BPP is a kind of common osd data format, BPP (Bit Per Pixel, pixel depth) refer to digit used in each pixel of storage, specifically, 2BPP refers to each pixel 2bit (position) indicates.
In practical applications, 2BPP OSD text information for needing to show monitoring device etc. is tested, and is with verifying It is no to reach expected display effect.Currently, the method for 2BPP OSD test usually may include steps of: firstly, passing through picture Figure tool draws bmp (Bitmap, the bitmap) picture comprising 3 kinds of random colors;Then, pass through YUVViewer (yuv lattice Formula player) etc. crossover tools above-mentioned bmp picture is converted into 2BPP test data;Finally, by communication tool, such as go here and there Mouth, I2C (Inter-Integrated Circuit, twin wire universal serial bus), SPI (Serial Peripheral Interface, Serial Peripheral Interface (SPI)) etc., test data is sent to monitoring device, so that monitoring device reads the test number According to by output is shown on a display screen after the test data and video data overlay.
It can be seen that existing 2BPP OSD test method, when being tested every time, require to draw and using conversion Tool generates 2BPP test data, and test process is relatively complicated, low so as to cause testing efficiency.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind The test method and device of a kind of on-screen display data to solve the above problems.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of test methods of on-screen display data, comprising:
Receive the text to be measured of user's input;
The corresponding lattice information of character in the text to be measured is read in the extension character library pre-established, and will be described Lattice information is added on video image and is shown;Wherein, the pixel of character is indicated with two in the extension character library.
Preferably, extension character library is established as follows:
According to the sequence of dot character in existing standard dot matrix word library, conversion process is carried out to each dot character;Its In, the pixel of the character after conversion is indicated with two;
After the completion of all dot characters are handled in standard dot matrix word library, extension character library is generated.
Preferably, in the sequence according to dot character in existing standard dot matrix word library, to each dot character into Before the step of row conversion process, the method also includes:
The character width information and character height information of extension character library are set;
The sequence according to dot character in existing standard dot matrix word library carries out conversion process to each dot character The step of, comprising:
According to the character width information and character height information, byte number needed for each character in extension character library is determined;
Each of standard dot matrix word library dot character is read according to the byte number, to each dot character step-by-step Carry out conversion process.
Preferably, in the sequence according to dot character in existing standard dot matrix word library, to each dot character into Before the step of row conversion process, the method also includes:
Font color, outline color and background color in extension character library are set;
The sequence according to dot character in existing standard dot matrix word library carries out conversion process to each dot character The step of, comprising:
According to the sequence of dot character in existing standard dot matrix word library, judge in each dot character each point whether be Point in character, if it is, the color of the point is replaced with the font color;Otherwise, judge whether the point is in profile Point, if it is, the color of the point is replaced with the outline color;Otherwise, the color of the point is replaced with into background color.
Preferably, the corresponding point of each character read in the extension character library pre-established in the text to be measured The step of battle array information, comprising:
Determine the corresponding dot matrix initial position in the extension character library of the character in the text to be measured;
Determine the corresponding dot matrix byte number of character in the text to be measured;
According to the character in the text to be measured in the extension character library corresponding dot matrix initial position, from the extension The lattice information of the corresponding dot matrix byte number of the character is read in character library.
Preferably, when the text to be measured is Chinese, the character pair in the text to be measured is determined as follows The dot matrix initial position answered:
Determine the region-position code of the character in the text to be measured;
According to the region-position code and the corresponding dot matrix byte number of Chinese character, determine that the character in the text to be measured is corresponding Dot matrix initial position.
Preferably, when the text to be measured is English, the character pair in the text to be measured is determined as follows The dot matrix initial position answered:
According to USA standard code for information interchange and the corresponding dot matrix byte number of English, the word in the text to be measured is determined Accord with corresponding dot matrix initial position.
According to another aspect of the invention, a kind of test device of on-screen display data is provided, comprising:
Received text module, for receiving the text to be measured of user's input;And
Display module is read, it is corresponding for reading the character in the text to be measured in the extension character library pre-established Lattice information, and the lattice information is added on video image and is shown;Wherein, the picture for extending character in character library Element is indicated with two.
Preferably, described device further include: extension character library establishes module, for establishing extension character library;
The extension character library establishes module, comprising:
Transform subblock, for the sequence according to dot character in existing standard dot matrix word library, to each dot character Carry out conversion process;Wherein, the pixel of the character after conversion is indicated with two;
Submodule is generated, for generating extension character library after the completion of all dot characters are handled in standard dot matrix word library.
Preferably, described device further include:
Character boundary setup module, for the character width information and character height information of extension character library to be arranged;
The transform subblock, comprising:
First byte determination unit, for determining extension character library according to the character width information and character height information In byte number needed for each character;
First converting unit is right for reading each of standard dot matrix word library dot character according to the byte number Each dot character step-by-step carries out conversion process.
The embodiment of the present invention includes following advantages:
It, can be in the extension character library pre-established after the text to be measured for receiving user's input in the embodiment of the present invention The middle corresponding lattice information of each character read in the text to be measured, the lattice information video image that is added to is enterprising Row display, to test display effect, due to the pixel in the extension character library with two indicate namely the extension character library be 2BPP word It library so, can be in the display screen display of monitoring device according to the extension character library when carrying out 2BPP OSD test The text to be measured of 2BPP format.Through the embodiment of the present invention, when carrying out the test of 2BPP osd data every time, it can be multiplexed and have been established Extension character library, do not have to regeneration test data, substantially increase testing efficiency.
Detailed description of the invention
Fig. 1 shows a kind of step flow chart of the test method embodiment of on-screen display data of the invention;
Fig. 2 shows a kind of step flow charts of foundation of the invention extension character library embodiment of the method;
Fig. 3 shows the lattice structure schematic diagram an of dot character;
Fig. 4 shows a kind of character library crossover tool interface schematic diagram of the invention;And
Fig. 5 shows a kind of structural block diagram of the test device embodiment of on-screen display data of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
In order to solve in the prior art, when testing 2BPP osd data every time, require to carry out cumbersome generation test number According to the step of, lead to the problem that testing efficiency is low, the embodiment of the present invention using the 2BPP format pre-established extension character library 2BPP osd data is tested, during the test, does not have to regeneration test data, user need to only input text to be measured, this hair Bright embodiment can read the corresponding lattice information of each character in the text to be measured in established extension character library, will The lattice information is added on video image and is shown, to test display effect.Through the embodiment of the present invention, it carries out every time When 2BPP osd data is tested, it can be multiplexed established extension character library, do not have to regeneration test data, substantially increase test Efficiency.
Embodiment one
Referring to Fig.1, a kind of step flow chart of the test method embodiment of on-screen display data of the invention is shown, is had Body may include:
Step 101, the text to be measured for receiving user's input;
In embodiments of the present invention, the text to be measured may include Chinese or English.In a particular application, Ke Yiwei Test macro of the invention increases display interface, and the text to be measured of user's input is received by the display interface.Certainly, in reality In, can also by the display interface receive user input other parameters information, such as text to be measured display position, The information such as character display width and character display height.
The test method of on-screen display data of the present invention specifically can be applied to various terminal devices having a display function In, such as monitoring device, since monitoring device is to the of less demanding of color displays, but it is the need to ensure that real-time, and 2BPP OSD indicates a pixel using 2bit, has thus corresponded to four kinds of color indexs, indicates background, 1-3 table usually using 0 Show other color indexs, although 2BPP OSD color abundant not as true color, can greatly reduce to bandwidth Demand, these features are applicable to 2BPP in monitoring device.The embodiment of the present invention is surveyed with the 2BPP OSD of monitoring device It is illustrated for examination, other application scene is cross-referenced.
Step 102 reads the corresponding lattice information of character in the text to be measured in the extension character library pre-established, And the lattice information is added on video image and is shown;Wherein, the pixel for extending character in character library is with two It indicates.
In embodiments of the present invention, extension character library, and two tables of the pixel in the extension character library can be pre-established Show, namely establish a 2BPP character library, so, when carrying out 2BPP OSD test, according to the extension character library, can supervise The text to be measured for controlling the display screen display 2BPP format of equipment, without being specifically generated 2BPP test data again, so as to mention High testing efficiency.
In embodiments of the present invention, by text to be measured when carrying out Overlapping display in monitoring device, it is necessary first to built Inquiry obtains the corresponding lattice information of each character in the text to be measured in vertical extension character library, then believes the dot matrix It ceases and is shown on the video image that is added to.
In one preferred embodiment of the invention, described that the text to be measured is read in the extension character library pre-established In character corresponding lattice information the step of, can specifically include:
Step S11, the corresponding dot matrix initial position in the extension character library of the character in the text to be measured is determined;
Since English dot matrix word library is different with the Chinese composition of dot matrix word library, obtain the process of lattice information also not It is identical.In practical applications, Chinese character can be indicated using two internal codes, that is, two bytes indicate.Chinese Dot matrix word library is therefore the dot matrix start bit of Chinese character can be obtained according to region-position code according to region-position code sequential storage It sets, wherein the front two of region-position code is known as area's code, and latter two become position code.After obtaining dot matrix initial position, opened from the position It begins to read the dot matrix of corresponding character.
When the text to be measured is Chinese information, dot matrix initial position can be calculated by following formula:
Area code=internal code upper byte -0xa0 (1)
Position code=internal code low byte -0xa0 (2)
Dot matrix initial position=((area's code -1) × 94+ (position code -1)) × Chinese character dot matrix byte number (3)
In practical applications, English can be according to ASCII (American Standard Code for Information Interchange, USA standard code for information interchange) storage, use a byte representation.Therefore, it is in the text to be measured When english information, dot matrix initial position can be calculated by following formula:
Dot matrix initial position=ASCII character × English dot matrix byte number (4)
Step S12, the corresponding dot matrix byte number of character in the text to be measured is determined;
In one preferred embodiment of the invention, the method can also include:
Receive the dot matrix width information and dot matrix elevation information of user's input.
Then dot matrix byte number can specifically be calculated by following formula:
Dot matrix byte number=dot matrix width × dot matrix height/8 × 2 (5)
Wherein, dot matrix width × dot matrix height is bit number shared by each character of text to be measured of user setting, then divided by Byte number shared by the 8 available each characters of text to be measured, the dot matrix byte that 2BPP format finally can be obtained multiplied by 2 Number.
Step S13, according to the character in the text to be measured in the extension character library corresponding dot matrix initial position, from The lattice information of the corresponding dot matrix byte number of the character is read in the extension character library.
After obtaining dot matrix initial position, from initial position, the lattice information of corresponding dot matrix byte number is read, then will Lattice information is added on video image and is shown.
It to sum up,, can be in the extension pre-established after the text to be measured for receiving user's input in the embodiment of the present invention The corresponding lattice information of each character in the text to be measured is read in character library, and the lattice information is added to video image On shown, to test display effect, since the pixel in the extension character library is indicated namely the extension character library is with two 2BPP character library so, can be in the display screen of monitoring device according to the extension character library when carrying out 2BPP OSD test The text to be measured of upper display 2BPP format.Through the embodiment of the present invention, it when carrying out the test of 2BPP osd data every time, can be multiplexed Established extension character library does not have to regeneration test data, substantially increases testing efficiency.
Embodiment two
Referring to Fig. 2, a kind of step flow chart of foundation extension character library embodiment of the method for the invention is shown, it specifically can be with Include:
Step 201, according to the sequence of dot character in existing standard dot matrix word library, each dot character is converted Processing;Wherein, the pixel of the character after conversion is indicated with two;
In embodiments of the present invention, the extension character library of 2BPP format is established using existing standard dot matrix word library.Wherein, point Battle array character library is a data file, preserves the dot array data of all characters in this data file, one of dot array data Pixel is indicated with 1bit.For example, each position (bit) of each byte represents a Chinese character in the dot matrix word library of Chinese character One point, each Chinese character are made of the dot matrix of a rectangle, can indicate the bit a little with 1, and 0 indicates do not have, by 1 and 0 It is shown respectively with different colours, if 1 uses black, 0 uses white, is formed a Chinese character, referring to Fig. 3, shows a point The lattice structure schematic diagram of battle array character, common lattice matrix include 12 × 12,14 × 14,16 × 16 this 3 kinds.For the ease of saying It is bright, it is illustrated by taking 16 × 16 dot matrix word library as an example in the embodiment of the present invention, certainly, and in practical applications, this field skill Art personnel can select the dot matrix word library of different matrixes according to actual needs, and the present invention is without restriction to this.
The present invention is during being converted to extension character library for dot matrix word library, by each dot character in dot matrix word library Each point is indicated by original 1bit, is converted to 2bit expression, that is, is converted to 2BPP character, all the points in dot matrix word library After the completion of battle array character conversion process, that is, produce the extension character library of 2BPP.
In one preferred embodiment of the invention, it is described according in existing standard dot matrix word library dot character it is suitable Sequence, to each dot character carry out conversion process the step of before, the method can also include:
The character width information and character height information of extension character library are set;
The sequence according to dot character in existing standard dot matrix word library carries out conversion process to each dot character The step of, it can specifically include:
Step S21, it according to the character width information and character height information, determines in extension character library needed for each character Byte number;
Specifically, byte number needed for each character in extension character library can be calculated according to the following formula:
width×height/8 (6)
Wherein, width indicates character width information, and height indicates character height information.
Step S22, each of standard dot matrix word library dot character is read according to the byte number, to each dot matrix Character step-by-step carries out conversion process.I.e. each point of each dot character is indicated by original 1bit, is converted to 2bit table Show, obtains corresponding 2BPP character.
Since extension character library is 2BPP character library, it, can be with four kinds of colors come table for each of dot matrix point Show, specifically, can be indicated with 0,1,2,3.In one preferred embodiment of the invention, described according to existing standard The sequence of dot character in dot matrix word library, before the step of carrying out conversion process to each dot character, the method can be with Include:
Font color, outline color and background color in extension character library are set;
The sequence according to dot character in existing standard dot matrix word library carries out conversion process to each dot character The step of, it can specifically include:
According to the sequence of dot character in existing standard dot matrix word library, judge in each dot character each point whether be Point in character, if it is, the color of the point is replaced with the font color;Otherwise, judge whether the point is in profile Point, if it is, the color of the point is replaced with the outline color;Otherwise, the color of the point is replaced with into background color.
In a kind of application example of the invention, according to the sequence of dot character in existing standard dot matrix word library, judgement Whether the position that each pair of point is answered in each dot character is 1, if 1, illustrates that the point is the point in character, then by the color of the point The font color is replaced with, such as is indicated with 2;If corresponding position is 0, illustrates that the point is the point in background, then further sentence Break the point whether be character profile, if it is, the color of the point is replaced with the outline color, such as indicated with 1, it is no Background color is then replaced with, such as is indicated with 0.Dot matrix word library can be converted to 2BPP character library through the above steps, and can With the color of custom font and background color etc., so that establishing for extension character library is more flexible, in addition, the present invention can be right Outline color is arranged in text, is more clear so that font is shown.
In a particular application, dot matrix word library can be divided into laterally storage according to the difference of byte storage mode and longitudinal direction is deposited It stores up, in the embodiment of the present invention, the dot matrix extended in character library is uniformly preferably converted into lateral storage mode.Certainly, in reality , can also be using longitudinal storage mode in, the present invention is without restriction for the dot matrix storage mode in extension character library.
In a kind of application example of the invention, it can be realized by a character library crossover tool above-mentioned by dot matrix word library The process of 2BPP character library is converted to, referring to Fig. 4, shows a kind of character library crossover tool interface schematic diagram of the invention.Wherein, What input file (input file) was indicated is existing standard dot matrix word library position;Output file (output file) What is indicated is the storage location for extending character library;Width (width) indicates the character width of setting extension character library, and height (height) is indicated Extend the character height of character library;Direction (direction) indicates that the dot matrix storage mode of extension character library is laterally or longitudinal; Dot color (color of point) is the color for extending character in character library, is indicated with numerical value 2, foil color (outline color) is The outline color for extending character in character library, is indicated with numerical value 1, and interval color (gap color) is character in extension character library Background color, indicated with numerical value 0.
After clicking convert (conversion) button, which can be according to the standard dot matrix shown in input file Standard dot matrix word library is found in character library position, and opens the standard dot matrix word library, then according to the character width width of setting Byte number needed for each character after converting is determined with character height height, is read in standard dot matrix word library according to the byte number Each dot character carries out conversion process to each dot character step-by-step, and the point for being 1 in each dot character uses dot Color is replaced, and for 0 point further judges whether that profile can be added, the point of profile can be added to replace using foil color, Remaining is replaced using interval color.In practical applications, it when judging whether some point can add profile, needs Determine the point whether be in Fig. 3 topmost or bottom or the point of Far Left or rightmost, if it is, not having to addition profile. After the completion of by character conversion process all in dot matrix word library, that is, extension character library is generated, the extension character library of generation is stored in Output file specified position.After establishing extension character library, 2BPP osd data can be carried out according to the extension character library Test.
Step 202 after the completion of the processing of all dot characters, generates extension character library in standard dot matrix word library.
In embodiments of the present invention, the extension character library of generation is 2BPP character library, and the character library is by existing standard dot-matrix Library conversion generates, and in dot matrix word library, a pixel is indicated with 1bit namely some point can be denoted as 0 or 1, after conversion Extension character library in, a pixel indicated with 2bit namely some point can be denoted as 0 or 1 or 2 or 3.
In practical applications, when user needs to test 2BPP OSD, 2BPP OSD of the invention can be opened and surveyed Trial work tool, text to be measured can be inputted in the operation interface of testing tool, and (can input needs any Chinese character or word to be tested It is female) and relevant parameter (information such as display position, character display width and character display height including text to be measured), Ji Ketong It crosses the above method of the invention and carries out 2BPP OSD test.
In a kind of application example of the invention, it is assumed that the test text for receiving user's input is that " you are not bad in alien land " and user input dot matrix width information and dot matrix elevation information be respectively 32, to the test text carry out 2BPP When OSD is tested, firstly, calculating initial position of the corresponding lattice information of " you " word in extension character library in test text, root Corresponding region-position code is determined by formula (1) and (2) according to the internal code of " you " word, formula is passed through according to obtained area's code and position code (3) initial position of the corresponding lattice information of " you " word in extension character library is obtained;Then, " you " word is calculated according to formula (5) Corresponding dot matrix byte number;Finally, reading the point of corresponding dot matrix byte number from initial position in the extension character library pre-established Battle array information, which is added on video image and is shown, i.e., shows " you " word of 2BPP format on the screen, and And in Overlapping display, shown according to the font color, outline color and the background color that are arranged when establishing and extending character library Show.Using same method, display sequentially is overlapped to character remaining in test text, it can be in the display of user setting Position shows that character boundary is 32 × 32 following character string " you are also OK in alien land ", and user can test display effect Card.
The embodiment of the present invention generates extension character library (2BPP character library) according to the dot matrix word library of standard, 2BPP OSD afterwards In test process, it can be used repeatedly for the extension character library, and without being manually generated test data every time, test effect can be improved Rate.In addition, generating extension character library according to the dot matrix word library of standard can also greatly improve relative to test data is manually generated The coverage area of test data.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Installation practice
Referring to Fig. 5, a kind of structural block diagram of the test device embodiment of on-screen display data of the invention is shown, specifically May include following module:
Received text module 510, for receiving the text to be measured of user's input;And
Display module 520 is read, for reading the character pair in the text to be measured in the extension character library pre-established The lattice information answered, and the lattice information is added on video image and is shown;Wherein, character in the extension character library Pixel indicated with two.
In one preferred embodiment of the invention, described device can also include: that extension character library establishes module, for building Vertical extension character library;
The extension character library establishes module, can specifically include:
Transform subblock, for the sequence according to dot character in existing standard dot matrix word library, to each dot character Carry out conversion process;Wherein, the pixel of the character after conversion is indicated with two;
Submodule is generated, for generating extension character library after the completion of all dot characters are handled in standard dot matrix word library.
In another preferred embodiment of the invention, described device can also include:
Character boundary setup module, for the character width information and character height information of extension character library to be arranged;
The transform subblock, can specifically include:
First byte determination unit, for determining extension character library according to the character width information and character height information In byte number needed for each character;
First converting unit is right for reading each of standard dot matrix word library dot character according to the byte number Each dot character step-by-step carries out conversion process.
In another preferred embodiment of the invention, described device can also include:
Color setup module, font color, outline color and background color for being arranged in extension character library;
The transform subblock, can specifically include:
Second converting unit judges each dot matrix for the sequence according to dot character in existing standard dot matrix word library Whether each point is point in character in character, if it is, the color of the point is replaced with the font color;Otherwise, sentence Whether the point that breaks is point in profile, if it is, the color of the point is replaced with the outline color;Otherwise, by the point Color replaces with background color.
In still another preferable embodiment of the invention, the reading display module be can specifically include:
Position determination submodule, for determining the corresponding dot matrix in the extension character library of the character in the text to be measured Initial position;
Second byte determination unit, for determining the corresponding dot matrix byte number of character in the text to be measured;
Reading submodule, for corresponding dot matrix to originate in the extension character library according to the character in the text to be measured The lattice information of the corresponding dot matrix byte number of the character is read in position from the extension character library.
In still another preferable embodiment of the invention, the position determination submodule be can specifically include:
First position determination unit, for determining the character in the text to be measured when the text to be measured is Chinese Corresponding dot matrix initial position;
The first position determination unit, can specifically include:
Region-position code determines subelement, for determining the region-position code of the character in the text to be measured;
First position determines subelement, for determining according to the region-position code and the corresponding dot matrix byte number of Chinese character The corresponding dot matrix initial position of character in the text to be measured.
In still another preferable embodiment of the invention, the position determination submodule be can specifically include:
Second position determination unit, for determining the character in the text to be measured when the text to be measured is English Corresponding dot matrix initial position;
The second position determination unit, can specifically include:
The second position determines subelement, for according to USA standard code for information interchange and the corresponding dot matrix byte of English Number, determines the corresponding dot matrix initial position of character in the text to be measured.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of test method and device of on-screen display data provided by the present invention, it is described in detail, Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used In facilitating the understanding of the method and its core concept of the invention;At the same time, for those skilled in the art, according to the present invention Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as Limitation of the present invention.

Claims (7)

1. a kind of test method of on-screen display data characterized by comprising
Receive the text to be measured of user's input;
Read the corresponding lattice information of character in the text to be measured in the extension character library pre-established, and by the dot matrix It is shown in information superposition to video image;Wherein, the pixel of character is indicated with two in the extension character library;Wherein, it builds The step of vertical extension character library includes: font color, outline color and the background color in setting extension character library;
According to the sequence of dot character in existing standard dot matrix word library, conversion process is carried out to each dot character;Wherein, turn The pixel of character after changing is indicated with two;
According to the sequence of dot character in existing standard dot matrix word library, the step of conversion process is carried out to each dot character, Include:
According to the sequence of dot character in existing standard dot matrix word library, judge whether each point is character in each dot character In point, if it is, the color of the point is replaced with the font color;Otherwise, judge whether the point is point in profile, If it is, the color of the point is replaced with the outline color;Otherwise, the color of the point is replaced with into background color;
After the completion of all dot characters are handled in standard dot matrix word library, extension character library is generated.
2. the method according to claim 1, wherein described according to dot-matrix in existing standard dot matrix word library The sequence of symbol, to each dot character carry out conversion process the step of before, the method also includes:
The character width information and character height information of extension character library are set;
The sequence according to dot character in existing standard dot matrix word library carries out the step of conversion process to each dot character Suddenly, comprising:
According to the character width information and character height information, byte number needed for each character in extension character library is determined;
Each of standard dot matrix word library dot character is read according to the byte number, each dot character step-by-step is carried out Conversion process.
3. the method according to claim 1, wherein it is described read in the extension character library pre-established it is described to The step of surveying each character corresponding lattice information in text, comprising:
Determine the corresponding dot matrix initial position in the extension character library of the character in the text to be measured;
Determine the corresponding dot matrix byte number of character in the text to be measured;
According to the character in the text to be measured in the extension character library corresponding dot matrix initial position, from the extension character library The middle lattice information for reading the corresponding dot matrix byte number of the character.
4. according to the method described in claim 3, it is characterized in that, the text to be measured be Chinese when, as follows Determine the corresponding dot matrix initial position of character in the text to be measured:
Determine the region-position code of the character in the text to be measured;
According to the region-position code and the corresponding dot matrix byte number of Chinese character, the corresponding point of character in the text to be measured is determined Battle array initial position.
5. according to the method described in claim 3, it is characterized in that, the text to be measured be English when, as follows Determine the corresponding dot matrix initial position of character in the text to be measured:
According to USA standard code for information interchange and the corresponding dot matrix byte number of English, the character pair in the text to be measured is determined The dot matrix initial position answered.
6. a kind of test device of on-screen display data characterized by comprising
Received text module, for receiving the text to be measured of user's input;And
Display module is read, for reading the corresponding dot matrix of character in the text to be measured in the extension character library pre-established Information, and the lattice information is added on video image and is shown;Wherein, the pixel of character is used in the extension character library Two expressions
Wherein, the extension character library establishes module, comprising:
Transform subblock carries out each dot character for the sequence according to dot character in existing standard dot matrix word library Conversion process;Wherein, the pixel of the character after conversion is indicated with two;
Submodule is generated, for generating extension character library after the completion of all dot characters are handled in standard dot matrix word library;
Described device further include:
Color setup module, font color, outline color and background color for being arranged in extension character library;
The transform subblock, can specifically include:
Second converting unit judges each dot character for the sequence according to dot character in existing standard dot matrix word library In each point whether be point in character, if it is, the color of the point is replaced with the font color;Otherwise, judgement should Whether point is point in profile, if it is, the color of the point is replaced with the outline color;Otherwise, by the color of the point Replace with background color.
7. device according to claim 6, which is characterized in that described device further include:
Character boundary setup module, for the character width information and character height information of extension character library to be arranged;
The transform subblock, comprising:
First byte determination unit, for determining every in extension character library according to the character width information and character height information Byte number needed for a character;
First converting unit, for reading each of standard dot matrix word library dot character according to the byte number, to each A dot character step-by-step carries out conversion process.
CN201510552574.4A 2015-09-01 2015-09-01 A kind of test method and device of on-screen display data Active CN105227873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510552574.4A CN105227873B (en) 2015-09-01 2015-09-01 A kind of test method and device of on-screen display data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510552574.4A CN105227873B (en) 2015-09-01 2015-09-01 A kind of test method and device of on-screen display data

Publications (2)

Publication Number Publication Date
CN105227873A CN105227873A (en) 2016-01-06
CN105227873B true CN105227873B (en) 2019-04-05

Family

ID=54996521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510552574.4A Active CN105227873B (en) 2015-09-01 2015-09-01 A kind of test method and device of on-screen display data

Country Status (1)

Country Link
CN (1) CN105227873B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259797B (en) * 2018-01-09 2023-05-16 武汉精测电子集团股份有限公司 Method and device for carrying out character superposition on image
CN108304356B (en) * 2018-01-30 2021-02-09 深圳市茁壮网络股份有限公司 Character display method and device
CN108804066A (en) * 2018-06-11 2018-11-13 深圳市琥蜂科技有限公司 The display methods and computer readable storage medium of screen display character
CN110675800A (en) * 2019-11-07 2020-01-10 广东乐心医疗电子股份有限公司 Display screen driving method and device
CN112331026A (en) * 2020-11-09 2021-02-05 深圳市小喵科技有限公司 Method and device for simulating dot matrix screen display and readable storage medium
CN113360113B (en) * 2021-05-24 2022-07-19 中国电子科技集团公司第四十一研究所 System and method for dynamically adjusting character display width based on OLED screen

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004272090A (en) * 2003-03-11 2004-09-30 Funai Electric Co Ltd Compression format of character image for osd display means and its decompression method
CN101052182A (en) * 2007-03-27 2007-10-10 华为技术有限公司 Method, device and terminal for realizing content display
CN101873451A (en) * 2010-05-19 2010-10-27 杭州海康威视数字技术股份有限公司 Method and device for realizing on-screen display (OSD) of characters
CN101888505A (en) * 2010-06-13 2010-11-17 杭州海康威视数字技术股份有限公司 Method and device for displaying characters on screen
CN101963954A (en) * 2009-07-24 2011-02-02 康佳集团股份有限公司 Method and device for displaying words

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004272090A (en) * 2003-03-11 2004-09-30 Funai Electric Co Ltd Compression format of character image for osd display means and its decompression method
CN101052182A (en) * 2007-03-27 2007-10-10 华为技术有限公司 Method, device and terminal for realizing content display
CN101963954A (en) * 2009-07-24 2011-02-02 康佳集团股份有限公司 Method and device for displaying words
CN101873451A (en) * 2010-05-19 2010-10-27 杭州海康威视数字技术股份有限公司 Method and device for realizing on-screen display (OSD) of characters
CN101888505A (en) * 2010-06-13 2010-11-17 杭州海康威视数字技术股份有限公司 Method and device for displaying characters on screen

Also Published As

Publication number Publication date
CN105227873A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN105227873B (en) A kind of test method and device of on-screen display data
CN104244024B (en) Video cover generation method and device and terminal
CN111654746B (en) Video frame insertion method and device, electronic equipment and storage medium
CN104658030B (en) The method and apparatus of secondary image mixing
CN104469253A (en) Face beautification method in real-time video and electronic equipment
CN105611213A (en) Image processing method, image play method and related device and system
CN109408177A (en) Method and device for configuring color of characters in picture and electronic equipment
CN109600605A (en) Detection method, electronic equipment and the computer program product of 4K ultra high-definition video
CN113421312A (en) Method and device for coloring black and white video, storage medium and terminal
CN113590066A (en) Full-automatic multi-screen splicing method, device, equipment and storage medium
CN105516540A (en) Compression method and device of binary image
CN111179370B (en) Picture generation method and device, electronic equipment and storage medium
JP7261732B2 (en) Method and apparatus for determining character color
CN106126140B (en) A kind of method, apparatus and electronic equipment of rendering type
CN106227327A (en) A kind of display converting method, device and terminal unit
CN108197596A (en) A kind of gesture identification method and device
CN113286100B (en) Configuration method and device of video output interface and video output equipment
CN108399156B (en) The composition method and device of formula in a kind of pdf document
CN104461797A (en) System and method for testing notebook computer external display port
CN112954355B (en) Image frame processing method and device
CN105654925A (en) high dynamic-range image processing method and system
CN104717397B (en) A kind of image processing method and electronic equipment
CN110582021B (en) Information processing method and device, electronic equipment and storage medium
CN112053416A (en) Image processing method, image processing device, storage medium and computer equipment
CN106249857A (en) A kind of display converting method, device and terminal unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200325

Address after: 211500 room 616, block B, Chuangzhi building, No.17, Xinghuo Road, Jiangbei new district, Nanjing City, Jiangsu Province

Patentee after: Nanjing xijueshuo Information Technology Co., Ltd

Address before: 266109, No. 6, building C, building 1, intellectual Island Road, Qingdao hi tech Zone, Qingdao, Shandong

Patentee before: VIMICRO QINGDAO Corp.