Skip to content

Instantly share code, notes, and snippets.

Dmytro dmitriy-t

Block or report user

Report or block dmitriy-t

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dmitriy-t
dmitriy-t / simple_barcode_detection.py
Last active Nov 10, 2015
This is the version of "simple_barcode_detection.py" from Adrian Rosebrock, updated for use with OpenCV 3.0 (note lines 14, 15, 34, 44)
View simple_barcode_detection.py
# Original files and article is here:
# http://www.pyimagesearch.com/2014/12/15/real-time-barcode-detection-video-python-opencv
# import the necessary packages
import numpy as np
import cv2
def detect(image):
# convert the image to grayscale
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
You can’t perform that action at this time.