Skip to content

Instantly share code, notes, and snippets.

@ultramango
Created September 3, 2017 21:10
Show Gist options
  • Save ultramango/86f9d40f249ce15e41217ec65d293939 to your computer and use it in GitHub Desktop.
Save ultramango/86f9d40f249ce15e41217ec65d293939 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Instantiate files from stdin, process and output to stdout
# Log from panorama processor will be written to panolog.log
filepre=`mktemp`
filein="${filepre}.jpg"
fileout=`basename ${filepre}_pano.jpg`
# Get image to temporary file
cat - > ${filein}
# Wrapper around panorama stitching
./gear360pano.cmd -m -a -o . ${filein} gear360video4k.pto > panolog.log 2>&1
rm ${filein}
# And output the file
cat ${fileout}
rm ${fileout}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment