Skip to content

Face Recognition with Azure Cognitive Services. Analyzes the images and saves output to MongoDB (azure cosmos)

Notifications You must be signed in to change notification settings

edo92/Azure-Face-Recognition-Resources

Repository files navigation

All Contributors


Azure-Face-Recognition-Resources

  • Face Detection with Azure Cognitive Services
  • Api Request to face detection endpoint
  • Azure DevOps Pipeline

Usage

  • Basic example

    const api = new FaceDetection({
      face: {
        FD_SUB_KEY: process.env.FD_SUB_KEY,
        FD_ENDPOINT: process.env.FD_ENDPOINT,
      },
      database: {
        DB_ENDPOINT: process.env.DB_ENDPOINT,
        DB_KEY: process.env.DB_KEY,
        DB_ID: process.env.DB_ID,
        DB_CONTAINER_ID: process.env.DB_CONTAINER_ID,
      },
    });
    
    const result = await api.detectAndSave(imageUrl, {});
    console.log(result);

  • Passing options
    const test = await face.faceRecognition(imageUrl, {
      params: {
        returnFaceAttributes: "age,gender",
      },
    });

About

Face Recognition with Azure Cognitive Services. Analyzes the images and saves output to MongoDB (azure cosmos)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published