Nothing Special   »   [go: up one dir, main page]

CN103731608A - Character superimposition display method capable of supporting multiple colors and automatic color inverting - Google Patents

Character superimposition display method capable of supporting multiple colors and automatic color inverting Download PDF

Info

Publication number
CN103731608A
CN103731608A CN201310739553.4A CN201310739553A CN103731608A CN 103731608 A CN103731608 A CN 103731608A CN 201310739553 A CN201310739553 A CN 201310739553A CN 103731608 A CN103731608 A CN 103731608A
Authority
CN
China
Prior art keywords
color
character
information
value
lookup table
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
Application number
CN201310739553.4A
Other languages
Chinese (zh)
Other versions
CN103731608B (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.)
Shenzhen Infinova Ltd
Original Assignee
Shenzhen Infinova 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 Shenzhen Infinova Ltd filed Critical Shenzhen Infinova Ltd
Priority to CN201310739553.4A priority Critical patent/CN103731608B/en
Publication of CN103731608A publication Critical patent/CN103731608A/en
Application granted granted Critical
Publication of CN103731608B publication Critical patent/CN103731608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Generation (AREA)

Abstract

The invention provides a character superimposition display method capable of supporting multiple colors and automatic color inverting. The method includes the following steps that firstly, the luminance average value of a background image where a character is located needs to be calculated according to the position and font size information of the superimposed character, wherein the luminance average value needs to be compared with a set value so that whether the set character display color or the character display color which is inverted relative to the set character display color is displayed can be determined; secondly, matrix information generated by the freetype is modified in a dynamic mode according to the judgment result of the luminance value, if the character is displayed in the natural color, no processing is conducted, and if the character is displayed in the inverted color, the corresponding value of a matrix is modified to be the color index value of the inverted color; thirdly, processing and renewing a color lookup table, if a single color needs to be achieved, the same yuv values are filled in the color lookup table, and if the natural color and the inverted color need to be achieved, the yuv values of the two colors are filled in the same table in an alternate mode.

Description

A kind of character Overlapping display method that can support multiple color and automatic inverse
Technical field
The invention belongs to safety-security area, particularly at digital front-end equipment, line character stack as enterprising in equipment such as video camera, hemisphere, quick, The Cloud Terraces.
Background technology
Character overlaying function is a function of digital front-end equipment indispensability.The information of stack generally can dynamically arrange, and comprises the time, place, state etc. content.But, the information of common equipment stack, or display white, or show black, or wrongly written or mispronounced character adds the display effect of black surround.These display modes are subject to the impact of background luminance very large, if background is very bright or very dark, tend to cause the information of stack to see clearly, as shown in Figure 1.
Traditional character stacked system has two kinds, and a kind of is to produce a static formed word module information, when needing overlaying character, removes to search in formed word module information table the lattice information of the character that will superpose, and this dot matrix font information is substituted on the Y component of image.The method can realize simple black or white font shows.The shortcoming of the method is, the generative process of character library information bothers, and the font size in character library information fixes, if support the font of multiple size, need to do many parts of character library information, wastes valuable embedded device memory space.
Another kind of mode is, by the freetype storehouse of increasing income, dynamically to generate formed word module information.Freetype function is more powerful, supports font size setting, profile, and the characteristics such as italic are supported the setting of transparency simultaneously, the display effect of font is more attractive in appearance.Although Freetype storehouse can dynamically generate formed word module information, need to coordinate color lookup table to use, just can demonstrate different colors.Common way is, monochromatic color lookup table is set, and this method will inevitably cause under some scene, and the character of stack does not see.
YUV is a kind of colour coding method.
YUV is the kind of compiling true-color color space (color space), Y'UV, and YUV, YCbCr, the proper nouns such as YPbPr can be called YUV, have each other overlapping." Y " represents lightness (Luminance, Luma), " U " and " V " is colourity, concentration (Chrominance, Chroma), Y'UV, YUV, YCbCr, YPbPr is some mixed situation usually, wherein YUV and Y'UV are commonly used to describe analog signal, and contrary YCbCr and YPbPr are the signal of video signal for describing numerical digit, for example, in some compressed formats in MPEG, JPEG, but now, YUV is widely used conventionally in computer system.YUV Formats is divided into two forms:
Tighten form (packed formats): Y, U, V value are stored into Macro Pixels array, and the location mode of RGB is similar.
Planar format (planar formats): three deals of Y, U, V are left in respectively in different matrixes.
The YUV tightening in form (packed format) mixes, and for YUV4:4:4 form, with tightening, form is very suitable, has therefore just had UYVY, YUYV etc.Planar format (planar formats) refers to every Y deal, U deal and V deal are all with plane tissue independently, that is to say that all U deals must be after Y component, and V deal is after all U deals, this form is applicable to sampling (subsample).Planar format (planar format) has I420(4:2:0), YV12, IYUV etc.
Summary of the invention
The object of the invention is: in any scene, can clearly see the information of stack, the Show Color of font can arrange simultaneously.
The invention provides a kind of character Overlapping display method that can support multiple color and automatic inverse, described method comprises the steps:
1) need to be according to position and the font size information of the character of stack, calculate the average brightness of the background image of this character position, this average brightness needs and certain set point compares, to determine the character Show Color of display setting or the character Show Color contrary with set point;
2) according to the judged result of brightness value above, need to dynamically go to revise the formed word module information that freetype produces, if shown by true qualities, be left intact, if shown with inverse, need to revise type matrix analog value is the color index value of opposite color;
3) need to color lookup table be processed and be upgraded.General color lookup table is supported 8 256 kinds of colors, if monochromatic, fills identical yuv value, for example in color lookup table, if display white font can be filled { .y=235 .u=128 in color table, .v=128 .a=i}, wherein .a represents transparency.The principle of other color filling is identical.If need to realize positive and negative two kinds of colors, can in same table, alternately fill the yuv value of two kinds of colors.
Accompanying drawing explanation
By describing in more detail exemplary embodiment of the present invention with reference to accompanying drawing, above and other aspect of the present invention advantage will become clearer, in the accompanying drawings:
Fig. 1 is pure white font in prior art, the situation schematic diagram that highlighted place does not see;
Fig. 2 is the design sketch of black and white contrast of the present invention;
Fig. 3 is effect (left side blueness, the right yellow) figure of colored font of the present invention;
Fig. 4 is method flow diagram of the present invention.
Embodiment
Hereinafter, now with reference to accompanying drawing, the present invention is described more fully, various embodiment shown in the drawings.But the present invention can implement in many different forms, and should not be interpreted as being confined to embodiment set forth herein.On the contrary, it will be thorough with completely providing these embodiment to make the disclosure, and scope of the present invention is conveyed to those skilled in the art fully.
Hereinafter, with reference to Fig. 1 to Fig. 4, exemplary embodiment of the present invention is described in more detail.
When starting character stack, at overlapped information, resolving part needs first the parameter arranging to be resolved, and comprises enabling of character stack, the positional information of stack, font size, color and message length.
If the enable switch of character stack is opened, need to proceed to next step, upgrade corresponding character overlapped information, otherwise notice character laminating module is closed osd function.
More fresh character overlapped information comprises two parts, upgrades color lookup table and formed word module information.Upgrade color lookup table information according to the color parameter arranging, if only need to realize monochromatic effect, 256 kinds of color fillings in color lookup table can be become to fixing color, transparency is followed successively by 0 to 255.If realize positive inverse, can alternately store two kinds of color values, transparency also sets gradually into 0 to 255, i.e. countenance even number transparence value, inverse odd number transparence value.
If monochromatic display effect is set, do not need to upgrade formed word module information, the type matrix directly freetype being produced passes to character laminating module.If double-colored display effect is set, need to create a thread, the effect of this thread is, according to the character overlapped information arranging, dynamic calculation is wanted the average brightness of overlaying character region, if this mean value is greater than the brightness value of setting, need to do inverse processing to corresponding character, the formed word module information that is about to freetype generation converts the color index value of opposite color to.
The effect of character laminating module is, according to the color lookup table obtaining and formed word module information, completes the be added to function of image of character information.
The foregoing is only embodiments of the invention, be not limited to the present invention.The present invention can have various suitable changes and variation.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., within protection scope of the present invention all should be included in.

Claims (4)

1. the character Overlapping display method that can support multiple color and automatic inverse, is characterized in that:
Described method comprises the steps:
1) according to position and the font size information of the character of stack, calculate the average brightness of the background image of this character position, this average brightness needs and set point compares, to determine the character Show Color of display setting or the character Show Color contrary with set point;
2) the basis judged result of brightness value above, dynamically goes to revise the formed word module information that freetype produces, if with true qualities demonstration, be left intact, if with inverse demonstration, revise the color index value that type matrix analog value is opposite color;
3) color lookup table processed and upgraded, if monochromatic, in color lookup table, filling identical yuv value; If need to realize positive and negative two kinds of colors, in same table, alternately fill the yuv value of two kinds of colors.
2. a kind of character Overlapping display method that can support multiple color and automatic inverse according to claim 1, is characterized in that:
When starting character stack, at overlapped information, resolve part and first the parameter arranging is resolved, comprise enabling of character stack, the positional information of stack, font size, color and message length;
If the enable switch of character stack is opened, proceed to next step, upgrade corresponding character overlapped information, otherwise notice character laminating module is closed osd function.
3. a kind of character Overlapping display method that can support multiple color and automatic inverse according to claim 1 and 2, is characterized in that:
Described more fresh character overlapped information comprises two parts, upgrades color lookup table and formed word module information; Upgrade color lookup table information according to the color parameter arranging, if only need to realize monochromatic effect, 256 kinds of color fillings in color lookup table can be become to fixing color, transparency is followed successively by 0 to 255; If realize positive inverse, can alternately store two kinds of color values, transparency also sets gradually into 0 to 255, i.e. countenance even number transparence value, inverse odd number transparence value;
If monochromatic display effect is set, do not need to upgrade formed word module information, the type matrix directly freetype being produced passes to character laminating module; If double-colored display effect is set, create a thread, the effect of this thread is, according to the character overlapped information arranging, dynamic calculation is wanted the average brightness of overlaying character region, if this mean value is greater than the brightness value of setting, corresponding character is done to inverse processing, the formed word module information that is about to freetype generation converts the color index value of opposite color to.
4. a kind of character Overlapping display method that can support multiple color and automatic inverse according to claim 3, is characterized in that:
Described character laminating module, according to the color lookup table obtaining and formed word module information, completes the be added to function of image of character information.
CN201310739553.4A 2013-12-27 2013-12-27 Character superimposition display method capable of supporting multiple colors and automatic color inverting Active CN103731608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310739553.4A CN103731608B (en) 2013-12-27 2013-12-27 Character superimposition display method capable of supporting multiple colors and automatic color inverting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310739553.4A CN103731608B (en) 2013-12-27 2013-12-27 Character superimposition display method capable of supporting multiple colors and automatic color inverting

Publications (2)

Publication Number Publication Date
CN103731608A true CN103731608A (en) 2014-04-16
CN103731608B CN103731608B (en) 2017-02-08

Family

ID=50455520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310739553.4A Active CN103731608B (en) 2013-12-27 2013-12-27 Character superimposition display method capable of supporting multiple colors and automatic color inverting

Country Status (1)

Country Link
CN (1) CN103731608B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049758A (en) * 2015-06-30 2015-11-11 深圳市创凯电子有限公司 System and method for character superimposition processing of splicing wall
CN105635792A (en) * 2015-12-30 2016-06-01 深圳Tcl数字技术有限公司 Function menu adjusting method and device
CN106534722A (en) * 2016-12-19 2017-03-22 中国科学院长春光学精密机械与物理研究所 FPGA based video stream character superimposition processing system and processing method
CN108200361A (en) * 2018-02-07 2018-06-22 中译语通科技股份有限公司 A kind of title back processing method based on environment perception technology, display
CN109151549A (en) * 2018-09-10 2019-01-04 天津市亚安科技有限公司 Realize monitor video picture character adding inverse display system and method, processor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040095358A1 (en) * 2002-11-19 2004-05-20 Toshihiro Takagi Image processing apparatus
CN101299804A (en) * 2008-05-28 2008-11-05 华为技术有限公司 Character overlapping method and device
CN101477792A (en) * 2009-01-21 2009-07-08 深圳华为通信技术有限公司 Method for displaying overlapped pattern on the background picture and display apparatus thereof
CN103067665A (en) * 2012-12-25 2013-04-24 天津市亚安科技股份有限公司 Implement method of self-adaptation overlying character colors based on video luminance
CN103151022A (en) * 2013-01-31 2013-06-12 广东欧珀移动通信有限公司 Method for automatically changing font colors according to background color and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040095358A1 (en) * 2002-11-19 2004-05-20 Toshihiro Takagi Image processing apparatus
CN101299804A (en) * 2008-05-28 2008-11-05 华为技术有限公司 Character overlapping method and device
CN101477792A (en) * 2009-01-21 2009-07-08 深圳华为通信技术有限公司 Method for displaying overlapped pattern on the background picture and display apparatus thereof
CN103067665A (en) * 2012-12-25 2013-04-24 天津市亚安科技股份有限公司 Implement method of self-adaptation overlying character colors based on video luminance
CN103151022A (en) * 2013-01-31 2013-06-12 广东欧珀移动通信有限公司 Method for automatically changing font colors according to background color and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049758A (en) * 2015-06-30 2015-11-11 深圳市创凯电子有限公司 System and method for character superimposition processing of splicing wall
CN105049758B (en) * 2015-06-30 2018-10-02 深圳市创凯智能股份有限公司 The character adding processing system and method for combination
CN105635792A (en) * 2015-12-30 2016-06-01 深圳Tcl数字技术有限公司 Function menu adjusting method and device
WO2017113595A1 (en) * 2015-12-30 2017-07-06 深圳Tcl数字技术有限公司 Method and device for adjusting function menu
CN105635792B (en) * 2015-12-30 2018-12-07 深圳Tcl数字技术有限公司 Function menu method of adjustment and device
CN106534722A (en) * 2016-12-19 2017-03-22 中国科学院长春光学精密机械与物理研究所 FPGA based video stream character superimposition processing system and processing method
CN108200361A (en) * 2018-02-07 2018-06-22 中译语通科技股份有限公司 A kind of title back processing method based on environment perception technology, display
CN109151549A (en) * 2018-09-10 2019-01-04 天津市亚安科技有限公司 Realize monitor video picture character adding inverse display system and method, processor

Also Published As

Publication number Publication date
CN103731608B (en) 2017-02-08

Similar Documents

Publication Publication Date Title
US10242646B2 (en) RGB to YUV format conversion and inverse conversion method and circuit for depth packing and depacking
CN101185113B (en) Double displays device
CN106228581B (en) Pixel format is converted to the method and system of NV12 by GPU by ARGB
CN103731608A (en) Character superimposition display method capable of supporting multiple colors and automatic color inverting
CA2975180C (en) Method and device for decoding a color picture
EP3070925B1 (en) Color matching for imaging systems
US20180352263A1 (en) Method and device for processing color image data representing colors of a color gamut
CN101268700A (en) Method and apparatus for superimposing characters on video
KR20220020367A (en) Image processing method and apparatus
US20160322024A1 (en) Method of mapping source colors of images of a video content into the target color gamut of a target color device
WO2022205915A1 (en) Video processing method, video processing device, and display device
CN118540494A (en) Image data processing device and method
US20180139360A1 (en) Method and device for processing color image data representing colors of a color gamut
US20190132600A1 (en) Method and apparatus for encoding/decoding a scalar integer into a parameter representative of a pivot points of a piece-wise linear function
WO2015029633A1 (en) Liquid crystal display device, and image display method for liquid crystal display device
CN107341835B (en) Image processing method, device, electronic equipment and computer readable storage medium
KR102449634B1 (en) Adaptive color grade interpolation method and device
JP2007142494A (en) Image processing apparatus and method, and program
CN105898274B (en) A kind of 2D plus depth 3D renderings longitudinal direction storage method based on RGB compressions
EP3096510A1 (en) Method and device for processing color image data representing colors of a color gamut
CN114155137A (en) Format conversion method, controller and computer-readable storage medium
KR101012585B1 (en) Multi-channelImage registration system and the Method
CN109963066A (en) A kind of image obtains analytic method and system
US9531919B2 (en) Image processing apparatus, image processing method, and recording medium that color-convert an input image into an output image suitable for a color gamut of a printing apparatus
US8681167B2 (en) Processing pixel planes representing visual information

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