Skip to content

get the ppt content as video-capture from video tutorial by python

Notifications You must be signed in to change notification settings

gaozy09/Video2PPT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video2PPT

get the ppt content as video-capture from video tutorial by python

Why:

看一些视频教程的时候经常遇到需要对视频中的讲义或者 ppt 进行截图的情况,一张一张截图实在是重复劳动!!!shame!!!

How:

所以,我利用了 python ,opencv sklearn-image 等工具包:

  1. 对视频中帧进行截取
  2. 利用图像相似度进行图片取舍 具体的实现思路在 notebook 中,考虑到 markdown 中有对应的输出信息,会比较好理解

Result:

利用这份小代码就可以将视频中的ppt等讲义信息,按顺序,无重复的获取到了,可以以图片形式输出,也可以输出位 pdf 或者 markdown 等文件

Usage:

(venv) shan@cys:/media/shan/Elements/video2capture$ python v2i.py --videos_path='mda-id2urnnkytge9q34.mp4'
usage: v2i.py [-h] --videos_path VIDEOS_PATH [--sim_benchmark SIM_BENCHMARK]
              [--images_output_path IMAGES_OUTPUT_PATH]
              [--frame_per_step FRAME_PER_STEP]

optional arguments:
  -h, --help            show this help message and exit
  --videos_path VIDEOS_PATH
                        path to video
  --sim_benchmark SIM_BENCHMARK
                        image similarity benchmark
  --images_output_path IMAGES_OUTPUT_PATH
                        path to images output folder
  --frame_per_step FRAME_PER_STEP
                        how many frame per step

ToDo:

  1. OCR 功能
  2. ..待定

About

get the ppt content as video-capture from video tutorial by python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 95.6%
  • Python 4.4%