Skip to content

Instantly share code, notes, and snippets.

View tendstofortytwo's full-sized avatar

Naman Sood tendstofortytwo

View GitHub Profile
@tendstofortytwo
tendstofortytwo / sendTextArrayToTerminal.py
Created December 14, 2017 08:44
Origami-lib sendTextArrayToTerminal 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()
@tendstofortytwo
tendstofortytwo / sendGraphArray.py
Created December 14, 2017 08:39
Origami-lib sendGraphArray 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()
@tendstofortytwo
tendstofortytwo / sendImageArray2.py
Created December 14, 2017 08:29
Origami-lib sendImageArray Numpy Array 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()
@tendstofortytwo
tendstofortytwo / sendImageArray1.py
Created December 14, 2017 08:22
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()
@tendstofortytwo
tendstofortytwo / sendTextArray.py
Created December 14, 2017 08:14
Origami-lib sendTextArray 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()
@tendstofortytwo
tendstofortytwo / getImageArray2.py
Last active December 14, 2017 08:14
Origami-lib getImageArray Numpy Array 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()
@tendstofortytwo
tendstofortytwo / getImageArray1.py
Last active December 14, 2017 08:02
Origami-lib getImageArray 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()
@tendstofortytwo
tendstofortytwo / getTextArray.py
Last active December 14, 2017 08:05
Origami-lib getTextArray example
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 concat():
@tendstofortytwo
tendstofortytwo / basic.py
Created December 14, 2017 04:47
Origami-lib demo basic structure
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 runner():