40823224 cd2021

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • stage1
    • W1
    • W2
    • W3
    • W4
    • W5
  • stage2
    • W6
    • W7
    • W8
    • W9
  • stage3
    • W10
    • task 演練
      • task1
      • task2
      • task3
    • W14
    • W15
    • W16
      • Onshape零件
      • CoppeliaSim場景
      • suction pad 吸盤
      • 逆向運動學函式
      • remote API
    • W17
  • 筆記
    • leo編輯
    • 使用cms批次檔
    • CoppeliaSim操作筆記
    • Gitlab
    • Fossil
W4 << Previous Next >> stage2

W5

簡報報告(3/19)


stage1-bg 影片長度

使用get_video_duration.py 讀取2b的影片長度

# pip install moviepy
import os
from moviepy.editor import VideoFileClip

# Converts into more readable format
def convert(seconds):
    hours = seconds // 3600
    seconds %= 3600
    mins = seconds // 60
    seconds %= 60
    return hours, mins, seconds
    
for dname, dirs, files in os.walk("2021-03_2b_stage1"):
    for fname in files:
        vName = os.path.join(dname, fname)
        clip = VideoFileClip(vName)
        hours, mins, secs = convert(clip.duration)
        print(fname + "組:", str(int(mins)) + "分", str(int(secs)) + "秒")

stage1-bg1 07:14

stage1-bg2 01:55

stage1-bg3 01:58

stage1-bg4 02:51

stage1-bg5 03:00

stage1-bg6 03:07

stage1-bg7 02:47

stage1-bg8 03:20

stage1-bg9 02:43

stage1-bg10 02:20

stage1-bg11 01:38

stage1-bg12 01:47

stage1-bg13 02:09

stage1-bg14 05:58

stage1-bg15 03:24

stage1-bg16 03:33

stage1-bg17 04:33

stage1-bg18 05:03

stage1-bg19 03:11

stage1-bg20 03:32

stage1-bg21 05:02

stage1-bg22 04:47

stage1-bg23 02:55

stage1-bg24 05:00

stage1-bg25 04:53

stage1-bg26

stage1-bg27 03:43

stage1-bg28

stage1-bg29


W4 << Previous Next >> stage2

Copyright © All rights reserved | This template is made with by Colorlib