Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

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

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.