This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# memory footprint support libraries/code | |
!ln -sf /opt/bin/nvidia-smi /usr/bin/nvidia-smi | |
!pip install gputil | |
!pip install psutil | |
!pip install humanize | |
import psutil | |
import humanize | |
import os | |
import GPUtil as GPU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script does a perspective transformation with an A4 paper | |
# Get an A4 sheet, put it on a table in front of your webcam | |
# just close enough so that all its corners are visible. | |
# Run this script, you will be given a frame from the webcam. | |
# Pick the corners of the A4 sheet for the software, by double clicking on its corners | |
# one by one in the following order: top left, top right, bottom left, bottom right. | |
# Just as you select the last corner, a live feed without the perspective distortion | |
# shows up and now you can write something on it, and have a view of it as if | |
# the camera was right on top of it. Cheers! | |
# visit: |