File size: 667 Bytes
e0cedf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import argparse
from utils import convert_slides_to_pdf

if __name__ == "__main__":
    parser = argparse.ArgumentParser(
        description="This script is used to convert video frames into slide PDFs."
    )
    parser.add_argument(
        "-f", "--folder", help="Path to the image folder", type=str
    )
    parser.add_argument(
        "-o",
        "--out_path",
        help="Path to the output PDF file. If None, the image directory will be used to store the output file.",
        type=str,
    )
    args = parser.parse_args()

    img_dir = args.folder
    output_path = args.out_path

    convert_slides_to_pdf(img_dir, output_path)