Run python requests if person is detect

I am running sample code source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt I would like to modified that if person is detect send a python http requests (requests.get(“http://192.168.0.2:8080/json.htm?switch=On”))

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
JETSON XAVIER NX
• DeepStream Version
5.01
• JetPack Version (valid for Jetson only)
4.4
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I’m interested too!
Would like to send http request to Node Red.

I figure it out…I am using deepstream_test_3. py example

import requests

    if obj_counter[PGIE_CLASS_ID_PERSON]>0:
       requests.get(“http://192.168.0.2:8080/json.htm?switch=On”)