Face Embeddingd for FaceNet Face Recognition DeepStream app

After making research and observation, i saw that i need to compare vectors(embeddings from datasets) to embeddings got from facenet for face detected as shown in this image below

I know that the facenet has to compare the distance between database embeddings and facenet embeddings and check for similarities, but how to i apply that to my facenet python app code?