How to implement take away events in C#
This article shows you how to detect when an object has been removed from a user-defined area of interest. With creating a ROI on an Onvif IP Camera video stream you will able to monitor an object and detect when this object removed from this area. It can quickly identify when a particular static item was removed from the scene.
Steps of implementing take away events
If you want to handle take away events, first of all you need to know more about background subtraction what is an image processing technique, with blob recognition and detection to be able to select the desired object. (How to implement object tracking).
After these steps we will be able to detect an object on the video image. You should set a user-defined area of interest which contains the selected object to observe. Finally we need to check if this object is still in the specified region. When the object steps out the ROI you will be able to indicate it with a take away event and handle the alarm.
Why is it useful?
This behavior is ideal for those who want to detect the removal of high value objects, such as a painting from a wall, a statue from a pedestal, a safe from a bank. It can also be used when reviewing recorded footage, for example of a warehouse or a store room. It is recommened to ignore moving foreground objects.
Related Pages
FAQ
Below you can find the answers for the most frequently asked questions related to this topic:
-
How can I get the URL of the camera?
You can get the URL from the producer of the camera. (In the 10th tutorial you can find information on how to create an own IP camera discoverer program.)
More information
- Motion detection example source code in c#
- How to implement Blob (binary large object) tracking
- How to implement tripwire in C#
- How to implement loitering in C#
- How to implement take away events in C#
- How to implement leave-behind events in C#
- How to implement number plate recognition in C#
- How to recognise a person or vehicle with a camera