支持视频内容检索和课件自动生成的库
Project description
介绍
主要功能:
- 视频内容搜索
- 课件生成
其它能力:
- 生成可序列化的信息: 包括帧的标题,文本内容,播放位置
- 框选搜索结果
- 多配置
支持的视频类型: 中文为主, 以PPT作为主体讲授的视频
鲁棒性:
- 动画切换
- 内容递增
- 中英文内容
- 人像的讲解
- 无重复
使用:
- 安装
pip install -i https://test.pypi.org/simple/ vsearcher=={version}
- 使用案例
from vsearcher import VSearcher
def test():
VSearcher.init(static_folder="app/static", output_dir='vs-output') # 设置输出文件夹
video_path = "./test.mp4" # 视频文件路径
video = VSearcher.executeVideo(video_file_path=video_path) # 处理视频 生成 注释文件
courseware = video.cw # 获取生成的课件的路径
result = VSearcher.search(video, '关键字') # 视频检索
VSearcher.releaseByOutputDir(video.output_dir) # 清空处理期间产生的文件
print(f'courseware: {courseware}')
print(f'search_result: {dict(result)}')
if __name__ == '__main__':
test()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vsearcher-0.2.6.tar.gz
(35.9 kB
view hashes)
Built Distribution
vsearcher-0.2.6-py3-none-any.whl
(39.5 kB
view hashes)
Close
Hashes for vsearcher-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db17cd2342feece702ed885f379a8cd1fb92909f820556edb698289cc34a9b2e |
|
MD5 | f9463e835a212bab29c33ee56164e477 |
|
BLAKE2b-256 | e6b2bfd76e9dd98490ddafbb04bc466fa35a95c4c64b19f31617a8434923ef12 |