File size: 754 Bytes
99c376f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os
import platform
import launch

if not launch.is_installed("cv2"):
    print('Installing requirements for Mov2mov')
    launch.run_pip("install opencv-python", "requirements for opencv")

if platform.system() == 'Windows':
    if not launch.is_installed('imageio'):
        print('Installing requirements for Mov2mov')
        launch.run_pip("install imageio", "requirements for imageio")
    if not launch.is_installed('imageio-ffmpeg'):
        print('Installing requirements for Mov2mov')
        launch.run_pip("install imageio-ffmpeg", "requirements for imageio-ffmpeg")
else:
    if not launch.is_installed('ffmpeg'):
        print('Installing requirements for Mov2mov')
        launch.run_pip("install ffmpeg", "requirements for ffmpeg")