A perimeter alarm based only on motion detection can produce many false alarms from trees, light and weather. We combine virtual fence, line crossing and zone entry rules with person and vehicle classification; we aim to reduce false alarms with direction, duration, schedule and object size filters, and measure the result in the pilot. The alarm is linked to PTZ, video verification and the notification flow.