CN106899878A - 一种基于omap芯片的透明度可调的视频图像叠加方法及*** - Google Patents

一种基于omap芯片的透明度可调的视频图像叠加方法及*** Download PDF

Info

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
omap
module
osd
user
chips
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
Application number
CN201710168310.8A
Other languages
English (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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201710168310.8A priority Critical patent/CN106899878A/zh
Publication of CN106899878A publication Critical patent/CN106899878A/zh
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation 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/4314Generation 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation 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/4316Generation 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-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

一种基于OMAP芯片的透明度可调的视频图像叠加方法及***
技术领域
本发明属于数字视频图像处理与显示技术领域,涉及一种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算法进行视频数据的颜色空间快速转换。
CN201710168310.8A 2017-03-21 2017-03-21 一种基于omap芯片的透明度可调的视频图像叠加方法及*** Pending CN106899878A (zh)

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 (7)

* Cited by examiner, † Cited by third party
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 西安诺瓦星云科技股份有限公司 视频处理方法及装置和视频处理设备
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)

* Cited by examiner, † Cited by third party
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图层的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
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 (9)

* Cited by examiner, † Cited by third party
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 西安诺瓦星云科技股份有限公司 视频处理方法及装置和视频处理设备
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芯片的透明度可调的视频图像叠加方法及***
US20060050076A1 (en) Apparatus for and method of generating graphic data, and information recording medium
US7554563B2 (en) Video display control apparatus and video display control method
CN109345490B (zh) 一种移动播放端实时视频画质增强方法及***
US7623140B1 (en) Method and apparatus for processing video and graphics data to create a composite output image having independent and separate layers of video and graphics
WO2022111730A1 (zh) 图像处理方法、装置及电子设备
CN104010124A (zh) 一种显示滤镜效果的方法、装置和移动终端
EP3343913B1 (en) Display device and method for controlling same
CN107483771A (zh) 一种图像生成的方法和图像显示装置
CN103440674A (zh) 一种数字图像蜡笔特效的快速生成方法
JP2008217785A (ja) 表示コントローラおよび画像データ変換方法
CN106997608A (zh) 一种生成光晕效果图的方法及装置
US9723286B2 (en) Image processing apparatus and control method thereof
CN113727161B (zh) 一种基于microblaze的实时视频接缝剪裁方法及***
CN102572219A (zh) 移动终端及其图像处理方法
US8055077B2 (en) R/T display compression preserving intensity information
KR20240012396A (ko) 시간적으로 보간된 프레임들에서 마스크들을 사용한 고품질 ui 엘리먼트 경계들
CN110225177B (zh) 一种界面调节方法、计算机存储介质及终端设备
CN110597578B (zh) 连续的osd存储显示方法及装置
CN110874816B (zh) 一种图像处理方法、装置、移动终端及存储介质
CN114125319A (zh) 图像传感器、摄像模组、图像处理方法、装置和电子设备
CN110708476A (zh) 一种实时图像处理方法及装置
JP2014041455A (ja) 画像処理装置、画像処理方法、及びプログラム
JP2008141698A (ja) クロマキー装置及び映像合成装置
CN117710271B (zh) 一种基于海思2d加速平台的透明度处理方法及***

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170627