You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
427 B
20 lines
427 B
import time
|
|
import requests
|
|
|
|
url = 'http://URL:10000/depth_to_xyz'
|
|
|
|
img = None
|
|
|
|
payload = open('0_depth.png', 'rb')
|
|
response = requests.post(url, data=payload)
|
|
img = response.content
|
|
print("single request works!")
|
|
# time.sleep(1)
|
|
|
|
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!")
|