Overview
- capture.py: taking a screenshot
- pdf.py: insert the image in the directory to "myfile.pdf" one by one
- pdf_loop.py: iteration of the same procedure above to all directories(pdf.py)
- img2pdf.py: convert the image to pdf
I’ll show you the demo usage of this one!
First get all required libraries by pip or easy-install!
and then go to the directory which you want to store the image of screenshots.
Since i have coded for private purpose, please when it comes to actually use, modify the pass or URL to take a screenshot.
I am using
- Selenium: to control the web browser automatically
- pyautogui: to take a screenshot
- opencv: to handle the image data
- img2pdf: to convert the image to pdf format
- os: to cope with file system efficiently
Depending on your modificaition, the output is displayed as the result like the image below.
中村晃一さん、スライドが少々写ってしまいまして申し訳ございません。 機械学習のスライドと講義を拝聴しまして、大変勉強になりました! 有難うございます。