Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianeli1/face-filters-azure-ai
JS wrapper for Azure AI cognitive services that lets you automatically apply a mask/filter to a face
https://github.com/ianeli1/face-filters-azure-ai
azure-cognitive-services javascript jimp
Last synced: 15 days ago
JSON representation
JS wrapper for Azure AI cognitive services that lets you automatically apply a mask/filter to a face
- Host: GitHub
- URL: https://github.com/ianeli1/face-filters-azure-ai
- Owner: ianeli1
- Created: 2021-02-21T19:47:11.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-27T18:15:31.000Z (over 3 years ago)
- Last Synced: 2024-10-26T00:34:29.421Z (about 2 months ago)
- Topics: azure-cognitive-services, javascript, jimp
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/face-filters-azure-ai
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```ts
import { FaceAPI } from "face-filters-azure-ai";async function main() {
const client = new FaceAPI("", "");
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)