Skip to content

Instantly share code, notes, and snippets.

@Clindbergh
Clindbergh / iotcam.py
Last active January 21, 2021 11:31 — forked from loleg/iotcam.py
Detects barcodes from a webcam stream using Python, zbarlight and CV2
#####################################
# This version works on python 3 #
# Install pillow, zbarlight and cv2 #
#####################################
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import sys
import cv2