SecuritySpy’s motion detection algorithm employs many techniques in order to accurately detect real motion events while minimising the rate of false-positive detections. But besides an effective algorithm, there are many choices about the setup and configuration of your video surveillance system that will help achieve reliable motion detection – these are outlined below.
1. Camera Angle
How you position and point the camera, as well as the focal length of the lens (how wide-angle it is) makes a big difference to the effectiveness of motion detection. The key points to consider are as follows:
- The activity you want to capture should be relatively large in the frame. Don’t use a camera with a very wide-angle lens, as this will make objects and people appear very small – too small to trigger motion detection or make out any important features such as faces.
- Point the camera downwards and don’t include any sky in the frame. At certain times of the day the sun may glare into the camera which would impair the its ability to render the scene with good enough definition, and may even damage its sensor.
- Include just the area you want to capture in the frame; don’t include any irrelevant areas as this simply wastes the resolution of your camera.
Here is an example of a bad camera angle for motion detection:
Bad Camera Angle For Motion Detection
This tutorial will show you how to add live video from SecuritySpy to your own web page. This does involve editing the HTML of your web page, but it’s relatively simple. Our favourite tool for this is TextMate.
Firstly, you must set up SecuritySpy for remote monitoring, so that it can be accessed over the internet. Next, create a special user account in SecuritySpy that only has permission to view the camera that you want to use. Finally, determine the camera number for the camera in question (this is shown in the Device map window in SecuritySpy, accessible via the Window menu).
Three methods for embedding the video feed into a web page are outlined below. In the HTML examples shown, the address of the SecuritySpy system is “demo.viewcam.me”, the port is 8000, and the camera number is 1. The authentication is “user” and “pass” for the username and password; you should substitute the actual username and password for the account you set up.
The SecuritySpy screensaver allows you to view live video from one or more SecuritySpy servers, as a full-screen screensaver on your Mac. This can be a convenient and useful way to monitor your cameras, and this tutorial will show you how to set this up.
The screensaver works by connecting to SecuritySpy’s web interface to obtain the video streams. If you are connecting over a local network, you simply have to enable the web server feature within SecuritySpy, via the Web Server Settings window. If you are connecting over the internet you will first have to set up SecuritySpy for remote monitoring.
Once you have enabled SecuritySpy’s web server, download the SecuritySpy screensaver, double-click on it, and you will be asked to confirm that you want to install it on your Mac. Once installed, you will see a SecuritySpy item in the list of available screensavers in the Desktop & Screen Saver system preference. On the right side of the Desktop & Screen Saver window, click the Screen Saver Options button to configure the screensaver:
SecuritySpy has a built-in web server that allows remote viewing of live camera streams as well as access to previously-captured footage and settings. We sometimes get asked by customers how to customise the appearance of these web pages for various reasons, such as to change colours, add branding, modify text etc. The procedure is quite simple, though it does require some knowledge of HTML and CCS.
SecuritySpy has built-in support for HTTPS (HTTP Secure), which allows you to set up an encrypted web connection to your SecuritySpy server over the internet.
In order to set up any HTTPS server, an SSL certificate is required (SSL being the protocol that provides the security features to HTTPS). With some web servers this can be a complicated process, but we have designed SecuritySpy’s HTTPS server to be a simple as possible to set up: you simply enable the HTTPS option in the Web Server Settings window and SecuritySpy will do the rest for you. SecuritySpy will automatically create and use a “self-signed” certificate for this purpose, which gets you up and running immediately and provides a fully encrypted connection. The downside of such a certificate though is that it won’t be automatically trusted by any client software that you use to connect to SecuritySpy (e.g. a web browser such as Safari), so you will get a warning message to this effect. In this case though, as you are the one setting up the server, you can be assured of its authenticity, so it is safe to ignore such warnings.
The other option is to purchase an official certificate for your SecuritySpy server from a recognised Certificate Authority (CA). Any web browser connecting to SecuritySpy will automatically trust such a certificate, so the person viewing the web interface will see the reassuring padlock icon and no warning messages. This may be preferable, for example, if your server is to be viewed by people outside your organisation. Below are instructions on how to do this.
Below is a guest post by one of our users, Wayne Jacobsen, who is using a Raspberry Pi computer to turn a USB webcam into an IP cam that can stream video to SecuritySpy, in order to expand his Mac video surveillance system. Wayne is an Art Glass artist – you can see some of Wayne’s work on Pinterest. Wayne has contributed the following description of his setup:
The Raspberry Pi can make a nice security camera in a SecuritySpy system with surprisingly little effort. I wanted a way of seeing what temperatures my kilns were, especially when they were cool enough to open and take the glass out. I had a Raspberry Pi (RPi) equipped with USB WiFi dongle and an old Logitech QuickCam Pro 9000 webcam sitting around from my old PC days. A little research on the web led me to many ways to use the RPi with the webcam and I used the instructions on this page as the basis of my setup. Someone has done all the software development work for us in a program call Motion.
SecuritySpy is our flagship video surveillance software product for Mac OS X, and as of version 3.2, SecuritySpy supports the ONVIF protocol. Here are the answers to some common questions, and information about this new feature.
What is ONVIF?
ONVIF is an open industry standard for IP-based video surveillance products. In the past, SecuritySpy would have to be pre-programmed with profiles for each camera it supports, containing information about the supported streaming formats, audio capabilities, communication ports, resolutions, frame rates, Pan/Tilt/Zoom features etc. This is inconvenient and time-consuming for us as developers, and also bad for customers because there is an inevitable delay between a new camera coming on the market and an update to SecuritySpy to officially support it.
With ONVIF, all this information can be obtained from the camera automatically. Therefore, any new ONVIF-compliant camera hitting the market can be immediately used with SecuritySpy using the ONVIF setting built into the software.
The IP camera market is changing rapidly, and while we do make some specific camera recommendations in our SecuritySpy Installation Manual, we are always coming across new noteworthy cameras, and there are simply too many to list in the manual. So we have put together our current 10 recommendations for network cameras in this blog post – the cameras described here are in no particular order (they are quite varied in terms of cost and feature set, which makes them difficult to rank in a “top 10″ list), however they are all cameras, due to their impressive collections of features, that we recommend to our customers. All the cameras featured here are capable of MPEG-4 and/or H.264 compression, which can be directly recorded by SecuritySpy for optimum quality and efficiency.
1 Dahua Technology IPC-HFW2100
We have an extensive list of cameras that are known to be compatible with SecuritySpy. All these cameras have profiles built into SecuritySpy, making for a quick and easy setup in most cases.
However, it’s a fast-changing market and new cameras are continuously being released. While we do our best to release frequent updates that support these new cameras, it’s a difficult task. You may find yourself intending to use a particular camera that is not yet on our list – this blog post will show you how.
The latest version of SecuritySpy supports new streaming formats which significantly enhance compatibility with new and existing network cameras. The following information about these formats will be useful when making purchasing decisions and setting up video surveillance systems based upon SecuritySpy.
Network Streaming Protocols
There are two main protocols used for carrying video and audio data over IP networks: HTTP and RTSP. Using these protocols, it is possible to transmit video and audio in various compression formats (JPEG, MPEG-4, H.264, AAC etc.).