reolinkapipy icon indicating copy to clipboard operation
reolinkapipy copied to clipboard

Possibility of reading an alert detection for A series.

Open migvel opened this issue 4 years ago • 5 comments

Hello,

is it possible to read an alert from a RLC-520A that has been triggered by a person/car detection? I mean, to configure the camera with the manufacturer app or webapp but be polling for detections of the AI camera's feature.

Thanks.

migvel avatar Apr 16 '21 08:04 migvel

Hi @migvel,

Well I'm not sure, is there a setting on the RLC-520A for polling an external API after a detection event has fired? How are you using it currently? Using the Reolink App?

Benehiko avatar Apr 16 '21 20:04 Benehiko

Thanks.

here I might be assuming something wrongly, but I thought that the api call Alarm -> Motion would access as well the records of the detection of cars/persons, like they would be classified in the same way.

I'm getting information for acquiring one of the devices RLC-520A since I would like to automate with some external devices.

Regards.

migvel avatar Apr 17 '21 10:04 migvel

Oh i see, I'm not sure since I haven't used the RLC-520A yet. So I can't really say if it has some sort of callback system for car/person detection.

Benehiko avatar Apr 17 '21 11:04 Benehiko

Hi I have looked into this after picking up a new Reolink with the AI motion person/vehicle detection capability. I found the following commands available via the api.cgi

My question/issue is the recordings are flagged with the AI detection tag, (person/vehicle/motion) and I would like to figure out how to know which mp4 files are tagged.

This was the only source I found (https://community.jeedom.com/t/reolink-liste-de-commandes-via-api/25565) after I mistakenly typed in "GetAIState" and found this!!

GetAiCfg, SetAiCfg, GetAiState

[{ cmd: "GetAiState", code: 0, value: { channel: 0, people_state: 0, vehicle_state: 1 } }]

chalupien avatar Apr 22 '21 15:04 chalupien

hi, in the newer firmware of the AI cameras, the returned json from the GetAiState command had changed (taken from a RLC-810a, firmware : v3.0.0.412), here the newer one (face detection is added but hidden in the UI):

[
   {
      "cmd" : "GetAiState",
      "code" : 0,
      "value" : {
         "channel" : 0,
         "face" : {
            "alarm_state" : 0,
            "support" : 0
         },
         "people" : {
            "alarm_state" : 0,
            "support" : 1
         },
         "vehicle" : {
            "alarm_state" : 0,
            "support" : 1
         }
      }
   }
]

mnpg avatar Aug 05 '21 19:08 mnpg