A security device is provided for locking a closure such as a door or a gate to an enclosure. In a particular embodiment, first image data is received corresponding to a scene recorded by an image capture device at a first focus position at a first distance. The point light source is disposed on the substrate.