CN102902534A - Transparent OSD (Optical Scanning Device) software realization method - Google Patents
Transparent OSD (Optical Scanning Device) software realization method Download PDFInfo
- Publication number
- CN102902534A CN102902534A CN2012103439064A CN201210343906A CN102902534A CN 102902534 A CN102902534 A CN 102902534A CN 2012103439064 A CN2012103439064 A CN 2012103439064A CN 201210343906 A CN201210343906 A CN 201210343906A CN 102902534 A CN102902534 A CN 102902534A
- Authority
- CN
- China
- Prior art keywords
- character
- osd
- transparent
- software implementation
- implementation method
- 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.)
- Granted
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a transparent OSD (Optical Scanning Device) software realization method. The method comprises the following steps of: obtaining a character inner code of a character according to the content of the edited OSD character; obtaining a character dot matrix of the character from a character library by utilizing the content of the character; scanning the character dot matrix and recording a rank number which is scanned and has the position of '1'; displaying the position on the currently-edited OSD character to establish an overlapped coordinate system which takes a left upper angle as a coordinate origin, takes the character dot matrix as a dimension and takes rightward and downward lines as positive axes; and taking the corresponding rank number as the middle position of the overlapped coordinate system of a coordinate. According to the transparent OSD software realization method, a transparent OSD is overlapped on a video in real time by utilizing a pure software method, and the transparent OSD software realization method has the editability and high responding speed.
Description
Technical field
The present invention relates to a kind of transparent OSD software implementation method.
Background technology
OSD is the abbreviation of on-screen display, i.e. the screen menu type regulative mode.Generally be the rectangle menu of pressing the every reconciling items information of display that screen ejects behind the Menu key, can comprise that to display work in every index color, pattern, geometric configuration etc. adjust by this menu, thereby reach best use state.
Along with the popularization and application of digitized video technology, OSD realizes that technology has also obtained fast development.On implementation, OSD can be divided into hardware OSD and software OSD, early stage hardware OSD need to build independent osd circuit, comprise OSD character overlap chip, character memory etc., its shortcoming is the hardware circuit design more complicated, uses inconvenient, poor stability, and most OSD can not edit.
Now a lot of video frequency processing chips in inside integrated hardware osd circuit, greatly simplified design and use, but its hardware OSD realizes in the video aftertreatment, can only be used for local the demonstration.
Software OSD realizes by software algorithm, does not rely on specific hardware platform, can realize in the video pre-treatment that cost is low, dirigibility good, but traditional software OSD implementation method efficient is low, to take resource large, the time-delay that brings easily video.
Summary of the invention
The object of the present invention is to provide a kind of transparent OSD software implementation method, utilize Software-only method at the transparent OSD of real-time video stack, have editability and fast response time.
For achieving the above object, the present invention is by the following technical solutions:
A kind of transparent OSD software implementation method obtains the character ISN of this character according to editor's OSD character content;
Utilize the content of described character from character library, to obtain the character pattern of this described character;
Scan described character pattern, and record the position that scans and be the ranks number of the position of " 1 ";
Set up when the OSD character display position of pre-editing take the upper left corner as true origin take the character pattern position as dimension and take to the right and downwards as the stack coordinate system of positive axis;
Take the ranks of correspondence number as coordinate set in described stack coordinate system.
According to transparent OSD software implementation method of the present invention, utilize in the character pattern every can only be 1 or 0, and 0 quantity in most character patterns is ignored 0 far more than the characteristic of 1 quantity, only processes 1 data, thereby greatly reduced operand, improved efficient, and then, in the processing for the larger high definition real-time video flow data of data volume, apparent in view sometimes, guaranteed that video can not produce the obvious time-delay that affects visual effect.
About better implementation method of the present invention, show as following aspect according to embodiments of the invention:
Above-mentioned transparent OSD software implementation method, described set comprise predetermined brightness and the dataset of colourity, thereby according to revisable parameter, i.e. brightness and colourity obtain needed display effect.
In other were used, described set was to predetermined RGB dataset, to mate needed result of use.
Further, in order to satisfy the effect of processing in real time, calculated amount in the middle of reducing, the OSD of coupling current application, the corresponding character boundary of configuration OSD, the character of each order of magnitude is to there being a character library, and this mode only consumes a small amount of storage space, operand in the middle of having reduced improves the efficient that realizes.
Above-mentioned transparent OSD software implementation method is sequentially constructed a two-dimensional data matrix to all positions that scan for the position of " 1 ", and row matrix represent the quantity of OSD character pattern meta, and rectangular array represents the ranks number that OSD character pattern meta is " 1 ".Editor's OSD display position is coordinate positive axis foundation stack coordinate system to the right, downwards, and above-mentioned two-dimensional matrix data are carried out set with the corresponding byte of every frame video data, realize transparent OSD effect.
In other are used, default two-dimensional array, according to from top to bottom, from left to right scan mode scans, the position that scans number is sequentially deposited in described two-dimensional array for the ranks of the position of " 1 ", and when set, from described array, sequentially take out array element and carry out described set in described stack coordinate system.
Description of drawings
Fig. 1 is the steering logic figure that sets up two-dimensional data matrix in embodiment of the present invention.
Fig. 2 be in embodiment of the present invention OSD display position rectangle with the stack coordinate system the position relationship synoptic diagram.
Fig. 3 be the Chinese character quoted in embodiment of the present invention " on " the character point system of battle formations.
Embodiment
For clearly demonstrating the technical characterstic of this method, below by an embodiment, this method is set forth.
For character type (Font-Based) OSD, belong to prior art owing to obtain the character ISN of this character according to the OSD character content of editing, do not repeat them here.
As shown in Figure 3, be a size be 16 * 16 Chinese characters " on " the character pattern meta be that 1 ranks number statistics is as follows:
(1,8), (2,8), (3,8), (4,8), (5,8), (5,12), (6,8), (6,9), (6,10), (6,11), (6,12), (6,13), (7,8), (8,8), (9,8), (10,8), (11,8), (12,8), (13,8), (14,8), (14,14), (15,1), (15,2), (15,3), (15,4), (15,5), (15,6), (15,7), (15,8), (15,9), (15,10), (15,11), (15,12), (15,13), (15,14), (15,15), totally 36.
Ranks information according to above-mentioned statistics, logic according to Fig. 1 is judged the two-dimensional data matrix that can set up one 36 * 2, suppose that the OSD display position rectangle upper left corner coordinate that arranges is (x1, y1), with (x1, y1) be initial point according to setting up as shown in Figure 3 the stack coordinate system, then need the video data ranks of set number as follows:
(x1+1, y1+8), (x1+2, y1+8), (x1+3, y1+8), (x1+4, y1+8), (x1+5, y1+8), (x1+5, y1+12), (x1+6, y1+8), (x1+6, y1+9), (x1+6, y1+10), (x1+6, y1+11), (x1+6, y1+12), (x1+6, y1+13), (x1+7, y1+8), (x1+8, y1+8), (x1+9, y1+8), (x1+10, y1+8), (x1+11, y1+8), (x1+12, y1+8), (x1+13, y1+8), (x1+14, y1+8), (x1+14, y1+14), (x1+15, y1+1), (x1+15, y1+2), (x1+15, y1+3), (x1+15, y1+4), (x1+15, y1+5), (x1+15, y1+6), (x1+15, y1+7), (x1+15, y1+8), (x1+15, y1+9), (x1+15, y1+10), (x1+15, y1+11), (x1+15, y1+12), (x1+15, y1+13), (x1+15, y1+14), (x1+15, y1+15), totally 36.
Then in the stack coordinate system, carry out set according to above-mentioned video data.
Because correlation means those skilled in the art will readily understand according to the content of note described herein, therefore, no longer launch explanation for the technological means that summary of the invention is addressed in concrete real-time mode part herein.
Such as the content of set, such as brightness and colourity, perhaps RGB carries out set according to hobby or pre-selected pattern.
As described in this example, scale is 16 * 16 corresponding a kind of sizes, for the Chinese characters such as Chinese character, can mate corresponding character library, and its storage size depends on counting of dot matrix, and therefore, whole storage space requires not high.
And as previously mentioned, data process to as if the character pattern meta be 1 position, treatment capacity is very little, and follow-up demonstration, position that obviously only can aaset bit shows, in the time of in every frame video data that is added to so, forms the font at the bottom of the transparent word.
For said two-dimensional data matrix, be analogous to two-dimensional array, but not exclusively the same, those skilled in the art will readily understand.And do not affect best set about the quantity in the two-dimensional data matrix, certainly, described quantity can be used as the sign that set finishes.For two-dimensional array, when array was empty, set finished.
The present invention can pass through without the technical characterictic of describing or adopt existing techniques in realizing, does not repeat them here.Certain above-mentioned explanation is not to be limitation of the present invention, and the present invention also is not limited to above-mentioned giving an example, and the variation that those skilled in the art make in essential scope of the present invention, interpolation also should belong to protection scope of the present invention.
Claims (6)
1. a transparent OSD software implementation method is characterized in that, obtains the character ISN of this character according to editor's OSD character content;
Utilize the content of described character from character library, to obtain the character pattern of this described character;
Scan described character pattern, and record the position that scans and be the ranks number of the position of " 1 ";
Set up when the OSD character display position of pre-editing take the upper left corner as true origin take the character pattern position as dimension and take to the right and downwards as the stack coordinate system of positive axis;
Take the ranks of correspondence number as coordinate set in described stack coordinate system.
2. transparent OSD software implementation method according to claim 1 is characterized in that, described set comprises predetermined brightness and the dataset of colourity.
3. transparent OSD software implementation method according to claim 1 is characterized in that, described set is to predetermined RGB dataset.
4. according to claim 1 to 3 arbitrary described transparent OSD software implementation methods, it is characterized in that, the OSD of coupling current application, the corresponding character boundary of configuration OSD, the character of each order of magnitude is to there being a character library.
5. transparent OSD software implementation method according to claim 1, it is characterized in that, a two-dimensional data matrix is sequentially constructed for the position of " 1 " in all positions that scan, and row matrix represent the quantity of OSD character pattern meta, and rectangular array represents the ranks number that OSD character pattern meta is " 1 ".
6. transparent OSD software implementation method according to claim 1, it is characterized in that, default two-dimensional array, according to from top to bottom, from left to right scan mode scans, the position that scans number is sequentially deposited in described two-dimensional array for the ranks of the position of " 1 ", and when set, from described array, sequentially take out array element and carry out described set in described stack coordinate system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210343906.4A CN102902534B (en) | 2012-09-18 | 2012-09-18 | A kind of transparent OSD software implementation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210343906.4A CN102902534B (en) | 2012-09-18 | 2012-09-18 | A kind of transparent OSD software implementation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102902534A true CN102902534A (en) | 2013-01-30 |
CN102902534B CN102902534B (en) | 2015-08-12 |
Family
ID=47574781
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210343906.4A Expired - Fee Related CN102902534B (en) | 2012-09-18 | 2012-09-18 | A kind of transparent OSD software implementation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102902534B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105242895A (en) * | 2015-09-24 | 2016-01-13 | 深圳市冠旭电子有限公司 | Dot matrix text display method and apparatus |
CN110445995A (en) * | 2019-07-04 | 2019-11-12 | 苏州光之翼智能科技有限公司 | A kind of UAV Video overlapping system |
CN113316018A (en) * | 2021-04-12 | 2021-08-27 | 浙江华创视讯科技有限公司 | Method, device and storage medium for overlaying time information on video picture display |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1710946A (en) * | 2005-07-08 | 2005-12-21 | 杭州海康威视数字技术有限公司 | Method for overlaying character on digital picture |
CN101888505A (en) * | 2010-06-13 | 2010-11-17 | 杭州海康威视数字技术股份有限公司 | Method and device for displaying characters on screen |
-
2012
- 2012-09-18 CN CN201210343906.4A patent/CN102902534B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1710946A (en) * | 2005-07-08 | 2005-12-21 | 杭州海康威视数字技术有限公司 | Method for overlaying character on digital picture |
CN101888505A (en) * | 2010-06-13 | 2010-11-17 | 杭州海康威视数字技术股份有限公司 | Method and device for displaying characters on screen |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105242895A (en) * | 2015-09-24 | 2016-01-13 | 深圳市冠旭电子有限公司 | Dot matrix text display method and apparatus |
CN105242895B (en) * | 2015-09-24 | 2018-11-13 | 深圳市冠旭电子股份有限公司 | A kind of dot matrix character display methods and device |
CN110445995A (en) * | 2019-07-04 | 2019-11-12 | 苏州光之翼智能科技有限公司 | A kind of UAV Video overlapping system |
CN113316018A (en) * | 2021-04-12 | 2021-08-27 | 浙江华创视讯科技有限公司 | Method, device and storage medium for overlaying time information on video picture display |
CN113316018B (en) * | 2021-04-12 | 2022-08-09 | 浙江华创视讯科技有限公司 | Method, device and storage medium for overlaying time information on video picture display |
Also Published As
Publication number | Publication date |
---|---|
CN102902534B (en) | 2015-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6595714B2 (en) | Method and apparatus for generating a two-dimensional code image having a dynamic effect | |
CN109933324B (en) | Nuclear power DCS (distributed control System) human-computer interface automatic generation method | |
CN107943363B (en) | Background image configuration method and device, interactive intelligent panel and storage medium | |
CN109146991B (en) | Picture format conversion method, device, equipment and storage medium | |
CN102902535A (en) | Picture self-adaption method, system and terminal equipment | |
CN108205960B (en) | Method and device for rendering characters, electronic map making system and navigation system | |
CN108733296B (en) | Method, device and equipment for erasing handwriting | |
CN106658139B (en) | Focus control method and device | |
CN105335036A (en) | Input interaction method and input method system | |
JP7496956B2 (en) | Systems, methods and apparatus for image processing - Patents.com | |
CN103605506A (en) | Graphical user interface resource display method and terminal | |
CN111596848A (en) | Interface color taking method, device, equipment and storage medium | |
CN105096364B (en) | Animation data generation method and device and electronic equipment | |
CN105549817A (en) | Font package generation method and device and graphic display method and device | |
CN104766082A (en) | Image recognition method and device based on android system | |
CN108961361B (en) | Method and system for generating special effect text image and computer equipment | |
CN107122104B (en) | Data display method and device | |
CN117057318A (en) | Domain model generation method, device, equipment and storage medium | |
CN102902534A (en) | Transparent OSD (Optical Scanning Device) software realization method | |
CN114816135B (en) | Cross-device drawing system | |
CN101127847A (en) | A screen display synthesis method and synthesis device | |
KR101483611B1 (en) | Method and Terminal for Extracting a Object from Image | |
KR20130073943A (en) | Reshaping interfaces using content-preserving warps | |
CN106998489A (en) | A kind of focus is crossed the border searching method and device | |
CN111651969B (en) | style migration |
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: 20150812 Termination date: 20160918 |