-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflow.py
More file actions
executable file
·33 lines (23 loc) · 731 Bytes
/
Copy pathflow.py
File metadata and controls
executable file
·33 lines (23 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import sys
"""if len(sys.argv) < 2:
print("Usage: $ python {0} [video_path] [output_path(optional)]", sys.argv[0])
exit()"""
from people_flow import YOLO
from people_flow import detect_video
if __name__ == '__main__':
"""video_path = sys.argv[1]
if len(sys.argv) > 2:
output_path = sys.argv[2]
detect_video(YOLO(), video_path, output_path)
else:"""
import requests
url = "http://sur.itmars.net/api/v1/device/connect"
payload={'serial': '100000001c273adb'}
files=[
]
headers = {
'Accept': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
detect_video(YOLO(), 0)