Created
March 17, 2017 09:24
-
-
Save AvaisP/85b74c1a76c79bae0003c0a685b7eb95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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