けの〜のブログ

ガッキーでディープラーニングして教育界に革命を起こす

2017-12-24から1日間の記事一覧

動画から画像を切り出す

extractframes.py import cv2 import os def extract_frames(input_file, output_directory): ''' extract frames from a video and save them in jpg input_file: file path of a video ここに動画データを格納する 形式はmp4 output_directory: file path …