The implementation of a surveillance system with access control allows for centralized management of access to all the buildings of a community. The cameras film the exits and, in particular, authorize entries and exits. Access control, via the use of badges for example, also allows to restrict access to sensitive areas of a public building and to have access to a history of passages. Access control therefore makes it easy to combine administration and security.