I think this problem can be rectified by using sensors also.u place the sensor for the wall ,if any one come closer to it it may gives the signal,So when the sensor gives a signal we may activate the cc camera automatically( u must provide a communication between the sensor & camera)