- Quick start
- Download
- Online manual
- Introduction
- Start Onvif programming
- C# Onvif.IP.Camera.Viewer
- C# Onvif IP Camera Viewer Git repository
- IP video camera viewer
- PTZ IP camera motion control
- Onvif network video recorder
- Motion detection and alarms
- Subscribe for camera events
- Camera side motion detection
- Viewer side motion detection
- Motion detection sensitivity
- Mask the video image
- Send snapshot in e-mail
- Upload image to FTP server
- Send video alarm in e-mail
- Upload video to FTP server
- Make VoIP phone call alarm
- Send Contact ID alarms
- Detect if camera goes offline
- IP camera to SIP video call
- Configure Onvif IP cam remotely
- Onvif IP camera video server
- Video stream on website
- Onvif Network Video Analytics
- Onvif IP Camera Manager
- Computer Vision Technology
- Motion recognition and analysis
- Object detection
- Object categorization
- Image Manipulation
- Ozeki SDK for Linux
- Community
- Contact
- Product
- Search
- Commercial information
Get started
- Download the SDK
- Copy the C# code example into Visual Studio
- Build your IP Camera project
Did you know?
Did you know, that this SDK was used to build Ozeki Camera Recorder?
If you don't want to write code, it could be just what you need. Download it now from the follolwing page: Download Ozeki Camera Recorder.
► Tutorial 4
How to build motion detection and alarm system in C#
Subscribe to IP camera events in C#
After reading through this lecture, you will be able to subscribe for IP camera events if you want to be notified about certain detections. Start now
Motion detection on the IP camera side in C#
It is worth to separate the IP camera and the view sides. This lecture shows how to use the camera side motion detection. Start now
Setup the viewer side in C#
In this lecture, you can learn more about how to setup the viewer side motion detection. Start now
Motion detection sensitivity in C#
In this lecture you can learn about how to adjust the accuracy of the monitoring of pixel changes during the motion detection. Start now
Upload snapshot to FTP in C#
Get more information about how to handle alarms by taking a snapshot picture and uploading it to an FTP server. Start now
Send video clip in e-mail in C#
From this lecture you can learn how to manage alarms
by recording a video clip and sending it as an
e-mail.
Start now
Upload video to FTP server in C#
This lecture will introduce how to record a video clip and upload that to an FTP server to be able to handle alarms effectively. Start now
Make a VoIP phone call alarm in C#
Learn about how to handle alarms by making a VoIP phone call to an alarm monitoring center with text-to-speech. Start now

In this tutorial you can learn about writing codes in C#, which handle an IP camera using OZEKI Camera SDK.
The motion detection is an essential part of a security system. If nobody is in front of the screen, and you still want to know if something unexpected happens then this is the best tutorial for you. We will show you a number of ways to create and program motion detectors using IP cameras.
OZEKI Camera SDK can help you to create these detectors easily. With just a few lines of code you can build motion detection functionality in your C# application and than it can send a snapshot/video about the detected event e.g. firecase, burglary, etc. in email or upload them to an FTP server. And that is not all, it can even send an alarm for you or a monitoring center (police, central station) via a VoIP phone call or in a Contact ID message. In case of VoIP phone call alarms, your system can send a text message that will be read out by the text-to-speech engine or it can send a prerecorded audio file (wav).
You can extend these functionalities with limiting the watching area by masking. This is especially good, when your IP camera doesn't support zooming. You can also set the sensitivity of the detection e.g. ignoring the falling leaves in your garden.
Furthermore, if a hooligan causes harm to the IP camera or it goes offline for any technical reason, your application can detect it and alarm you to have it fixed immediately.
You can find clear explanations (including code snippets and GUI screenshots) for every example related to the functionalities mentioned above. The full source code of each example project can be downloaded and the FAQ section gives answers for the most common questions.
Legal |
Privacy |
Terms of use |
6521 3.232.96.22 | 87.229.102.173 | Login |