CN103067665A - Implement method of self-adaptation overlying character colors based on video luminance - Google Patents
Implement method of self-adaptation overlying character colors based on video luminance Download PDFInfo
- Publication number
- CN103067665A CN103067665A CN2012105753817A CN201210575381A CN103067665A CN 103067665 A CN103067665 A CN 103067665A CN 2012105753817 A CN2012105753817 A CN 2012105753817A CN 201210575381 A CN201210575381 A CN 201210575381A CN 103067665 A CN103067665 A CN 103067665A
- Authority
- CN
- China
- Prior art keywords
- character
- video
- word string
- luminance
- bitmap
- 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 invention relates to an implement method of self-adaptation overlying character colors based on video luminance. The method comprises a first step of creating an area, filling area attribute, a second step of overlying the area to an appointed GROUP channel, a third step of generating a bitmap according to a word string, a fourth step of overlying the bitmap to the appointed area, a fifth step of receiving an appointed channel video bitstream and a sixth step of decoding and displaying a video. The implement method of the self-adaptation overlying character colors based on the video luminance is characterized in that the process of generating of the bitstream according to the word string comprises a first step of obtaining the word string, a second step of judging character types in the word string, a third step of setting character colors according to luminance of video images, a fourth step of obtaining character lattices and a fifth step of generating the bitmap by utilizing the character lattices. The colors of the overlying characters are displayed by a self-adaptation method according to the video luminance, when the area is extremely bright, the characters are overlaid by black, when the area is extremely dark, the characters are overlaid by white, namely the characters and a background are displayed in inversed colors, and therefore the video image is enabled to display character overlying information well under the conditions of luminance extremities.
Description
Technical field
The invention belongs to field of video monitoring, relate in particular to a kind of implementation method based on luminance video self adaptation overlaying character color.
Background technology
In the real-time procedure for displaying of monitor video, our some character informations that can superpose at the specific position of video image are such as date, time, video code rate, video frame rate and some self-defining contents.The stack of video image character information normally realizes in video encoding module (VENC module), H.264 the VENC module can be supported, JPEG, MJPEG and MPEG-4 protocol code and support the multichannel real-time coding, and every road coding is independent of one another, scheduling VPP module is carried out the video pre-treatment to video image when supporting Video coding, and scheduling Region module superposes to the coded image content.In video image during overlaying character, the OSD that need to superpose in video is used for showing some specific information (as: timestamps, code checks etc.), also can fill color lump in case of necessity, these OSD that are superimposed upon on the video are referred to as the zone with the color lump that blocks on video.The concrete processing procedure of existing overlaying character, reach as shown in Figure 1 shown in Figure 2, comprise create zone and fill area attribute, with the zone be added to specify the GROUP passage, according to word string generate bitmap, stack bitmap to the appointed area, receive dedicated tunnel video code flow and decoding display video, the processing procedure that wherein generates bitmap according to word string is: obtain in real time word string, judge character types (Chinese character or English) in the word string, obtain character pattern, utilize character pattern generation bitmap.The problem that the method exists is, it can only show with designated color at assigned address the character information of these stacks when (for example too dark or too bright) in the extreme situation of background luminance appears in video, can make the character information indistinguishable of stack.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of implementation method based on luminance video self adaptation overlaying character color is provided, the method adopts adaptive mode to show the color of these overlaying characters, thereby the character information of stack is clearly shown, solve the problem of the overlaying character almost illegible under extreme case.
A kind of implementation method based on luminance video self adaptation overlaying character color, comprise the steps: to create zone and fill area attribute, with the zone be added to specify the GROUP passage, according to word string generate bitmap, stack bitmap to the appointed area, receive dedicated tunnel video code flow and decoding display video, describedly may further comprise the steps according to word string generation bitmap:
⑴ obtain in real time word string;
⑵ judge the character types in the word string;
⑶ arrange character color according to the brightness of video image;
⑷ obtain character pattern;
⑸ utilize character pattern to generate bitmap.
And the method that described step ⑶ arranges character color is: at first calculate absolute coordinate according to the character relative coordinate; Then calculate the mean flow rate of character region according to character coordinates; According to average brightness value character color is set at last.
And, the method of the mean flow rate of described calculating character region is: entire image is divided into several intervals, by the brightness data of analysis image, obtain five sections exposure statistical informations in each interval, utilize these five sections exposure statistical informations can calculate this regional mean flow rate.
And described character color is black and white, when the mean flow rate of character region during greater than critical value, character color is arranged to black, otherwise is arranged to white.
Advantage of the present invention and good effect are:
The present invention shows the color of these overlaying characters in adaptive mode according to luminance video, namely take character as unit, determine the Show Color of character according to the mean flow rate of its zonule, place, when the zone is too bright, with the black overlaying character, when the zone is too dark, superpose with white, be that character and background inverse show, so that video image also can well show the character overlapped information in the extreme situation of brightness.
Description of drawings
Fig. 1 is the process chart of existing video and graph compound character;
Fig. 2 is the process chart that generates bitmap among Fig. 1 according to word string;
Fig. 3 is the present invention generates bitmap according to word string process chart;
Fig. 4 is the present invention display effect figure behind the overlaying character in video image.
Embodiment
Below in conjunction with accompanying drawing the embodiment of the invention is further described.
A kind of implementation method based on luminance video self adaptation overlaying character color as shown in Figure 1, may further comprise the steps:
Step 1: create zone and fill area attribute;
Step 2: the zone is added to specifies the GROUP passage;
Step 3: generate bitmap according to word string;
This step generates bitmap with word string with adaptive mode according to luminance video, specifically comprises following treatment step:
⑴ obtain in real time word string;
⑵ judge the character types in the word string, and character types comprise Chinese type and English type;
⑶ arrange character color;
It is the innovation of patent application of the present invention that character color is set, its brightness according to video image arranges character color, and concrete processing procedure is: at first the relative coordinate (with respect to the zone that creates) according to character calculates absolute coordinate (with respect to image origin); Then calculate the mean flow rate of character region according to character coordinates; According to average brightness value character color is set at last.Because character color has black and white, when regional luminance (0-255) during greater than a certain critical value Set font become black, otherwise be arranged to white, i.e. character and background inverse demonstration.
When above-mentioned processing, need the particular location of calculating character region, its computational methods are that the relative coordinate with character adds that the side-play amount of relative image origin can obtain.During the mean flow rate of calculating character region, entire image is divided into the individual interval of ZONE_ROW*ZONE_COLUMN (being 7*9 at present), brightness data by analysis image, obtain five sections exposure statistical informations in each interval, utilize these five sections exposure statistical informations can calculate this regional mean flow rate.Can calculate this regional mean flow rate by these five sections exposure statistical informations.
⑷ obtain character pattern;
⑸ utilize character pattern to generate bitmap;
Step 4: the stack bitmap is to the appointed area;
Step 5: receive the dedicated tunnel video code flow;
Step 6: decoding display video.
By above-mentioned treatment step, can be automatically character be set as black or white shows according to the brightness of video image, show the result as shown in Figure 4.
It is emphasized that; embodiment of the present invention is illustrative; rather than determinate; therefore the present invention includes and be not limited to the embodiment described in the embodiment; every other execution modes that drawn by those skilled in the art's technical scheme according to the present invention belong to the scope of protection of the invention equally.
Claims (4)
1. implementation method based on luminance video self adaptation overlaying character color, comprise the steps: to create zone and fill area attribute, with the zone be added to specify the GROUP passage, according to word string generate bitmap, stack bitmap to the appointed area, receive dedicated tunnel video code flow and decoding display video, it is characterized in that: describedly may further comprise the steps according to word string generation bitmap:
⑴ obtain in real time word string;
⑵ judge the character types in the word string;
⑶ arrange character color according to the brightness of video image;
⑷ obtain character pattern;
⑸ utilize character pattern to generate bitmap.
2. described implementation method based on luminance video self adaptation overlaying character color according to claim 1, it is characterized in that: the method that described step ⑶ arranges character color is: at first calculate absolute coordinate according to the character relative coordinate; Then calculate the mean flow rate of character region according to character coordinates; According to average brightness value character color is set at last.
3. described implementation method based on luminance video self adaptation overlaying character color according to claim 2, it is characterized in that: the method for the mean flow rate of described calculating character region is: entire image is divided into several intervals, brightness data by analysis image, obtain five sections exposure statistical informations in each interval, utilize these five sections exposure statistical informations can calculate this regional mean flow rate.
4. described implementation method based on luminance video self adaptation overlaying character color according to claim 2, it is characterized in that: described character color is black and white, when the mean flow rate of character region during greater than critical value, character color is arranged to black, otherwise is arranged to white.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105753817A CN103067665A (en) | 2012-12-25 | 2012-12-25 | Implement method of self-adaptation overlying character colors based on video luminance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105753817A CN103067665A (en) | 2012-12-25 | 2012-12-25 | Implement method of self-adaptation overlying character colors based on video luminance |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103067665A true CN103067665A (en) | 2013-04-24 |
Family
ID=48110107
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105753817A Pending CN103067665A (en) | 2012-12-25 | 2012-12-25 | Implement method of self-adaptation overlying character colors based on video luminance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103067665A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103731608A (en) * | 2013-12-27 | 2014-04-16 | 深圳英飞拓科技股份有限公司 | Character superimposition display method capable of supporting multiple colors and automatic color inverting |
CN104469210A (en) * | 2014-11-25 | 2015-03-25 | 冯为心 | Edging method used for SDI high-definition video character superimposition |
CN104536713A (en) * | 2014-12-22 | 2015-04-22 | 小米科技有限责任公司 | Method and device for displaying characters in image |
CN104967923A (en) * | 2015-06-30 | 2015-10-07 | 北京奇艺世纪科技有限公司 | Subtitle color setting method and device |
CN106485666A (en) * | 2015-08-31 | 2017-03-08 | 中国航天科工集团第四研究院指挥自动化技术研发与应用中心 | A kind of information indicating method and apparatus |
CN108270983A (en) * | 2017-12-26 | 2018-07-10 | 深圳市兴森快捷电路科技股份有限公司 | A kind of character adding display methods and device |
CN109151549A (en) * | 2018-09-10 | 2019-01-04 | 天津市亚安科技有限公司 | Realize monitor video picture character adding inverse display system and method, processor |
CN115550608A (en) * | 2022-09-19 | 2022-12-30 | 国网智能科技股份有限公司 | Multi-user high-concurrency AI video real-time fusion display control method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1479513A (en) * | 2002-03-28 | 2004-03-03 | ����ŷ�������ʽ���� | Data communication device, data communication system and data communication method |
CN1914903A (en) * | 2004-02-10 | 2007-02-14 | Lg电子株式会社 | Text subtitle decoder and method for decoding text subtitle streams |
CN101299804A (en) * | 2008-05-28 | 2008-11-05 | 华为技术有限公司 | Character overlapping method and device |
-
2012
- 2012-12-25 CN CN2012105753817A patent/CN103067665A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1479513A (en) * | 2002-03-28 | 2004-03-03 | ����ŷ�������ʽ���� | Data communication device, data communication system and data communication method |
CN1914903A (en) * | 2004-02-10 | 2007-02-14 | Lg电子株式会社 | Text subtitle decoder and method for decoding text subtitle streams |
CN101299804A (en) * | 2008-05-28 | 2008-11-05 | 华为技术有限公司 | Character overlapping method and device |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN104469210A (en) * | 2014-11-25 | 2015-03-25 | 冯为心 | Edging method used for SDI high-definition video character superimposition |
CN104536713A (en) * | 2014-12-22 | 2015-04-22 | 小米科技有限责任公司 | Method and device for displaying characters in image |
CN104967923A (en) * | 2015-06-30 | 2015-10-07 | 北京奇艺世纪科技有限公司 | Subtitle color setting method and device |
CN104967923B (en) * | 2015-06-30 | 2019-02-01 | 北京奇艺世纪科技有限公司 | A kind of method and device that subtitle color is set |
CN106485666A (en) * | 2015-08-31 | 2017-03-08 | 中国航天科工集团第四研究院指挥自动化技术研发与应用中心 | A kind of information indicating method and apparatus |
CN106485666B (en) * | 2015-08-31 | 2019-11-29 | 中国航天科工集团第四研究院指挥自动化技术研发与应用中心 | A kind of information indicating method and apparatus |
CN108270983A (en) * | 2017-12-26 | 2018-07-10 | 深圳市兴森快捷电路科技股份有限公司 | A kind of character adding display methods and device |
CN108270983B (en) * | 2017-12-26 | 2021-05-04 | 深圳市兴森快捷电路科技股份有限公司 | Character superposition display method and device |
CN109151549A (en) * | 2018-09-10 | 2019-01-04 | 天津市亚安科技有限公司 | Realize monitor video picture character adding inverse display system and method, processor |
CN115550608A (en) * | 2022-09-19 | 2022-12-30 | 国网智能科技股份有限公司 | Multi-user high-concurrency AI video real-time fusion display control method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103067665A (en) | Implement method of self-adaptation overlying character colors based on video luminance | |
TR201907297T4 (en) | Devices and methods for enhanced coding of images. | |
KR20170006969A (en) | Display apparatus and control method thereof | |
ATE500578T1 (en) | NON-PHOTO REALISTIC REPRESENTATION OF AUGMENTED REALITY | |
KR101021474B1 (en) | full color Variable Message Signboard system for road traffic guidance expression of moving picture | |
TW200943169A (en) | Image-based remote access system | |
CN104966115A (en) | Method for filling two-dimensional code through image | |
CN102402918B (en) | Method for improving picture quality and liquid crystal display (LCD) | |
CN107025087B (en) | Image display method and equipment | |
CN107749055A (en) | A kind of fault detection method, system and the device of LED traffic guidances screen | |
CN103607581A (en) | Video monitoring image display method based on three-dimensional images | |
CN106664442A (en) | Transmitting apparatus, transmitting method, receiving apparatus, and receiving method | |
TW200744382A (en) | Block truncation coding (BTC) method and apparatus | |
CN104853154A (en) | Dangerous rock deformation information extraction and alarm method based on motion image | |
CN104021527A (en) | Rain and snow removal method in image | |
CN105472361A (en) | Method and system for image fluorescence processing of projector | |
CN104461431A (en) | Method and system for switching of superposed windows of joined screen | |
CN110187858B (en) | Image display method and system | |
CN102098544A (en) | Image display method of television wall | |
CN103617073B (en) | Method for analyzing and displaying picture file of electrical power system | |
CN105120369A (en) | Menu background color processing method and apparatus | |
CN108573678A (en) | A kind of display methods and device | |
CN104240213A (en) | Display method and device | |
CN102065318B (en) | System and method for detecting frame loss and image split of digital video system | |
CN106559714A (en) | A kind of extraction method of key frame towards digital video copyright protection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 300384 in Tianjin Binhai Huayuan Industrial Zone (outer ring) eight Haitai Huake Road No. 6 Applicant after: TIANJIN YAAN TECHNOLOGY CO., LTD. Address before: 300384, 8, Zi Yuan Road, Binhai New Area, Tianjin Applicant before: Tianjin Yaan Technology Co., Ltd. |
|
COR | Change of bibliographic data | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130424 |