Skip to content

JS wrapper for Azure AI cognitive services that lets you automatically apply a mask/filter to a face

Notifications You must be signed in to change notification settings

ianeli1/face-filters-azure-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

face-filters-azure-ai

JS wrapper for Azure AI cognitive services that lets you automatically apply a mask/filter to a face.

You will need an API Token and the endpoint from Azure Cognitive Services to use this

Usage

import { FaceAPI } from "face-filters-azure-ai";

async function main() {
  const client = new FaceAPI("<your token>", "<your API endpoint>");
  const myImage = "image.png";
  const myFilter = "filter.png";
  const myProcessedImage = await client.faceFilter(myImage, myFilter);
  myProcessedImage.write("myImage.png", (error) =>
    console.log(error ? error : "Image saved as myImage.png")
  );
  //myProcessedImage is a standard jimp object
}

main();

Dependencies used

  • Axios (for API calls)
  • JIMP (for the image editing)

About

JS wrapper for Azure AI cognitive services that lets you automatically apply a mask/filter to a face

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published