Skip to content

Commit eb8a899

Browse files
committed
Update
1 parent 6ea3c0f commit eb8a899

File tree

2 files changed

+6
-72
lines changed

2 files changed

+6
-72
lines changed

index.rst

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,12 @@ DeepStack is developed and maintained by `DeepQuest AI <https://deepquestai.com
2626

2727
Below, using DeepStack we attempt to classify the scene of the above image ::
2828
29-
const request = require("request")
30-
const fs = require("fs")
31-
32-
image_stream = fs.createReadStream("image.jpg")
33-
34-
var form = {"image":image_stream}
35-
36-
request.post({url:"http://localhost:80/v1/vision/scene", formData:form},function(err,res,body){
37-
38-
response = JSON.parse(body)
39-
console.log(response)
40-
41-
})
29+
import requests
30+
31+
image_data = open("test-image5.jpg","rb").read()
32+
33+
response = requests.post("http://localhost:80/v1/vision/scene",files={"image":image_data}).json()
34+
print(response)
4235

4336
**Result** ::
4437

trafficrecognition.rst

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)