Synology Surveillance API Samples

This repository demonstrate how to use python to call Web APIs in Synology Surveillance Station and integrate with your own request!

Why Synology-Surveillance-API-Samples?

Using the Synology-Surveillance-API-Samples is convenient for you to integrate with Synology Surveillance. You can refer to the example to see how does it work.

When to use Synology-Surveillance-API-Samples

  • If you want to integrate your system with Synology Surveillance
  • If you want to integrate your analytics with live stream or recordings in Synology Surveillance

Features

  • Live - stream analyze
    • We'll demonstrate how to get the camera's live stream and analyze it with your own model. We develop a fall detection model as an example.
  • Recording analyze and add bookmark
    • We'll demonstrate how to analyze existing recordings with your own model and add book mark to important timing. We develop a clothe model as an example.
  • Camera player
    • We'll demonstrate how to play a camera stream in a browser using WebSocket and Media Source Extensions (MSE).
    • This example is compatible with SurveillanceStation version 9.1.2 and above.

Prepare your environment

Dependencies (Web API parts)

  • requests
  • opencv-python
pip install -r requirements.txt

External deep learning projects

NOTE: You need follow the installation guide of these projects to install properly.