Skip to content

Instantly share code, notes, and snippets.

View PeterEmbedded's full-sized avatar

PE PeterEmbedded

View GitHub Profile
import cv2
import urllib
import urllib.request
import numpy as np
req = urllib.request.urlopen('http://192.168.1.207/webcapture.jpg?command=snap&chanel=1')
arr = np.asarray(bytearray(req.read()), dtype=np.uint8)
img = cv2.imdecode(arr, -1) # 'Load it as it is'
cv2.imshow('lalala', img)
@PeterEmbedded
PeterEmbedded / Opencv install.txt
Last active February 19, 2022 19:46
Install opencv
OR only: pip install opencv-python
- Step 1: Expanding File System
- Expanding the Filesystem is necessary so that the OpenCV library compiles properly. To expand your file system, go to the terminal and type the following command.
sudo raspi-config
- Step 2: Updating System
- Updating is necessary before proceeding with the further installation.
sudo apt-get update && sudo apt-get upgrade
@PeterEmbedded
PeterEmbedded / RPiKeyboardFix.txt
Last active June 19, 2018 19:21
RPi Keyboard fix
sudo apt-get install console-common
//sudo dpkg-reconfigure console-data
From the full list, select pc / qwerty / US american / Standard / Standard