Shanghai installed the City Brain public surveillance system, which monitors millions through facial recognition cameras.