检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《信息技术》2015年第9期118-120,共3页Information Technology
摘 要:文中设计了一种基于开源库OpenCV、FreeType和VLC的多种文字视频字幕叠加工具。该工具首先读取字幕文件中的时间信息和文本信息,然后按时间信息解码对应的视频帧,最后将字幕的文本内容绘制到视频帧中。克服了OpenCV只支持西文字符绘制、不支持中文字符的缺点,并支持多种字体的绘制。该工具可在视频截图上批量叠加不同字体的字幕,能够很便捷地生成大量字幕素材,用于视频字幕检测算法的设计或评估。This paper presents the design of open source libraries OpenCV, FreeType and a multi-language video subtitle overlay tool based on the VLC. The tool reads time information and text information from the subtitle files at first, and then decodes video frames according to the time information. Finally, the text of the subtitle is drawn on the extracted frames. The tool overcomes the shortcoming of OpenCV which only supports western characters and does not support Chinese characters, and is capable of drawing multiple fonts. The tool can overlay subtitle in different fonts to the video snapshot in a batch mode, which is convenient to provide massive subtitle material for designing or evaluating video subtitle detection algorithms.
关 键 词:字幕检测 OPENCV FREETYPE VLC
分 类 号:TP391.41[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.49