Skip to content

Instantly share code, notes, and snippets.

@gyurisc
gyurisc / detect_barcode.py
Created November 20, 2015 10:47
Detecting Barcodes in Images with Python and OpenCV
# Detecting Barcodes in Images with Python and OpenCV
# OpenCV 3.0
# http://www.pyimagesearch.com/2014/11/24/detecting-barcodes-images-python-opencv/
import numpy as np
import argparse
import cv2
ap = argparse.ArgumentParser()
ap.add_argument("-i","--image", required = True, help="path to image file")