Skip to content

Instantly share code, notes, and snippets.

@tendstofortytwo
Created December 14, 2017 08:22
Show Gist options
  • Save tendstofortytwo/e7b9af826c8055e6949ea9092e3be343 to your computer and use it in GitHub Desktop.
Save tendstofortytwo/e7b9af826c8055e6949ea9092e3be343 to your computer and use it in GitHub Desktop.
Origami-lib sendImageArray file path example
import cv2
import origami
# all memory/processor intensive work that is to be done only once (like loading models) goes here
# replace $TOKEN with your app token generated by web app
app = origami.register('$TOKEN')
@origami.crossdomain
@app.listen()
def hello():
# make sure the files exist or change the file paths before running this demo code
origami.sendImageArray(['/var/www/xyz.png','/var/www/abc.png'], mode='file_path')
return 'OK'
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment