Sign Up

Synology Integration

Before You Start

Before you start, make sure that you have installed Surveillance Station 9.1.4 or above.

Share Camera from Surveillance Station

Step 1.1. In Surveillance Station, go to the IP camera app. Right-click on the targeted camera and select Share stream path.

Synology ALPR Integration | In Surveillance Station

Step 1.2. Copy the RTSP stream path.

Synology ALPR Integration | RTSP Stream Path

Step 1.3. Set up Plate Recognizer Stream (Refer to this guide).

Step 1.4. Edit the config.ini with the camera RTSP stream generated from the Surveillance Station (Refer to this guide).

[[camera-1]]
active = yes
url =
 rtsp:// syno:[email protected]:554/Sms=1.unicast

Step 1.5. Set up the webhook for Plate Recognizer. We recommend setting caching to “no”, and setting the request_timeout to “60“ seconds.

[webhooks]
caching = no

[[my-webhook-1]]
url = {middleware url}
image = yes
video = no
image_type = vehicle
request_timeout = 60

ALPR Results from Plate Rec to Surveillance Station

Step 2.1.  In Surveillance Station, go to the Action Rule app in Surveillance Station and create an action rule. Refer to this article for detailed instructions.

Step 2.2. Configure the settings on the Information page. Set the Rule type to Triggered.

Step 2.3. Modify the options in the Event page.

    • Event source: Select Webhook / External device.
    • Token: Use the auto-generated token or customize your own.
    • Method: Select GET.
    • Trigger type: Select One time.
Synology Integration | ALPR Results from Plate Rec to Surveillance Station | Plate Recognizer

Step 2.4. Copy the webhook URL. You will need this URL later in the middleware configuration:

http://{YOUR_NAS_IP:PORT}/webapi/SurveillanceStation/Webhook/Incoming/v1?token={USER_DEFINE_TOKEN}

Note that this URL only works after you click Apply in the last step of adding the action rule.

Synology Integration | ALPR Results from Plate Rec to Surveillance Station | Plate Recognizer

Step 2.5. Modify the options on the Action page.

    • Action device: Select Camera.
    • Action: Select Add bookmark.
    • Name: %ACTION_RULE_NAME%.
    • Description: plate: %WEBHOOK_TEXT_1%.

For example, when Plate Recognizer recognizes a plate “ABC1234”, it will send a webhook as below:

http://{YOUR_NAS_IP:PORT}/webapi/SurveillanceStation/Webhook/Incoming/v1?token={USER_DEFINE_TOKEN}&text1=”ABC1234”

When Surveillance Station receives it, the system creates a bookmark with “plate: ABC1234” as description on the specified camera.

  • Select Display bookmark information on Monitor Center.
Synology Integration | Modify the options on the Action page. | Plate Recognizer

Step 2.6. On the Schedule page, set up the timetable.

Set up the Middleware

When Plate Recognizer detects a license plate, it sends the information to the middleware. The middleware then processes the information and forwards it to Surveillance Station. Plate Recognizer’s webhook should be configured to send data to the middleware’s IP address, and the middleware should be configured to include the webhook URL of Surveillance Station in its operation.

Step 3.1.  Download three files from GitHub and place them in the same folder.

Step 3.2.  Run the following command in that folder to create a Docker image: docker build -t=”platerecognizer/stream-svs-notifier” .

Step 3.3. Run the following command to execute the Docker image on port 1234:

docker run –rm -t
-p 1234:8002
-e REST_SERVICE_URL=[SVS_webhook_URL]
platerecognizer/stream-svs-notifier

  • If port 1234 is already in use, specify an alternative port and replace 1234 with the specified port number in the command above.
  • Replace SVS_webhook_URL with the webhook URL obtained from the Action Rule of Surveillance Station. For example:

 http://10.17.12.125:5000/webapi/SurveillanceStation/Webhook/Incoming/v1?token=aaa

Set Up Plate Recognizer

Step 4.1.  Go back to Plate Recognizer and modify the config.ini by setting the stream-svs-notifier IP to the IP address of the device running the middleware. webhook_targets =  http:// [stream-svs-notifier IP]:1234

Need Help with LPR?

Let us know and we’d be happy to assist.

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from Youtube
Vimeo
Consent to display content from Vimeo
Google Maps
Consent to display content from Google
Spotify
Consent to display content from Spotify
Sound Cloud
Consent to display content from Sound