Skip to content

Instantly share code, notes, and snippets.

View thisisjoyjacob's full-sized avatar
🎯
Focusing

Joy Jacob thisisjoyjacob

🎯
Focusing
View GitHub Profile
@thisisjoyjacob
thisisjoyjacob / chroot-to-pi.sh
Created December 27, 2024 09:41 — forked from Robokishan/chroot-to-pi.sh
Chroot to pi sd card
#!/bin/bash
# This script allows you to chroot ("work on")
# the raspbian sd card as if it's the raspberry pi
# on your Ubuntu desktop/laptop
# just much faster and more convenient
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689
# make sure you have issued
from matplotlib import pyplot as plt
import cv2
img = cv2.imread('/Users/mustafa/test.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
plt.imshow(gray)
plt.title('my picture')
plt.show()