Patent ID: 8428754

Claim:
A method of controlling an electrical device, comprising processing at least one image of at least one moving entity for determining when the at least one moving entity is at least one of entering and exiting a monitored area, and for determining when the at least one moving entity comprises at least one triggering shape; and when the at least one moving entity is determined to be at least one of entering and exiting the monitored area, and the at least one moving entity comprises the at least one triggering shape, triggering control of the electrical device and triggering a counter for counting triggering shapes present in the monitored area; wherein when the at least one moving entity is determined to be exiting the monitored area, and the at least one moving entity comprises at least one triggering shape, triggering the counter comprises triggering the counter to decrement by the number of triggering shapes, and triggering control of the electrical device comprises triggering control of the electrical device to a state different from a present state, when the counter falls below a threshold number.