Skip to content

Instantly share code, notes, and snippets.

View starkblaze01's full-sized avatar
☯️
Focusing at work in the Pokémon world

Mayank Pathela starkblaze01

☯️
Focusing at work in the Pokémon world
View GitHub Profile

Turn On Anyone with the link can View

Google Drive Shareable Link: "https://drive.google.com/drive/folders/FILE_ID?usp=sharing" or "https://drive.google.com/open?id=FILE_ID" or "https://drive.google.com/uc?id=FILE_ID"

Replace FILE_ID and FILE_NAME in the command below:

Run this command on the terminal:

wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILE_ID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILE_ID" -O FILE_NAME && rm -rf /tmp/cookies.txt

import cv2 # opencv
import numpy as np
font_scale = 1.5
font = cv2.FONT_HERSHEY_PLAIN
# set the rectangle background to white
rectangle_bgr = (255, 255, 255)
# make a black image
img = np.zeros((500, 500))