Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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():
- origami.sendTextArray(['Hello', 'World!'])
- return 'OK'
- app.run()
Add Comment
Please, Sign In to add comment