Skip to content

Instantly share code, notes, and snippets.

@holocronweaver
Created April 29, 2015 21:29
Show Gist options
  • Save holocronweaver/66eb45f57df5c32fe00e to your computer and use it in GitHub Desktop.
Save holocronweaver/66eb45f57df5c32fe00e to your computer and use it in GitHub Desktop.
Use your webcam to open a QR code embedded URL with your default web browser.
#! /usr/bin/env python2
'''Use your webcam to open a QR code embedded URL with your default web browser.'''
from qrtools import QR
import webbrowser
myCode = QR()
myCode.decode_webcam(lambda data: webbrowser.open(data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment