parent
dac95d08f4
commit
bc2c52165a
@ -0,0 +1,20 @@
|
||||
import time
|
||||
import requests
|
||||
|
||||
url = 'http://arena0.andrew.cmu.edu:10000/depth_to_xyz'
|
||||
|
||||
payload = open('0_depth.png', 'rb')
|
||||
|
||||
img = None
|
||||
|
||||
response = requests.post(url, data=payload)
|
||||
img = response.content
|
||||
time.sleep(1)
|
||||
print("single request works!")
|
||||
|
||||
for i in range(100):
|
||||
payload = open('0_depth.png', 'rb')
|
||||
response = requests.post(url, data=payload)
|
||||
img = response.content
|
||||
time.sleep(1)
|
||||
print(f"multi request #{i} works!")
|
Loading…
Reference in new issue