Created
May 13, 2019 15:07
-
-
Save OlafenwaMoses/7534e5100bebb20c56b66103c02830af to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const request = require("request") | |
const fs = require("fs") | |
image_stream = fs.createReadStream("family.jpg") | |
var form = {"image":image_stream} | |
request.post({url:"http://localhost:80/v1/vision/face", formData:form},function(err,res,body){ | |
response = JSON.parse(body) | |
predictions = response["predictions"] | |
console.log(response) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment