import requests service_url = 'http://192.168.0.15:8802' # service_url = 'http://192.168.0.16:8802' # service_url = 'http://192.168.1.233:8802' # --- test test api --- print(requests.post(url=f'{service_url}/api', json={'module': 'TEST', 'method': 'test002'}).text) # print(requests.post(url=f'{service_url}/api', json={'module': 'TEST', 'method': 'test015'}).text) # --- test test001 导入人脸数据 --- # response = requests.post(url=f'{service_url}/api', json={'module': 'TEST', 'method': 'test001'}) # print(response.text) # --- test test002 启动循环检查指定rtsp地址 --- # data = { # 'module': 'TEST', # 'method': 'test002', # # 'rtsp_addr': 'rtsp://admin:DEVdev123@192.168.30.233:554/cam/realmonitor?channel=1&subtype=0', # 大华 # 'rtsp_addr': 'rtsp://admin:DEVdev123@192.168.30.235:554/h264/ch1/sub/av_stream', # 海康 # } # response = requests.post(url=f'{service_url}/api', json=data) # print(response.text) # --- test test006 --- # data = { # 'module': 'TEST', # 'method': 'test006', # } # response = requests.post(url=f'{service_url}/api', json=data) # print(response.text) # --- test test003 --- # data = { # 'module': 'TEST', # 'method': 'test003', # 'line_id': '112233', # } # response = requests.post(url=f'{service_url}/api', json=data) # print(response.text)