Image Analysis
Comparing Faces with AI
Detect faces in images and compare them with other faces in a Database or another image.
The Face Comparison AI Model by WorqHat, powered by ImageCon V2, is designed to determine if a face in one image matches a face in another image. This system compares faces regardless of variations in expression, facial hair, and age. It provides confidence level estimates for predictions using probabilities or confidence scores. Users should consider the confidence threshold appropriate for their specific use case to balance the trade-off between missed detections and false alarms. The Face Comparison AI Model by WorqHat, powered by ImageCon V2, offers the tools and capabilities to compare faces and determine potential matches.
Read more at https://docs.worqhat.com/ai-models/image-analysis/face-analysis
Parameters
Parameter | Type | Description |
---|---|---|
source_image | File or string | The source image to be compared. It can be a File object or a URL or base64 encoded image data. This is a required parameter. |
target_image | File or string | The target image to be compared. It can be a File object or a URL or base64 encoded image data. This is a required parameter. |
Initialize AI Modules
const worqhat = require('worqhat');
var config = new worqhat.Configuration({
apiKey: "your-api-key",
debug: true,
max_retries: 3,
});
worqhat.initializeApp(config);
let ai = worqhat.ai();
Implementation
ai.analyseImages.compareFaces({
target_image: "./image-2.jpeg",
source_image: "./image-3.JPG"
}).then((response) => {
console.log(response);
console.log(response.data);
}).catch((error) => {
console.log(error);
});
Was this page helpful?