#!/bin/bash

# Set this to your video device
VIDDEV=$'/dev/video0'

# Set this to your favorite PNG viewer
VIEWER=$'/usr/bin/ee'

###############################################################################

# Get image from camera
dd if=$VIDDEV of=out.raw bs=921600 count=1 || exit

# Decode image
./d518 > out.png || exit

# View it
$VIEWER out.png
