Cannot access FOV API Endpoints

I am playing with the latest JPS on a Jetson AGX Orin.

After deploy docker compose -f compose_agx.yaml up -d --force-recreate I can see

sdr-emdx
deepstream
sdr
sdr-reprovision-controller
emdx-analytics-02
emdx-analytics-01
emdx-webapi
vst
ingress
redis
nvstreamer

and

deepstream                                        | **PERF:  
deepstream                                        | sample_cam[9a9d9ae9-54a8-4ead-b418-191315932fa4] 28.62 (29.79)
emdx-analytics-01                                 | 2024-08-26 03:26:35,109 INFO [7 datasink_0] (messageRouter.py:98) - stream=test,mesages/sec=6.4,messages=36,duration=5653.2,reading=5488.2,processing(sum=165.0, mean=1.7,max=19.7,min=0.6),lag(mean=6.2,max=22.3,min=1.6,p95=22.3)
emdx-analytics-02                                 | 2024-08-26 03:26:35,530 INFO [7 datasink_0] (messageRouter.py:98) - stream=test,mesages/sec=7.9,messages=41,duration=5218.0,reading=5173.5,processing(sum=44.5, mean=0.4,max=1.3,min=0.2),lag(mean=2.2,max=5.2,min=1.2,p95=3.3)
deepstream                                        | Active sources : 1
deepstream                                        | Mon Aug 26 03:26:35 2024
deepstream                                        | **PERF:  
deepstream                                        | sample_cam[9a9d9ae9-54a8-4ead-b418-191315932fa4] 28.63 (29.79)
emdx-analytics-01                                 | 2024-08-26 03:26:39,651 INFO [7 datasink_0] (messageRouter.py:98) - stream=test,mesages/sec=11.9,messages=54,duration=4541.0,reading=4365.3,processing(sum=175.7, mean=1.8,max=18.7,min=0.6),lag(mean=5.2,max=20.8,min=1.7,p95=20.0)
emdx-analytics-02                                 | 2024-08-26 03:26:40,006 INFO [7 datasink_0] (messageRouter.py:98) - stream=test,mesages/sec=11.8,messages=53,duration=4475.7,reading=4432.1,processing(sum=43.6, mean=0.4,max=1.0,min=0.2),lag(mean=2.1,max=3.2,min=1.0,p95=3.1)
emdx-webapi                                       | 2024-08-26 03:26:40,490 INFO [7 datasink_2] (messageRouter.py:86) - stream=test,mesages/sec=10.0,messages=96,duration=9642.3,reading=9578.6,processing(sum=63.7, mean=0.7,max=1.5,min=0.4),lag(mean=2.6,max=5.3,min=1.2)
emdx-webapi                                       | 2024-08-26 03:26:40,490 INFO [7 datasink_2] (messageRouter.py:86) - stream=emdx_trajectory,mesages/sec=0.4,messages=4,duration=9642.3,reading=9632.9,processing(sum=9.4, mean=2.3,max=3.7,min=1.2),lag(mean=4.0,max=5.1,min=3.2)
deepstream                                        | Active sources : 1
deepstream                                        | Mon Aug 26 03:26:40 2024
deepstream                                        | **PERF:  
deepstream                                        | sample_cam[9a9d9ae9-54a8-4ead-b418-191315932fa4] 28.65 (29.79)
emdx-analytics-01                                 | 2024-08-26 03:26:42,378 INFO [7 datasink_0] (messageRouter.py:98) - stream=test,mesages/sec=29.0,messages=79,duration=2727.0,reading=2523.1,processing(sum=203.9, mean=2.0,max=19.9,min=0.6),lag(mean=4.6,max=22.2,min=2.0,p95=16.3)
emdx-analytics-02                                 | 2024-08-26 03:26:42,733 INFO [7 datasink_0] (messageRouter.py:98) - stream=test,mesages/sec=28.6,messages=78,duration=2725.8,reading=2672.5,processing(sum=53.3, mean=0.5,max=5.1,min=0.3),lag(mean=2.4,max=6.4,min=1.3,p95=3.4)
emdx-webapi                                       | 2024-08-26 03:26:43,986 INFO [7 datasink_2] (messageRouter.py:86) - stream=test,mesages/sec=28.6,messages=100,duration=3495.7,reading=3431.0,processing(sum=64.7, mean=0.6,max=1.5,min=0.4),lag(mean=2.5,max=5.6,min=1.6)
emdx-analytics-01                                 | 2024-08-26 03:26:45,113 INFO [7 datasink_0] (messageRouter.py:98) - stream=test,mesages/sec=28.9,messages=79,duration=2734.1,reading=2527.7,processing(sum=206.4, mean=2.1,max=15.2,min=0.6),lag(mean=4.6,max=17.4,min=2.3,p95=15.9)
emdx-analytics-02                                 | 2024-08-26 03:26:45,478 INFO [7 datasink_0] (messageRouter.py:98) - stream=test,mesages/sec=28.4,messages=78,duration=2744.3,reading=2696.7,processing(sum=47.5, mean=0.5,max=1.5,min=0.2),lag(mean=2.3,max=4.5,min=1.5,p95=3.4)
deepstream                                        | Active sources : 1
deepstream                                        | Mon Aug 26 03:26:45 2024

But I cannot access http://<INGRESS-HOST-IP>:<INGRESS-PORT>/emdx/ (it shows 404 Not Found)
In addition, could you tell me where I can find docs about emdx-analytics-01 and emdx-analytics-02?

Here is the guide for Analytics services: Analytics AI Service — Metropolis on Jetson documentation 0.1.0 documentation (nvidia.com)
You can interact with Analytics with “curl” command line based on REST API: Swagger UI (nvidia.com)

I think the API endpoint does not exist. There is an issue when starting emdx-analytics-01 service

emdx-webapi                                       | 2024-08-26 07:01:16,074 ERROR [7 AnyIO worker thread] (fastapi_config.py:90) - Status: 422, Detail: Configs not present.                                                                                                                
emdx-analytics-01                                 | 2024-08-26 07:01:16,078 ERROR [7 AnalyticsProcessorWorker] (tripwire.py:211) - The server couldn't fulfill the request http://localhost:5000/api/config/tripwire?sensorId=sample_cam                                                    
emdx-analytics-01                                 | 2024-08-26 07:01:16,078 ERROR [7 AnalyticsProcessorWorker] (tripwire.py:212) - Error code:422                                                                                                                                           
emdx-webapi                                       | 2024-08-26 07:01:16,082 ERROR [7 AnyIO worker thread] (fastapi_config.py:187) - Status: 422, Detail: Configs not present.                                                                                                               
emdx-analytics-01                                 | 2024-08-26 07:01:16,084 ERROR [7 AnalyticsProcessorWorker] (roi.py:184) - The server couldn't fulfill the request http://localhost:5000/api/config/roi?sensorId=sample_cam                                                              
emdx-analytics-01                                 | 2024-08-26 07:01:16,085 ERROR [7 AnalyticsProcessorWorker] (roi.py:185) - Error code:422    

Do you know any hint how to resolve this issue?

I can set TW with below command line. Can you have a try? Please replace device IP and sensorId with yours.

curl -X 'POST'   'http://10.19.225.106:30080/emdx/api/config/tripwire'   -H 'accept: application/json'   -H 'user-type: Admin'   -H 'Content-Type: application/json'   -d '{
  "deleteIfPresent": true,
  "tripwires": [
    {
        "direction": {
          "entry": {
            "name": "Inside the room"
          },
          "exit": {
            "name": "Outside of the room"
          },
          "p1": {
            "x": 753,
            "y": 744
          },
          "p2": {
            "x": 448,
            "y": 856
          }
        },
        "id": "door1",
        "name": "Main door",
        "wire": [
          {
            "x": 321,
            "y": 664
          },
          {
            "x": 544,
            "y": 648
          },
          {
            "x": 656,
            "y": 953
          },
          {
            "x": 323,
            "y": 1067
          }
        ]
      }
  ],
  "sensorId": "mycam"
}'

I have tried, but here is the response

<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>openresty/1.21.4.2</center>
</body>
</html>

Here is my vst_config.json (cp /opt/nvidia/jetson/services/vst/config/vst_config.json ./)
vst_config.json.txt (7.0 KB)

The command line works fine in my side:

$ curl -X 'POST'   'http://10.19.225.106:30080/emdx/api/config/tripwire'   -H 'accept: application/json'   -H 'user-type: Admin'   -H 'Content-Type: application/json'   -d '{
  "deleteIfPresent": true,
  "tripwires": [
    {
        "direction": {
          "entry": {
            "name": "Inside the room"
          },
          "exit": {
            "name": "Outside of the room"
          },
          "p1": {
            "x": 753,
            "y": 744
          },
          "p2": {
            "x": 448,
            "y": 856
          }
        },
        "id": "door1",
        "name": "Main door",
        "wire": [
          {
            "x": 321,
            "y": 664
          },
          {
            "x": 544,
            "y": 648
          },
          {
            "x": 656,
            "y": 953
          },
          {
            "x": 323,
            "y": 1067
          }
        ]
      }
  ],
  "sensorId": "mycam"
}'
{"success":true,"message":"Tripwires successfully created"}

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.