POST http://IP-адрес:порт/префикс/grpc

Тело запроса:

 {
  "method": "ITV.bl.events.EventHistoryService.ReadLprEvents",
  "data": {
    "range": {
      "begin_time": "20200916T104305.137",
      "end_time": "20200918T105305.137"
    },
    "filters": {
      "filters": [
        {
          "subjects": "hosts/DESKTOP-FQETIKR/DeviceIpint.1/SourceEndpoint.video:0:0"
        }
      ]
    },
    "limit":2,
    "offset":0,
    "search_predicate":"Н829МУ97"
  }
}

Пример ответа:


{
 "items": [
 {
  "event_type": "ET_DetectorEvent",
  "subject": "hosts/DESKTOP-FQETIKR/DeviceIpint.1/SourceEndpoint.video:0:0",
  "body": {
  "@type": "type.googleapis.com/ITV.bl.events.DetectorEvent",
  "guid": "825bd3c9-adef-4ec3-ae23-2e8b6a7d2e8e",
  "timestamp": "20200917T073828.069000",
  "state": "HAPPENED",
  "origin_deprecated": "hosts/DESKTOP-FQETIKR/DeviceIpint.1/SourceEndpoint.video:0:0",
  "origin_ext": {
   "access_point": "hosts/DESKTOP-FQETIKR/DeviceIpint.1/SourceEndpoint.video:0:0",
   "friendly_name": "Камера"
  },
  "offline_analytics_source": "",
  "detector_deprecated": "hosts/DESKTOP-FQETIKR/AVDetector.1/EventSupplier",
  "detector_ext": {
   "access_point": "hosts/DESKTOP-FQETIKR/AVDetector.1/EventSupplier",
   "friendly_name": "Распознавание номеров автомобилей (VT)"
  },
  "node_info": {
   "name": "DESKTOP-FQETIKR",
   "friendly_name": ""
  },
  "event_type": "plateRecognized",
  "multi_phase_id": "",
  "detectors_group": [
   "DG_LPR_DETECTOR"
  ],
  "details": [
   {
   "auto_recognition_result": {
    "direction": 1,
    "time_begin": "20200917T073827.309000",
    "time_end": "20200917T073828.349000",
    "hypotheses": [
    {
     "ocr_quality": 81,
     "plate_full": "Н829МУ97",
     "plate_rectangle": {
     "x": 0.36388888888888887,
     "y": 0.65625,
     "w": 0.19722222222222224,
     "h": 0.04340277777777779,
     "index": 0
     },
     "time_best": "20200917T073828.069000",
     "country": "ru"
    },
    {
     "ocr_quality": 39,
     "plate_full": "НН299У97",
     "plate_rectangle": {
     "x": 0.36388888888888887,
     "y": 0.65625,
     "w": 0.19722222222222224,
     "h": 0.04340277777777779,
     "index": 0
     },
     "time_best": "20200917T073828.069000",
     "country": "ru"
    },
    {
     "ocr_quality": 51,
     "plate_full": "Н829МУ*7*",
     "plate_rectangle": {
     "x": 0.36388888888888887,
     "y": 0.65625,
     "w": 0.19722222222222224,
     "h": 0.04340277777777779,
     "index": 0
     },
     "time_best": "20200917T073828.069000",
     "country": "ru"
    }
    ]
   }
   }
  ],
  "params": []
  },
  "subjects": [
  "hosts/DESKTOP-FQETIKR/DeviceIpint.1/SourceEndpoint.video:0:0",
  "hosts/DESKTOP-FQETIKR/AVDetector.1/EventSupplier"
  ],
  "localization": {
  "text": "Камера \"Камера\". Срабатывание детектора Распознавание номеров, номер \"Н829МУ97\""
  }
 },
 {
  "event_type": "ET_DetectorEvent",
  "subject": "hosts/DESKTOP-FQETIKR/DeviceIpint.1/SourceEndpoint.video:0:0",
  "body": {
  "@type": "type.googleapis.com/ITV.bl.events.DetectorEvent",
  "guid": "adc555c5-850a-44fb-9ee3-26978799f3ab",
  "timestamp": "20200917T073705.291000",
  "state": "HAPPENED",
  "origin_deprecated": "hosts/DESKTOP-FQETIKR/DeviceIpint.1/SourceEndpoint.video:0:0",
  "origin_ext": {
   "access_point": "hosts/DESKTOP-FQETIKR/DeviceIpint.1/SourceEndpoint.video:0:0",
   "friendly_name": "Камера"
  },
  "offline_analytics_source": "",
  "detector_deprecated": "hosts/DESKTOP-FQETIKR/AVDetector.1/EventSupplier",
  "detector_ext": {
   "access_point": "hosts/DESKTOP-FQETIKR/AVDetector.1/EventSupplier",
   "friendly_name": "Распознавание номеров автомобилей (VT)"
  },
  "node_info": {
   "name": "DESKTOP-FQETIKR",
   "friendly_name": ""
  },
  "event_type": "plateRecognized",
  "multi_phase_id": "",
  "detectors_group": [
   "DG_LPR_DETECTOR"
  ],
  "details": [
   {
   "auto_recognition_result": {
    "direction": 1,
    "time_begin": "20200917T073704.531000",
    "time_end": "20200917T073705.571000",
    "hypotheses": [
    {
     "ocr_quality": 81,
     "plate_full": "Н829МУ97",
     "plate_rectangle": {
     "x": 0.36388888888888887,
     "y": 0.65625,
     "w": 0.19722222222222224,
     "h": 0.04340277777777779,
     "index": 0
     },
     "time_best": "20200917T073705.291000",
     "country": "ru"
    },
    {
     "ocr_quality": 39,
     "plate_full": "НН299У97",
     "plate_rectangle": {
     "x": 0.36388888888888887,
     "y": 0.65625,
     "w": 0.19722222222222224,
     "h": 0.04340277777777779,
     "index": 0
     },
     "time_best": "20200917T073705.291000",
     "country": "ru"
    },
    {
     "ocr_quality": 51,
     "plate_full": "Н829МУ*7*",
     "plate_rectangle": {
     "x": 0.36388888888888887,
     "y": 0.65625,
     "w": 0.19722222222222224,
     "h": 0.04340277777777779,
     "index": 0
     },
     "time_best": "20200917T073705.291000",
     "country": "ru"
    }
    ]
   }
   }
  ],
  "params": []
  },
  "subjects": [
  "hosts/DESKTOP-FQETIKR/DeviceIpint.1/SourceEndpoint.video:0:0",
  "hosts/DESKTOP-FQETIKR/AVDetector.1/EventSupplier"
  ],
  "localization": {
  "text": "Камера \"Камера\". Срабатывание детектора Распознавание номеров, номер \"Н829МУ97\""
  }
 }
 ],
 "unreachable_subjects": []
}

--ngpboundary
Content-Type: application/json; charset=utf-8
Content-Length: 46

{
 "items": [],
 "unreachable_subjects": []
}