With the embedded deep learning algorithms, the camera integrates multiple intelligences. It counts persons and samples the face features simultaneously, and compares them with the built-in face library, so to remove the duplicated person. It counts persons and reports a face alarm simultaneously to achieve both the entrance control and people counting. Smooth streaming offers solutions to improve the video quality in different network conditions. For example, in poor network conditions, adapting to the detected real-time network condition, streaming bit rate and resolution are automatically adjusted to avoid mosaic and lower latency in live view; in multiplayer network conditions, the camera transmits the redundant data for the self-error correcting in back-end device, so that to solve the mosaic problem because of the packet loss and error rate.