%% Test QR encoding and decoding
%
% Please download and build the core and javase parts of zxing
% from here - http://code.google.com/p/zxing/
%

%javaaddpath('.\3rd_party\zxing-1.7\core\core.jar');
%javaaddpath('.\3rd_party\zxing-1.7\javase\javase.jar');

% encode a new QR code
test_encode = encode_qr('la la la', [1 1]);
figure;imagesc(test_encode);axis image;

% decode
message = decode_qr(imread('test_qr.jpg'));
