Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.12 KB

File metadata and controls

48 lines (36 loc) · 1.12 KB

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",
      },
    });