Skip to content

Instantly share code, notes, and snippets.

@AvaisP
Created March 17, 2017 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AvaisP/85b74c1a76c79bae0003c0a685b7eb95 to your computer and use it in GitHub Desktop.
Save AvaisP/85b74c1a76c79bae0003c0a685b7eb95 to your computer and use it in GitHub Desktop.
import cv2
import cvfy
app = cvfy.register('nongh:0.0.0.0:5688832:5001:8000:0.0.0.0:5001')
@cvfy.crossdomain
@app.listen()
def grayscale():
all_image_arrays = cvfy.getImageArray(mode='numpy_array') #Returns a Numpy array
image_1 = all_image_arrays[0]
#Image 1 is a Numpy Array. You can check it by uncommenting the next line.
#print type(image_1)
return 'OK'
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment