视频提取PPT开箱即用版本发布


从视频中提取不重复图片,并转为 PDF
基于Video2pdfslides 改写,并借用nuitka 编译成单exe版本,目前仅提供Window 64版本(Window 7以上支持)。
需要下载开箱即用版本的,请关注公众号,并回复video2pdf 获得下载链接。
使用方法
命令行下运行
Usage: video2pdfslides [OPTIONS] VIDEO_PATHOptions:  -o, --output DIRECTORY       output folder for slides  [default: output]  -f, --frame_rate INTEGER     no.of frames per second that needs to be                               processed, fewer the count faster the speed                               [default: (3 or set FRAME_RATE env var)]  -v, --var_threshold INTEGER  Threshold on the squared Mahalanobis distance                               between the pixel and the model to decide                               whether a pixel is well described by the                               background model  [default: (16 or set                               VAR_THRESHOLD env var)]  -d, --detect_shadows         If true, the algorithm will detect shadows and                               mark them  [default: (False or set                               DETECT_SHADOWS env var)]  -n, --min_percent FLOAT      min % of diff between foreground and background                               to detect if motion has stopped  [default: (0.1                               or set MIN_PERCENT env var)]  -x, --max_percent INTEGER    max % of diff between foreground and background                               to detect if frame is still in motion                               [default: (3 or set MAX_PERCENT env var)]  --version  --help                       Show this message and exit.
主要就是指定视频路径(video_path), 最简单的命令方法,
video2pdfslides  VIDEO_PATH
其它可选参数,
  -o, --output DIRECTORY       输出目录  [默认: output]  -f, --frame_rate INTEGER     每秒处理帧数,值越小处理速度越快                               [默认: (3 或者通过环境变量 FRAME_RATE 设置)]  -v, --var_threshold INTEGER  方差阈值,用于判断当前像素是前景还是背景。一般默认为 16,                               如果光照变化明显,如阳光下的水面,建议设为 25,                               值越大灵敏度越低  [默认: (16 或者通过环境变量                               VAR_THRESHOLD 设置)]  -d, --detect_shadows         是否检测影子,设为 True 为检测,False 为不检测,                               检测影子会增加程序时间复杂度 [默认: (False 或者通过环境变量                               DETECT_SHADOWS 设置)]  -n, --min_percent FLOAT      通过前景和背景差值的最小百分比来检测运动是否停止                               [默认: (0.1 或者通过环境变量 MIN_PERCENT 设置)]  -x, --max_percent INTEGER    通过前景和背景差值的最大百分比来检测是否仍在运动中                               [默认: (3 或者通过环境变量 MAX_PERCENT 设置)]  --version                     打印版本信息  --help                       打印此帮助并退出
参考,
从视频中提取 PPT,并转为 PDF
源代码[1]
参考资料
[1]
源代码: https://github.com/alitrack/video2pdfslides
需要下载开箱即用版本的,请关注公众号,并回复video2pdf 获得下载链接。
到顶部