CN101299804A - Character overlapping method and device - Google Patents
Character overlapping method and device Download PDFInfo
- Publication number
- CN101299804A CN101299804A CNA2008100676127A CN200810067612A CN101299804A CN 101299804 A CN101299804 A CN 101299804A CN A2008100676127 A CNA2008100676127 A CN A2008100676127A CN 200810067612 A CN200810067612 A CN 200810067612A CN 101299804 A CN101299804 A CN 101299804A
- Authority
- CN
- China
- Prior art keywords
- character
- picture element
- brightness
- value
- video image
- 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.)
- Pending
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the invention discloses a character stacking method a device thereof, including: obtaining a video image block required stacking the first character; obtaining the first character; obtaining the brightness mean value of the video image block; adjusting the brightness value of the foreground color pixel point of the first character according to the brightness mean value, to obtain the second character, wherein the relative value of the brightness value of the foreground color pixel point of the second character and the brightness mean value is larger than or equal to the first presupposed value; stacking the foreground color pixel point of the second character according to the brightness value and the corresponding pixel point in the video image block. Through adjusting the brightness value of the foreground color character to be stacked, that the difference is present between the brightness value of the foreground color of the character to be stacked and the brightness mean value of the video image block is ensured, to real-time ensure the contrast between the stacked character and the video image, thereby clearly displaying the stacked character.
Description
Technical field
The present invention relates to multimedia technology field, relate in particular to character overlapping method and device.
Background technology
Screen display technology has obtained significant progress in present field of video displaying.By screen display technology, can on the basis of video pictures, provide extra display message, as menu, information etc.The user can be according to the adjusting of realizations such as menu, information to display effect.
In the screen display scheme of prior art when realizing the character stack, at first with screen display (onscreen display, OSD) need for example numeral 0~9 of content displayed (being called osd information) in, letter a~z, brightness commonly used, contrast symbol etc., according to specific form (12 * 18,12 * 16,24 * 24) be divided into piece, and these contents and color attribute information (foreground and background colour information) are solidificated in the memory, in display buffer, put corresponding call number, when superposeing, carry out transparent overlap-add procedure by searching the corresponding content part to be superimposed of call number taking-up.
The inventor is in realizing process of the present invention, find that there is following shortcoming at least in prior art: carrying out video content and character type osd information when carrying out transparent stack, if the foreground and the vedio color of character type osd information are close, can be not easy to differentiate and cause not seeing certain the part character in the character type osd information of stack or the content of whole stack.
Summary of the invention
The object of the invention is to provide a kind of character overlapping method and device, can strengthen the contrast between character osd information and the video background, highlights the stack content.
According to an aspect of the present invention, provide a kind of character overlapping method, comprising:
Need to obtain the video image blocks of stack first character;
Obtain described first character;
Obtain the average brightness of described video image blocks;
Adjust the brightness value of the described first character foreground picture element according to described average brightness, obtain second character; The brightness value of the described second character foreground picture element and the relative value of described average brightness are more than or equal to first preset value;
The described second character foreground picture element is superposeed according to corresponding picture element in brightness value and the described video image blocks.
According to a further aspect in the invention, provide a kind of character stacking apparatus, comprising:
Video obtains the unit, is used to obtain the video image blocks of needs stack first character;
Character obtains the unit, is used to obtain described first character;
The brightness statistics unit is used to obtain the average brightness that described video obtains the video image blocks of unit acquisition;
The brightness adjustment unit is used for adjusting according to the average brightness that described brightness statistics unit obtains the brightness value of the described first character foreground picture element, obtains second character; The brightness value of the described second character foreground picture element and the relative value of described average brightness are more than or equal to first preset value;
The overlap-add procedure unit, the second character foreground picture element that is used for described brightness adjustment unit is obtained superposes according to corresponding picture element in the video image blocks of brightness value and described video acquisition unit acquisition.
The embodiment of the invention is by the average brightness of statistics video image blocks, adjust the brightness value of character to be superimposed, guarantee that the brightness value of character to be superimposed and the brightness value mean value of video image have certain difference, can the real-time ensuring overlaying character and video image blocks between have certain contrast, thereby can clearly illustrate the character that is superposeed more.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of character overlapping method embodiment one provided by the invention;
Fig. 2 is the schematic flow sheet of character overlapping method embodiment two provided by the invention;
Fig. 3 is for being the schematic flow sheet of character overlapping method embodiment three provided by the invention;
Fig. 4 is that character stacking apparatus provided by the invention is implemented one structural representation;
Fig. 5 is that character stacking apparatus provided by the invention is implemented two structural representation;
Fig. 6 is the structural representation of the embodiment three of character stacking apparatus provided by the invention;
The structural representation of the character stacking apparatus embodiment four that Fig. 7 provides for the embodiment of the invention;
The structural representation of the character stacking apparatus embodiment five that Fig. 8 provides for the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
As shown in Figure 1, be the schematic flow sheet of character overlapping method embodiment one provided by the invention, stacking method comprises:
S101, acquisition need the video image blocks of stack first character;
Every frame video image generally all is divided into uniform data block (hereinafter referred to as video image blocks), and obtains video data by the size of dividing the rear video image block.Some video image blocks does not need overlaying character, just can directly export to be used for showing; Some video image blocks needs overlaying character (first character), will carry out the character overlap-add procedure to this class video image blocks so.
S102, described first character of acquisition;
Step S101 need to have obtained the video image blocks of stack first character, also will obtain corresponding described first character here.In order to guarantee can to fall into the whole video image block after the character stack, reach better effect, to guarantee that generally the size of character pattern maximum in the OSD character can fall into video image blocks fully.Character generally includes background colour, foreground.For example for the character of white gravoply, with black engraved characters, foreground is a white, and background colour is a black.
S103, obtain the average brightness of described video image blocks;
Particularly, add up the average brightness of all picture elements in this video image blocks.
S104, adjust the brightness value of the described first character foreground picture element, obtain second character according to described average brightness; The brightness value of the described second character foreground picture element and the relative value of described average brightness are more than or equal to first preset value;
In order to guarantee that character foreground and video image keep certain contrast, highlight the character after the stack, need to adjust in real time the brightness value of first character.Particularly, with the picture element is that unit handles, relative value between the brightness value of the comparison first character foreground picture element and the average brightness of video image blocks, for example can compare the brightness value of foreground picture element and the absolute difference between the described average brightness, if difference is less than particular value (first preset value), then need to adjust the brightness value of character foreground picture element, the brightness value of character (second character) the foreground picture element after the feasible adjustment brightness and the absolute difference between the described average brightness are more than or equal to first preset value.Relatively the method for relative value can also be used other modes, be reference value for example with the less value of numerical value wherein, numerical value that will be bigger removes and obtains a quotient in this reference value then, if quotient is less than particular value (for example 1.2), then adjust the brightness value of foreground picture element, make quotient more than or equal to particular value (first preset value).Aforementioned preset value can require to determine according to reality.During concrete operations, the adjustment of foreground brightness value can be according to following principle: if video image is brighter, then the brightness value of character foreground is turned down; If video image is darker, transfer the brightness value of character foreground big.
S105, the described second character foreground picture element is superposeed according to corresponding picture element in brightness value and the described video image blocks.
Adjust after the character foreground brightness value, promptly the second character foreground picture element that obtains after adjusting can be superposeed according to picture element corresponding in brightness alpha value and the video image blocks.
As seen, embodiment one is by the average brightness of statistics video image, adjust the brightness value of character to be superimposed, guarantee that the brightness value of character to be superimposed and the brightness value mean value of video image have certain difference, can the real-time ensuring overlaying character and video image between have certain contrast, thereby can more clearly see the character that is superposeed clearly.
Figure 2 shows that the schematic flow sheet of character overlapping method embodiment two provided by the invention, comprise with the difference of embodiment: increased character is carried out the step that crisperding is handled, be character to be superimposed and add upper side frame (hereinafter referred to as the frame look, so that difference is come with foreground).Method specifically may further comprise the steps:
S201, acquisition video image blocks;
S202, judge whether this video image blocks needs overlaying character,, otherwise change step S208 if then change step S203;
S203, acquisition character to be superimposed;
The color space that OSD character to be superimposed adopts under a lot of situations color space general and video is inconsistent.For example, the OSD character is a rgb format under a lot of situations, and the form of video is a yuv format, in order to make OSD character and video format compatibility, needs earlier the OSD character conversion to be become yuv format.
The average brightness of S204, statistics video image blocks, method is with embodiment one.
S205, adjust the character brightness value, particularly, adjust the brightness value of character foreground, make the absolute difference of average brightness of fast brightness value of adjusted character and video image blocks more than or equal to particular value.
S206, carry out crisperding for character to be superimposed to handle.Particularly, add the frame of certain width at the periphery of character foreground.The brightness value of frame look will keep a specific difference with the brightness value of foreground, and for example the absolute difference of the brightness value of the brightness value of frame look and foreground is greater than second preset value, and second preset value can be set according to actual needs.
Need to prove, there is no tangible sequence limit between the step 204-206, carrying out which step earlier can.If step S206 carried out before step S205, be equivalent to earlier the character of handling without the brightness adjustment be added the upper side frame look, and give certain brightness value, then when execution in step S206, adjusted again after the brightness value of foreground, also want the brightness value of corresponding adjustment frame look, because this moment is along with the change of foreground brightness, possible adjusted foreground and frame form and aspect are near, need adjust the brightness value of frame look again, make frame colour brightness value and foreground brightness value also keep certain difference.
S207, the character and the video image blocks that will carry out after crisperding is handled superpose according to the alpha value.
Particularly, character comprises foreground and frame look, and the brightness value of foreground picture element and the brightness value of frame look picture element are superposeed according to the brightness value of alpha value with the corresponding picture element of video blocks respectively.
S208, output video data.
For the video image blocks that does not need overlaying character, directly output gets final product; For the video image blocks that needs overlaying character, after the processing through step 203-207, the video image blocks of data after obtaining superposeing with the output of the video image blocks of data after the stack, can be used for screen display.Need to prove, in order to guarantee that character can be added to accurately on the position, before to the video image blocks stack, to carry out Synchronization Control to video image blocks of data and the character data of carrying out after brightness adjustment and crisperding are handled, make character data in appropriate, to export to be used to the correspondence position of video image blocks of being added to.
In the present embodiment, make have certain contrast, also character has been carried out the crisperding processing with the video background image except the character foreground being adjusted brightness.Because if just OSD character foreground changes with video background, because average brightness is added up according to video image blocks, under some video scene, the OSD foreground brightness of some part and stack is close in the image block, the OSD foreground brightness of some part and stack falls far short, can cause certain partial stack clearly, and other parts still do not see, and done the OSD character foreground of crisperding processing because frame look and OSD foreground have certain luminance difference, and the frame look also changes along with the OSD foreground, will make the information of stack seem more outstanding, the stack of therefore having done after crisperding is handled can make character type OSD clear regardless of what can both see under the scene that is in which kind of video background.
Fig. 3 is the schematic flow sheet of character overlapping method embodiment three provided by the invention, and embodiment three is that with embodiment two differences the step that crisperding is handled was carried out before character brightness adjustment, and character comprises foreground, background colour and frame look.Present embodiment introduces the stack flow process by picture element in the video image blocks, comprises the stack of character brightness adjustment and video pixel point.Introduce the overlap-add procedure process of picture element one by one below in detail:
S301, acquisition video pixel point;
S302, judge the above-mentioned video pixel point OSD character picture element that whether needs to superpose, if the result changes the S304 step for being, otherwise commentaries on classics S303 step.
S303, the output of video pixel point;
Promptly without the direct output video picture element of overlap-add procedure (transparent stack).
S304, judge whether character picture element to be superimposed is the background colour picture element, and being then changes step S303, promptly the background pixels point is not used in stack and shows, so direct output video picture element; Otherwise forward step S305 to.
S305, judge whether character picture element to be superimposed is foreground, and being then changes step S306, otherwise expression character picture element is the frame look, then changes step S309.
S306, judge character foreground to be superimposed and video image blocks average brightness absolute difference whether less than first preset value, be then to change S307, otherwise change S312.
The brightness value of S307, adjustment foreground picture element, guaranteeing has specific difference with average brightness, particularly, the absolute difference that makes the brightness value of foreground picture element and average brightness is greater than first preset value, or directly the foreground picture element is directly carried out inverse and handle, if promptly the brightness value of foreground picture element is with binary representation, then should binary complement code as adjusted brightness value.
S308, with adjusted character foreground picture element by the superpose back output of alpha value and video pixel point.
S309, judging whether the foreground brightness value did adjustment, is then to change step S310, otherwise changes step S313.Because the foreground picture element of each character can keep unified a kind of brightness value when stack, the frame look also keeps unified a kind of brightness value, therefore can judge according to brightness value whether picture element is foreground or frame look, judge easily also whether the foreground brightness value made adjustment (brightness value has changed, i.e. adjustment was done in expression).
S310, adjustment frame colour brightness value guarantee that frame colour brightness value and foreground brightness value have specific difference (for example absolute difference is more than or equal to second preset value).
S311, the frame look picture element that will adjust after the brightness are pressed alpha and video pixel point stack output.
S312, character foreground picture element is pressed alpha and screen picture element stack output.
S313, character frame look picture element is pressed alpha and screen picture element stack output.
Three pairs of character background colours of embodiment have been done transparent overlap-add procedure, in order to avoid background colour influences the demonstration of video image.Simultaneously, because average brightness is added up according to video image blocks, under some scene, the OSD foreground brightness of some part and stack is close in the video image blocks, the OSD foreground brightness of some part and stack falls far short, can cause certain partial stack clearly, and other parts still do not see, and done the character foreground of crisperding processing because frame look and foreground have certain luminance difference, and the frame look also changes along with foreground, will make the information of stack seem more outstanding.Therefore the stack of having done the crisperding processing can make character type OSD clear regardless of what can both see under the scene that is in which kind of video background.
Fig. 4 is that character stacking apparatus provided by the invention is implemented one structural representation, and this device comprises:
Video obtains unit 401, is used to obtain the video image blocks of needs stack first character;
Character obtains unit 405, is used to obtain described first character;
Overlap-add procedure unit 404, the second character foreground picture element that is used for described brightness adjustment unit 403 is obtained superposes according to corresponding picture element in the video image blocks of brightness value and described video acquisition unit 501 acquisitions.
The device of present embodiment is by the average brightness of statistics video image, adjust the brightness value of character to be superimposed, guarantee that the brightness value of character to be superimposed and the brightness value mean value of video image have certain difference, can the real-time ensuring overlaying character and video image between have certain contrast, thereby can more clearly see the character that is superposeed clearly.
Fig. 5 is that character stacking apparatus provided by the invention is implemented two structural representation, comprising:
Video obtains unit 501, is used to obtain the video image blocks of needs stack first character;
Character obtains unit 505, is used to obtain described first character;
There is certain difference in the brightness of frame colour brightness requirement and character foreground, to sketch the contours of the frame of character more significantly, particularly, the absolute difference of the brightness value of the brightness value of the frame look picture element of interpolation and foreground picture element is more than or equal to second preset value.A kind of direct processing method is, the frame look can be adjusted into the inverse of foreground, and the brightness value that is about to the frame look is adjusted into the complement code of foreground brightness value.
Overlap-add procedure unit 504, the foreground picture element and the frame look picture element of second character after being used for respectively crisperding processing unit 506 being handled carry out overlap-add procedure according to the corresponding picture element that alpha value and video obtain the video image blocks of unit 501 acquisitions.
Present embodiment not only to OSD character foreground brightness adjust and make OSD character and video image color that certain contrast be arranged, and character has been carried out the crisperding processing, and frame look and foreground keep certain contrast, show the OSD character more especially, under any video scene, can both show the OSD character of stack more clearly.
Figure 6 shows that the structural representation of the embodiment three of character stacking apparatus provided by the invention, described device comprises:
Video obtains unit 601, is used to obtain the video image blocks of needs stack first character;
Character obtains unit 605, is used to obtain described first character;
Overlap-add procedure unit 604, the second character foreground picture element that is used for described brightness adjustment unit 603 is obtained superposes according to corresponding picture element in the video image blocks of brightness value and described video acquisition unit 601 acquisitions.
Present embodiment is before carrying out brightness adjustment and stack to the OSD character, if OSD character data format and vedio data form are inconsistent, the OSD character data format is converted to consistent with video data format then earlier, carries out overlap-add procedure again.Usually the color space that OSD character to be superimposed adopts color space general and video is inconsistent.For example, the OSD character is a rgb format under a lot of situations, and the form of video is a yuv format, in order to make OSD character and video format compatibility, needs earlier the OSD character conversion to be become yuv format.Certainly, also can after brightness is adjusted to OSD, carry out the color space conversion again.
The structural representation of the character stacking apparatus embodiment four that Fig. 7 provides for the embodiment of the invention, this device comprises:
Video obtains unit 701, is used to obtain the video image blocks of needs stack first character;
Synchronous control unit 706 is used for when video obtains the video image blocks of unit 701 acquisitions, and the notice character obtains unit 705 and obtains described first character; On the correct video location that need be added to OSD character to be superimposed, therefore need be when will obtaining the video image blocks of data, synchronization gain OSD character to be superimposed;
Character obtains unit 705, is used for obtaining described first character according to the notice of synchronous control unit 706;
Brightness statistics unit 702 is used to obtain the average brightness that described video obtains the video image blocks of unit 701 acquisitions;
Brightness adjustment unit 703 is used for adjusting according to the average brightness that described brightness statistics unit 702 obtains the brightness value of the described first character foreground picture element, obtains second character; The brightness value of the described second character foreground picture element and the relative value of described average brightness are more than or equal to first preset value;
Overlap-add procedure unit 704, the second character foreground picture element that is used for brightness adjustment unit 703 is obtained superposes according to the corresponding picture element of video image blocks that alpha value and video obtain unit 701 acquisitions.
In the present embodiment, because OSD character to be superimposed is carried out synchronous output control with video image blocks, guaranteed that the OSD character can be added on the precalculated position of video image blocks.
Fig. 8 is the structural representation of character stacking apparatus embodiment five provided by the invention, and this device comprises:
Video obtains unit 801, is used to obtain the video image blocks of needs stack first character; Particularly, can from external memory storage, obtain needed video image blocks of data by bus interface.
Character obtains unit 805, is used for obtaining described first character according to the notice of synchronous control unit 808, particularly, can need obtain the OSD character of stack from external memory storage;
Particularly, crisperding processing unit 806 is responsible for first character is colluded top edge, promptly add upper side frame, the brightness value of the frame look that adds and the foreground brightness value of character will have certain difference, and guarantee that each character of OSD and the frame that adds can drop in the video transmission data block fully.Particularly, the absolute difference of the brightness value of the frame look picture element that adds and the brightness value of foreground picture element is more than or equal to second preset value, usually the frame look can be adjusted into the inverse of foreground, the brightness value that is about to the frame look is adjusted into the complement code of foreground brightness value.
Overlap-add procedure unit 804 is used for that the adjusted second character foreground picture element is carried out in 803 pairs of frame colour brightnesses of brightness adjustment unit and frame look picture element superposes according to the corresponding picture element of video image blocks that alpha value and video obtain unit 801 acquisitions.
Video obtains unit 801 and comprises the block of video data buffer unit, is used for the video image blocks of data that buffer memory obtains; Character obtains unit 805 and comprises character data block cache unit, is used for the buffer memory character and obtains the character data that unit 805 obtains.Described block of video data buffer unit, the video image blocks of data that main responsible temporary transient storage obtains from external memory storage, its size is the twice of the video image blocks of data of appointment, can be divided into two specify image blocks of data sizes to the video data buffer unit when using is used as ping-pong buffer (buffer) and uses, treat as writing of prime for one, reading in as the back level; The character data buffer unit is used for temporary OSD character data, and usage is the same with above-mentioned video data buffer unit, the image block data that the current OSD character data that writes or read that different is may not have appointment big or small so much.
Below introduce an application example of the present invention, utilize device shown in Figure 8 to implement character overlapping method provided by the invention.
Present embodiment is the coordinate (0 of 352 * 288 video image at the wide * height of input, 0) size of locating to superpose is 160 * 16 OSD character information, content is " Chinese digital media products displaying ", OSD character foreground is a black, background colour is a grey, the dot matrix of each character (character) is 16 * 16, and the size of video image blocks is 16 * 16.
After receiving the enabling signal of an outside frame, video obtains unit 801 and sends image block data application order to Video Layer, comprises the image block data size, coordinate, boundary information etc.
Synchronous control unit 808 judges whether current image block needs the OSD character that superposes, if desired, 805 of notice character acquisition unit are schemed layer to OSD and are sent an image block data application order, comprise the macro block data size, coordinate, boundary informations etc. are not if need, then do not send data application order, directly the output video data.Coordinate is that (0,0) is so the character boundary of the OSD layer that is written into for the first time also is that the same size with video layer is 16 * 16 owing to superpose here.Particularly, synchronous control unit 808 be responsible for video or the unit obtain in the process of vedio data, control character obtains unit 805 and obtains osd data in correct position, just according to the position of this video image blocks of data of record, the osd data that this piece of synchronization gain need superpose, and export to crisperding processing unit 806.OSD character stack origin coordinates is (0,0) in this example, and all OSD character boundaries are 160 * 16.So when video acquisition unit 801 reads in first 16 * 16 block of video data, synchronous control unit 808 is judged the OSD character data that this piece requires, provide the coordinate of the osd data of requirement, wide height and other attribute informations etc., and require character acquisition unit 805 to obtain same 16 * 16 big or small OSD character data pieces, just be the dot matrix size of a character, use for follow-up OSD crisperding processing unit and overlap-add procedure unit.Handle second image block data again finish the overlap-add procedure of first 16 * 16 image block data when follow-up overlap-add procedure unit 804 after.
Video obtains unit 801 the OSD character data that obtains is deposited in the character data buffer memory, and character obtains unit 805 video data that obtains is deposited in the video data buffer memory.
Video image blocks is depositing in before the video data buffer memory, brightness statistics unit 802 carries out the brightness statistics of video image blocks, promptly carry out brightness statistics summation and mean value calculation, and the average brightness that obtains is sent to follow-up brightness adjustment unit 803 uses according to 16 * 16.
Character after color conversion cell 807 is handled crisperding processing unit 806 carries out the color space conversion, and the OSD character data that is about to the RGB data format is converted to the data format of YUV, carries out brightness processed by brightness adjustment unit 803 more afterwards.
The character data of brightness adjustment unit after to crisperding processing unit 807 crisperdings carried out the brightness adjustment, comprises adjusting foreground brightness and frame colour brightness.Particularly, handle by each picture element: judge by the osd data form of agreement input whether this pixel number certificate to be superimposed is foreground, background colour or the frame look of OSD character, if background colour, the just direct output video image data (being transparent stack) of stack result; If the picture element of foreground, whether the absolute difference of average brightness of judging the brightness value of this OSD foreground and 16 * 16 video image blocks of data is less than certain particular value, more than or equal to this particular value, alpha value overlaying character type OSD foreground is directly pressed in overlap-add procedure unit 804, less than this particular value, brightness adjustment unit 803 carries out inverse to the OSD foreground brightness of this picture element to be handled; Judge that this point is the frame look, need also to judge that whether the absolute difference of adjusted foreground brightness value and frame colour brightness value is less than certain particular value, be that then brightness adjustment unit 803 is exchanged the colour brightness for the treatment of selvedge frame, the OSD character foreground of unifying usefulness when guaranteeing the frame look with stack has certain luminance difference (for example being made as the inverse of foreground), and alpha value stack frame look is pressed in overlap-add procedure unit 804 then; Otherwise colour brightness does not process to frame, and alpha value stack frame look is directly pressed in overlap-add procedure unit 904.After whole 16 * 16 stack piece handled, superimposed data can be exported and be used for showing.Overlap-add procedure flow process afterwards is the same, disposes until a frame video image.
The inventive method is handled by earlier OSD character to be superimposed being carried out crisperding, the brightness statistics mean value and the OSD prospect brightness value of video background image in the more specific then size, realization is handled character type OSD foreground and frame look, processing procedure comprises that inverse processing or assurance and video background brightness value have certain methods such as brightness value difference, superpose with the video background image more at last after handling, can strengthen the contrast of OSD character pattern and video background image by this method, highlight the stack content of character type OSD, well improve after carrying out the stack that causes because of character type OSD foreground is close with the video background color that the transparent stack of character type OSD the time may the occur OSD prospect content that superposes and be submerged in phenomenon in the video background image, can more clearly show the OSD character content that is superposeed.For example, if the processing to OSD character foreground and frame look is made as the inverse processing, like this in the relatively more black place of video background image, the osd information of stack is used white font dark border and is shown, the place that the video background image is whiter, the osd information of stack is used black font white frame and shown, and is very clear.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above only is several embodiments of the present invention, and those skilled in the art can carry out various changes or modification to the present invention and do not break away from the spirit and scope of the present invention according to application documents are disclosed.Therefore protection scope of the present invention is as the criterion with claim.
Claims (14)
1, a kind of character overlapping method is characterized in that, comprising:
Need to obtain the video image blocks of stack first character;
Obtain described first character;
Obtain the average brightness of described video image blocks;
Adjust the brightness value of the described first character foreground picture element according to described average brightness, obtain second character; The brightness value of the described second character foreground picture element and the relative value of described average brightness are more than or equal to first preset value;
The described second character foreground picture element is superposeed according to corresponding picture element in brightness value and the described video image blocks.
2, the method for claim 1 is characterized in that, describedly adjusts the brightness value of the described first character foreground picture element according to described average brightness, obtains second character and comprises:
Calculate first relative value of the brightness value and the described average brightness of the described first character foreground picture element;
If described first relative value is less than first preset value, then adjust the brightness value of described foreground picture element, obtain second character, the brightness value of the described second character foreground picture element and second relative value of described average brightness are more than or equal to described first preset value.
3, method as claimed in claim 1 or 2 is characterized in that, described relative value comprises the brightness value of described foreground picture element and the absolute difference between the described average brightness.
4, method as claimed in claim 2, it is characterized in that, also comprise: if described first relative value more than or equal to described first preset value, superposes the described first character foreground picture element according to corresponding picture element in brightness value and the described video image blocks.
5, the method for claim 1 is characterized in that, described first character comprises the background colour picture element, if present picture element point is the background colour picture element, described background colour picture element is carried out transparent stack with picture element in the corresponding video image blocks.
6, the method for claim 1 is characterized in that, also comprises before the described second character foreground picture element is superposeed according to corresponding picture element in brightness value and the described video image blocks:
For described second character adds the upper side frame look, the absolute difference of the brightness value of described frame look picture element and the brightness value of described foreground picture element is more than or equal to second preset value.
7, method as claimed in claim 6 is characterized in that, also comprises: described frame look picture element is superposeed according to corresponding picture element in brightness value and the described video image blocks.
8, the method for claim 1, it is characterized in that, after obtaining described first character,, be described video image blocks data format with the Data Format Transform of described first character if the data format and the described video image blocks data format of described first character are inconsistent.
9, method as claimed in claim 8, it is characterized in that, described first character is the RGB data format, described vedio data form is a yuv format, and described Data Format Transform with described first character is that described vedio data form comprises: described first character is converted to yuv format from rgb format.
10, a kind of character stacking apparatus is characterized in that, comprising:
Video obtains the unit, is used to obtain the video image blocks of needs stack first character;
Character obtains the unit, is used to obtain described first character;
The brightness statistics unit is used to obtain the average brightness that described video obtains the video image blocks of unit acquisition;
The brightness adjustment unit is used for adjusting according to the average brightness that described brightness statistics unit obtains the brightness value of the described first character foreground picture element, obtains second character; The brightness value of the described second character foreground picture element and the relative value of described average brightness are more than or equal to first preset value;
The overlap-add procedure unit, the second character foreground picture element that is used for described brightness adjustment unit is obtained superposes according to corresponding picture element in the video image blocks of brightness value and described video acquisition unit acquisition.
11, device as claimed in claim 10 is characterized in that, also comprises:
The crisperding processing unit is used to described second character to add the upper side frame look, and the absolute difference of the brightness value of described frame look picture element and the brightness value of described foreground picture element is more than or equal to second preset value.
As claim 10 or 11 described devices, it is characterized in that 12, described overlap-add procedure unit also is used for described frame look picture element is superposeed according to corresponding picture element in the video image blocks of brightness value and described video acquisition unit acquisition.
13, device as claimed in claim 10 is characterized in that, also comprises:
Color conversion cell is used for when the data format of described first character and described video image blocks data format are inconsistent, and the Data Format Transform of described first character is become described vedio data form.
14, device as claimed in claim 10 is characterized in that, also comprises:
Synchronous control unit is used for notifying described character to obtain the unit and obtaining described first character when described video obtains the unit and obtains described video image blocks.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100676127A CN101299804A (en) | 2008-05-28 | 2008-05-28 | Character overlapping method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100676127A CN101299804A (en) | 2008-05-28 | 2008-05-28 | Character overlapping method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101299804A true CN101299804A (en) | 2008-11-05 |
Family
ID=40079474
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008100676127A Pending CN101299804A (en) | 2008-05-28 | 2008-05-28 | Character overlapping method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101299804A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101753902B (en) * | 2008-12-10 | 2012-05-16 | 晨星软件研发(深圳)有限公司 | Device and method for automatically regulating display information on screen |
CN103067665A (en) * | 2012-12-25 | 2013-04-24 | 天津市亚安科技股份有限公司 | Implement method of self-adaptation overlying character colors based on video luminance |
CN103731608A (en) * | 2013-12-27 | 2014-04-16 | 深圳英飞拓科技股份有限公司 | Character superimposition display method capable of supporting multiple colors and automatic color inverting |
CN104461485A (en) * | 2013-09-17 | 2015-03-25 | 腾讯科技(深圳)有限公司 | Window coloring method and user equipment |
CN105245933A (en) * | 2015-09-06 | 2016-01-13 | 青岛中星微电子有限公司 | Screen display method and device |
CN106373197A (en) * | 2016-09-06 | 2017-02-01 | 广州视源电子科技股份有限公司 | Augmented reality method and augmented reality device |
CN106657813A (en) * | 2016-12-08 | 2017-05-10 | 苏州长风航空电子有限公司 | Implementation method for video superposition algorithm |
CN107278288A (en) * | 2015-02-22 | 2017-10-20 | 微软技术许可有限责任公司 | Dynamic icon restains to improve contrast |
CN107450814A (en) * | 2017-07-07 | 2017-12-08 | 深圳Tcl数字技术有限公司 | Menu automatic brightness adjustment method, user equipment and storage medium |
CN107483846A (en) * | 2017-08-29 | 2017-12-15 | 西安全志科技有限公司 | Video and graph compound method, stacking apparatus, code device and storage medium |
CN108053436A (en) * | 2017-11-15 | 2018-05-18 | 广州阿里巴巴文学信息技术有限公司 | Processing method, device, electronic equipment and the picture servers of picture |
CN109151549A (en) * | 2018-09-10 | 2019-01-04 | 天津市亚安科技有限公司 | Realize monitor video picture character adding inverse display system and method, processor |
WO2023184850A1 (en) * | 2022-03-31 | 2023-10-05 | 晶晨半导体(上海)股份有限公司 | Video image processing method and apparatus, and device and storage medium |
-
2008
- 2008-05-28 CN CNA2008100676127A patent/CN101299804A/en active Pending
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101753902B (en) * | 2008-12-10 | 2012-05-16 | 晨星软件研发(深圳)有限公司 | Device and method for automatically regulating display information on screen |
CN103067665A (en) * | 2012-12-25 | 2013-04-24 | 天津市亚安科技股份有限公司 | Implement method of self-adaptation overlying character colors based on video luminance |
CN104461485B (en) * | 2013-09-17 | 2019-03-15 | 腾讯科技(深圳)有限公司 | A kind of method and user equipment of forms coloring |
CN104461485A (en) * | 2013-09-17 | 2015-03-25 | 腾讯科技(深圳)有限公司 | Window coloring method and user equipment |
WO2015039567A1 (en) * | 2013-09-17 | 2015-03-26 | Tencent Technology (Shenzhen) Company Limited | Method and user apparatus for window coloring |
CN103731608A (en) * | 2013-12-27 | 2014-04-16 | 深圳英飞拓科技股份有限公司 | Character superimposition display method capable of supporting multiple colors and automatic color inverting |
CN103731608B (en) * | 2013-12-27 | 2017-02-08 | 深圳英飞拓科技股份有限公司 | Character superimposition display method capable of supporting multiple colors and automatic color inverting |
CN107278288A (en) * | 2015-02-22 | 2017-10-20 | 微软技术许可有限责任公司 | Dynamic icon restains to improve contrast |
CN105245933A (en) * | 2015-09-06 | 2016-01-13 | 青岛中星微电子有限公司 | Screen display method and device |
CN106373197A (en) * | 2016-09-06 | 2017-02-01 | 广州视源电子科技股份有限公司 | Augmented reality method and augmented reality device |
CN106657813A (en) * | 2016-12-08 | 2017-05-10 | 苏州长风航空电子有限公司 | Implementation method for video superposition algorithm |
CN106657813B (en) * | 2016-12-08 | 2019-08-02 | 苏州长风航空电子有限公司 | A kind of implementation method of video superposition algorithm |
CN107450814A (en) * | 2017-07-07 | 2017-12-08 | 深圳Tcl数字技术有限公司 | Menu automatic brightness adjustment method, user equipment and storage medium |
CN107450814B (en) * | 2017-07-07 | 2021-09-28 | 深圳Tcl数字技术有限公司 | Menu brightness automatic adjusting method, user equipment and storage medium |
CN107483846A (en) * | 2017-08-29 | 2017-12-15 | 西安全志科技有限公司 | Video and graph compound method, stacking apparatus, code device and storage medium |
CN108053436A (en) * | 2017-11-15 | 2018-05-18 | 广州阿里巴巴文学信息技术有限公司 | Processing method, device, electronic equipment and the picture servers of picture |
CN108053436B (en) * | 2017-11-15 | 2020-10-16 | 阿里巴巴(中国)有限公司 | Picture processing method and device, electronic equipment and picture server |
CN109151549A (en) * | 2018-09-10 | 2019-01-04 | 天津市亚安科技有限公司 | Realize monitor video picture character adding inverse display system and method, processor |
WO2023184850A1 (en) * | 2022-03-31 | 2023-10-05 | 晶晨半导体(上海)股份有限公司 | Video image processing method and apparatus, and device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101299804A (en) | Character overlapping method and device | |
CN107644410B (en) | Image processing method, image processing apparatus, image processing system, and display apparatus | |
CA1127332A (en) | Method and means for raster scanned texture display | |
CN104038807B (en) | A kind of figure layer mixed method and device based on OpenGL | |
US7557817B2 (en) | Method and apparatus for overlaying reduced color resolution images | |
CN108701351B (en) | Image display enhancement method and device | |
CN103996167A (en) | Thumbnail display method and user equipment | |
US12106444B2 (en) | Hierarchical grid interpolation systems and methods | |
US20240257321A1 (en) | Point-of-view image warp systems and methods | |
CN108694733B (en) | MCU-based display system and display method for overlaying dynamic images on background image | |
US7050066B2 (en) | Image processing apparatus and image processing program | |
CN105224538B (en) | The dithering process method and apparatus of image | |
CN114745520A (en) | Video image processing method and device, equipment and storage medium | |
CN109104628B (en) | Focus foreground generation method, storage medium, device and system of android television | |
CN102103849A (en) | OSD controller | |
CN113393391B (en) | Image enhancement method, image enhancement device, electronic apparatus, and storage medium | |
CN109766069B (en) | Auxiliary display method, device, electronic equipment and computer readable storage medium | |
US8754908B2 (en) | Optimized on-screen video composition for mobile device | |
CN112102219B (en) | Method and device for picking image-text in image | |
CN105912257B (en) | Image blend treating method and apparatus | |
CN114647467B (en) | Watermark updating method, device, system and storage medium | |
US20240095871A1 (en) | Cache architecture for image warp processing systems and methods | |
CN101227565A (en) | System and method for adding dynamic picture in real time image | |
JP3555940B2 (en) | Image processing apparatus and image processing method | |
JPH0462108B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20081105 |