Skip to content

Instantly share code, notes, and snippets.

View norahsakal's full-sized avatar

Norah norahsakal

View GitHub Profile
@nickferrando
nickferrando / imagemagick-ubuntu.txt
Last active April 30, 2025 20:35
Install ImageMagick with JPG, PNG and TIFF Delegates - Ubuntu (20.04)
#These are the steps required in order to Install ImageMagick with JPG, PNG and TIFF delegates.
sudo apt-get update
#Install Build-Essential in order to configure and make the final Install
sudo apt-get install build-essential
#libjpg62-dev required in order to work with basic JPG files
@aplz
aplz / draw_text_with_background_opencv.py
Last active February 3, 2025 23:46
draw text with background // opencv
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))