CN106899878A - 一种基于omap芯片的透明度可调的视频图像叠加方法及系统 - Google Patents
一种基于omap芯片的透明度可调的视频图像叠加方法及系统 Download PDFInfo
- Publication number
- CN106899878A CN106899878A CN201710168310.8A CN201710168310A CN106899878A CN 106899878 A CN106899878 A CN 106899878A CN 201710168310 A CN201710168310 A CN 201710168310A CN 106899878 A CN106899878 A CN 106899878A
- Authority
- CN
- China
- Prior art keywords
- module
- omap
- osd
- transparency
- user
- 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
- 238000000034 method Methods 0.000 title claims abstract description 16
- 150000001875 compounds Chemical class 0.000 title abstract 2
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 230000004927 fusion Effects 0.000 abstract description 13
- 238000004364 calculation method Methods 0.000 abstract description 7
- 230000000694 effects Effects 0.000 abstract description 7
- 230000002452 interceptive effect Effects 0.000 abstract description 3
- 239000000654 additive Substances 0.000 abstract 1
- 230000000996 additive effect Effects 0.000 abstract 1
- 230000003139 buffering effect Effects 0.000 abstract 1
- 238000012360 testing method Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000002156 mixing Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4314—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for fitting data in a restricted space on the screen, e.g. EPG data in a rectangular grid
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4316—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4318—Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Studio Circuits (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
一种基于OMAP芯片的透明度可调的视频图像叠加方法及系统。其包括:用户操作模块,采集模块,存储模块,ARM控制模块,DSP运算模块和显示模块。用户通过用户操作模块的交互界面选择想要叠加显示的图片及其透明度值,将OSD图片预处理后写入存储模块的缓冲区,OMAP芯片ARM控制模块采集模块获取特定格式的实时视频数据,OMAP芯片DSP运算模块根据设定的透明度值将实时视频数据和图片数据进行像素级的加权计算,显示模块通过LCD屏显示最终叠加融合效果。本发明在实时视频上叠加透明OSD与用户所选择图片的复杂度无关,支持混合透明度的实时修改,提高了OSD的灵活性和便捷性。
Description
技术领域
本发明属于数字视频图像处理与显示技术领域,涉及一种OSD(OnScreenDisplay,屏幕显示)的实现方法及系统。
背景技术
在多媒体数字图像处理技术的运用中,视频检测系统常常是关注的重点。常用的视频图像叠加方法有两种:
1)使用叠加芯片进行叠加
2)使用计数器计算像素点进行叠加
这两种方法只能适用于叠加简单字符,很难支持复杂图形,故OSD所包含的信息量少。而且在进行图像叠加时字符会完全覆盖原视频图像的信息,并不支持透明度的调节,不能根据视频叠加融合场景的变化进行适应。另外这两种方法在使用时需要配置复杂的外围电路,如字符字模点阵存储器等。硬件电路设计比较复杂、使用不方便、稳定性差,且多数OSD不能编辑。OSD所用到的每一个字符也需要事前进行点阵描述和额外的空间进行存储,维护管理成本高。
本发明采用ARGB颜色空间的像素级图像数据叠加融合,可以解决以上问题。格式为ARGB的视频图像单一像素点的颜色为32位值:alpha、红色、绿色和蓝色各8位。存储在Alpha通道内的alpha值指示颜色的透明度,表示颜色与背景色的混合程度。即一个像素点的透明度可被视为区间[0,255]的随机变量,其中0表示完全透明的颜色,255表示完全不透明的颜色。直接对图像中的像素点进行数据运算,实现像素级的图像叠加融合。给定源颜色的三个分量(红色、绿色和蓝色)都按照以下公式与背景颜色的相应分量混合:
显示颜色=源颜色×alpha/255+背景颜色×(255-alpha)/255
发明内容
本发明提供一种基于OMAP芯片的透明度可调的视频图像叠加方法及系统,旨在解决现有OSD实现方法编辑灵活性差和开发成本高的问题,其包括以下:
用户操作模块,采集模块,存储模块,ARM控制模块,DSP运算模块和显示模块。用户通过用户操作模块的交互界面选择想要叠加显示的图片及其透明度值,将OSD图片预处理后写入存储模块的缓冲区,OMAP芯片ARM控制模块采集模块获取特定格式的实时视频数据,OMAP芯片DSP运算模块根据设定的透明度值将实时视频数据和图片数据进行像素级的加权计算,显示模块通过LCD屏显示最终叠加融合效果。其中混合透明度值支持0~255共256级的调节。
具体的,采集模块使用CCD摄像头和TVP5146M2解码芯片,采用帧缓冲队列的形式获取YUV格式的视频数据。
具体的,ARM控制模块和DSP运算模块通过DSPlink通信,共享SDRAM数据缓冲区。
本发明通过DSP的运算能力,它充分利用了空间域处理计算简单的特点,避免了频域处理的复杂处理过程,在实时视频上叠加透明OSD的整个叠加过程与用户所选择图片的复杂度无关,支持混合透明度的实时修改,提高了OSD的灵活性和便捷性。
附图说明
图1为本发明处理流程框图;
图2为测试OSD图片omap.rgb;
图3为一帧实时采集的视频图像;
图4为视频图像与测试图片叠加融合的效果1;
图5为视频图像与测试图片叠加融合的效果2;
图6为视频图像与测试图片叠加融合的效果3;
具体实施方式
下面结合附图和实例对本发明进一步说明
用户通过交互界面从程序的当前目录下选择所需叠加的OSD图片,并设置整体混合透明度值参数alpha,其中数值范围为(0~255),共256级。所选取的OSD图片数据会被加载到OSD窗口,并记录图片的宽度参数i和高度参数j。
其中实时视频数据透明度值为alpha,OSD图片透明度为255-alpha。可参见图2,一张大小为400x272的测试图片,用于和实时视频图像叠加融合,从中能看出OSD测试图片为完全非透明图片,透明度值默认为255。
获取摄像头设备的性能参数,读取采集视频图像的制式并记录采集的YUV视频图像的具体存储格式,图像宽度参数m和图像高度参数n。通过CCD摄像头和TVP5146M2解码芯片获取实时视频数据,可参见图3为不进行叠加融合时,通过摄像头采取的一帧视频图像,其大小为720x576,该图像的透明度值默认为255,即非透明。
OMAP芯片ARM控制模块控制实时视频数据采集的帧缓冲队列,采集到的YUV格式实时视频数据会传输到DSP运算模块。
DSO运算模块根据YUV视频数据的具体存储格式(如4:4:4或4:2:2等),选择不同的DSP算法将单帧视频数据转换到ARGB颜色空间,将视频数据加载到视频窗口。其中单一颜色通道的计算结果值若大于255时则设置为255,若计算结果值小于0则设置为0。其中根据程序启动时输入的alpha值,对单帧视频图像的所有像素点进行透明度值设置。
以YUV422转换为ARGB为例:
ARGB(m,n)=alpha(m,n)+R(m,n)+G(m,n)+B(m,n)
其中ARGB(m,n)为一帧ARGB图像中第m行,第n列的像素值
alpha(m,n)为一帧ARGB图像中第m行,第n列的透明度值
1)R颜色通道的转换
R(m,n)=[1192*[YUV(m,n)-16]+1634*[YUV(m,n+3)-128]]>>10
2)G颜色通道的转换
G(m,n)=[1192*[YUV(m,n)-16]-833*[YUV(m,n+3)-128]-400*[YUV(m,n+1)-128]>>10
3)B颜色通道的转换
B(m,n)=[1192*[YUV(m,n)-16]+2066*[YUV(m,n+1)-128]]>>10
最后OSD窗口和视频窗口进行叠加显示,通过DVI输出接口与LCD屏连接,可以直接观察叠加融合效果,显示完一帧视频图像后,将当前帧缓冲重新放入队列尾,并从队列头取出新的帧缓冲,进行下一帧视频图像的叠加显示,直至停止采集图像。其中叠加区域的像素点值会根据视频图像和图片图像各自的透明度值进行加权混合,非叠加区域则直接显示原视频图像。对叠加融合后的单一像素点计算如下:
显示数据=视频数据×alpha/255+OSD图片×(255-alpha)/255
叠加融合区域:
非叠加融合区域:
图4,图5,图6是在不同的alpha输入值下本算法的处理效果,可以看出融合叠加后的图像很好的同时保留了视频图像和测试图片的图像信息,没有造成图像失真或模糊。
本发明未经描述的技术特征可以通过或采用现有技术实现,在此不再赘述。当然上述说明并非是对本发明的限制,本发明也并不限于上述举例,本技术领域的普通技术人员在本发明的实质范围内所做出的变化、添加,也应属于本发明的保护范围。
Claims (3)
1.一种基于OMAP芯片的透明度可调的视频图像叠加方法及系统,其特征在于可以选择所需OSD图片,叠加过程与OSD图片的复杂程度无关,而无需字符库的管理。
2.根据权利要求1所述的一种基于OMAP芯片的透明度可调的视频图像叠加方法及系统,其特征在于支持启动时根据用户需要进行透明度的调节设置。
3.根据权利要求1所述的一种基于OMAP芯片的透明度可调的视频图像叠加方法及系统,其特征在于通过符合XDM标准的DSP算法进行视频数据的颜色空间快速转换。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710168310.8A CN106899878A (zh) | 2017-03-21 | 2017-03-21 | 一种基于omap芯片的透明度可调的视频图像叠加方法及系统 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710168310.8A CN106899878A (zh) | 2017-03-21 | 2017-03-21 | 一种基于omap芯片的透明度可调的视频图像叠加方法及系统 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106899878A true CN106899878A (zh) | 2017-06-27 |
Family
ID=59193945
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710168310.8A Pending CN106899878A (zh) | 2017-03-21 | 2017-03-21 | 一种基于omap芯片的透明度可调的视频图像叠加方法及系统 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106899878A (zh) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108154544A (zh) * | 2017-12-19 | 2018-06-12 | 苏州华兴源创电子科技有限公司 | 一种在图像上叠加字符的方法和装置 |
CN108428222A (zh) * | 2018-05-21 | 2018-08-21 | 深圳市神飞电子科技有限公司 | 一种太赫兹图像与自然光图像叠加的系统 |
CN110060197A (zh) * | 2019-03-26 | 2019-07-26 | 浙江达峰科技有限公司 | 一种3d图像交互模块及处理方法 |
CN110913262A (zh) * | 2019-11-28 | 2020-03-24 | 京东方科技集团股份有限公司 | 图像叠加方法和装置 |
CN112653917A (zh) * | 2020-11-04 | 2021-04-13 | 西安诺瓦星云科技股份有限公司 | 视频处理方法及装置和视频处理设备 |
CN114723835A (zh) * | 2022-02-08 | 2022-07-08 | 普力生(厦门)机电有限公司 | 一种特定png图像的源码高压缩与快速绘图方法 |
US11586255B2 (en) | 2019-11-19 | 2023-02-21 | Beijing Bytedance Network Technology Co., Ltd. | Method and apparatus for adjusting view for target device, electronic device and medium |
CN116363260A (zh) * | 2023-03-31 | 2023-06-30 | 北京百度网讯科技有限公司 | 图像生成方法、装置及电子设备 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110072134A (ko) * | 2009-12-22 | 2011-06-29 | 엘지전자 주식회사 | 영상 처리 장치 및 방법 |
CN103139509A (zh) * | 2013-02-26 | 2013-06-05 | 西安创芯科技有限责任公司 | 一种基于axi总线协议的osd控制显示方法及装置 |
CN103516998A (zh) * | 2013-09-25 | 2014-01-15 | 北京航空航天大学 | 一种面向模拟视频的台标叠加方法 |
CN105872418A (zh) * | 2016-03-30 | 2016-08-17 | 浙江大华技术股份有限公司 | 一种在数字图像上叠加gui图层的方法及装置 |
-
2017
- 2017-03-21 CN CN201710168310.8A patent/CN106899878A/zh active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110072134A (ko) * | 2009-12-22 | 2011-06-29 | 엘지전자 주식회사 | 영상 처리 장치 및 방법 |
CN103139509A (zh) * | 2013-02-26 | 2013-06-05 | 西安创芯科技有限责任公司 | 一种基于axi总线协议的osd控制显示方法及装置 |
CN103516998A (zh) * | 2013-09-25 | 2014-01-15 | 北京航空航天大学 | 一种面向模拟视频的台标叠加方法 |
CN105872418A (zh) * | 2016-03-30 | 2016-08-17 | 浙江大华技术股份有限公司 | 一种在数字图像上叠加gui图层的方法及装置 |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108154544A (zh) * | 2017-12-19 | 2018-06-12 | 苏州华兴源创电子科技有限公司 | 一种在图像上叠加字符的方法和装置 |
CN108428222A (zh) * | 2018-05-21 | 2018-08-21 | 深圳市神飞电子科技有限公司 | 一种太赫兹图像与自然光图像叠加的系统 |
CN110060197A (zh) * | 2019-03-26 | 2019-07-26 | 浙江达峰科技有限公司 | 一种3d图像交互模块及处理方法 |
US11586255B2 (en) | 2019-11-19 | 2023-02-21 | Beijing Bytedance Network Technology Co., Ltd. | Method and apparatus for adjusting view for target device, electronic device and medium |
CN110913262A (zh) * | 2019-11-28 | 2020-03-24 | 京东方科技集团股份有限公司 | 图像叠加方法和装置 |
CN110913262B (zh) * | 2019-11-28 | 2022-11-04 | 京东方科技集团股份有限公司 | 图像叠加方法和装置 |
CN112653917A (zh) * | 2020-11-04 | 2021-04-13 | 西安诺瓦星云科技股份有限公司 | 视频处理方法及装置和视频处理设备 |
CN114723835A (zh) * | 2022-02-08 | 2022-07-08 | 普力生(厦门)机电有限公司 | 一种特定png图像的源码高压缩与快速绘图方法 |
CN116363260A (zh) * | 2023-03-31 | 2023-06-30 | 北京百度网讯科技有限公司 | 图像生成方法、装置及电子设备 |
CN116363260B (zh) * | 2023-03-31 | 2024-05-17 | 北京百度网讯科技有限公司 | 图像生成方法、装置及电子设备 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106899878A (zh) | 一种基于omap芯片的透明度可调的视频图像叠加方法及系统 | |
CN111225150B (zh) | 插帧处理方法及相关产品 | |
CN109547662B (zh) | 非模态视频和静态帧捕获 | |
CN110996170B (zh) | 视频文件播放方法及相关设备 | |
TWI513297B (zh) | Image processing apparatus and image processing method | |
TWI567634B (zh) | 採用多重顯示管線以驅動一影像圖框之獨立部分的裝置、運算系統及方法 | |
CN102724458B (zh) | 视频画面全屏显示的字幕处理方法及视频终端 | |
US11783445B2 (en) | Image processing method, device and apparatus, image fitting method and device, display method and apparatus, and computer readable medium | |
JP4263190B2 (ja) | 映像合成回路 | |
CN108141576A (zh) | 显示装置及其控制方法 | |
CN103440674A (zh) | 一种数字图像蜡笔特效的快速生成方法 | |
US20100253850A1 (en) | Video presentation system | |
CN113132650B (zh) | 一种视频图像显示处理控制装置、方法及显示终端 | |
US20130250136A1 (en) | Image pickup device and image preview system and image preview method thereof | |
US7411613B2 (en) | Video signal processing apparatus | |
US20020176011A1 (en) | On-screen device for subject of interest in portable electronic device, and method of controlling same | |
CN101159819A (zh) | 一种在线视频中插播Flash的方法和装置 | |
US20130021371A1 (en) | Image display apparatus and image display method | |
CN107644451A (zh) | 动画展示方法和装置 | |
CN105516633A (zh) | 一种图像处理系统 | |
CN114245027B (zh) | 一种视频数据混合处理方法、系统、电子设备和存储介质 | |
CN113393391B (zh) | 图像增强方法、图像增强装置、电子设备和存储介质 | |
CN110225177B (zh) | 一种界面调节方法、计算机存储介质及终端设备 | |
CN110874816B (zh) | 一种图像处理方法、装置、移动终端及存储介质 | |
JP2014041455A (ja) | 画像処理装置、画像処理方法、及びプログラム |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170627 |
|
WD01 | Invention patent application deemed withdrawn after publication |