Giter VIP home page Giter VIP logo

qrstream's Introduction

A simple Android application to transfer large blocks of data via successive QR codes.

License: Public Domain

Existing work:
  tagdrop -- https://github.com/mofosyne/tagdrop
  "Watch it & Got it" -- https://code.google.com/p/watchitgotit/
  qrcodetransfer / "Jumping the Gap" -- https://github.com/VolumeLabs/qrcodetransfer
  file2qr-qr2file -- https://github.com/eandriol/file2qr-qr2file


== Using QRStream with the Linux terminal ==

Use zbarcam development sources to read from a webcam:

	$ zbarcam --raw | iconv -f UTF-8 -t ISO-8859-1 |
	while true; do
		dd bs=[blocksize+1] count=1 status=none | head -c -1
	done > outputfile

  where [blocksize+1] is one more than the block size QRStream is using, shown
  below the barcode.  The extra byte needs to be read because zbarcam places a
  linebreak after every code.  Ctrl-C to finish.

  zbarcam v0.10 will not handle binary data correctly -- it terminates each
  code when it hits a nul character.  This issue is resolved in the development
  sources.
  
  Some webcams will require LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so in the
  environment to work with zbarcam.

Use qrencode -8 to produce codes:

	$ split inputfile -b 367 'Code #' -a 4 --numeric-suffixes=1 --filter='
		clear
		echo $FILE
		qrencode -8 -m 2 -t utf8
		read </dev/tty'

  Increase the block size from 367 to enlarge the codes.  Optimal values are in
  android/app/src/main/java/com/github/xloem/qrstream/QRCodeMetric.java .
  Press enter to advance the code.  Ctrl-C to abort.

Use zint --binary with for example feh to show codes:

	$ split inputfile -b 367 'Code #' -a 4 --numeric-suffixes=1 --filter='
		zint --binary -b 58 --border=2 -o "$FILE".png -i -'
	$ feh -dZF --force-aliasing 'Code #'*.png
	$ rm 'Code #'*.png

  Increase the block size from 367 to enlarge the codes.  Space or mousebutton
  to advance.  Arrow keys to navigate.  'Q' to quit.

  Although zint supports aztec codes, there is some bug with binary data when
  using them.  The data becomes corrupt.

qrstream's People

Contributors

xloem avatar svetlemodry avatar mofosyne avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.