βοΈimageSimilarityTest
Last updated
npm install @nest25/ai-core-sdk
OR
yarn add @nest25/ai-core-sdk// import the ai-core-sdk
import {AIServices} from '@nest25/ai-core-sdk';
// create a new instance of the sdk
const aiServices = new AIServices();
async function main() {
// get the result of the test
const result = await aiServices.imageSimilarityTest('https://ik.imagekit.io/BIOSPHERE/1678716455079_PTj9bkO9d.jpeg');
console.log(result);
}
main();{
"img": {
"keyPoint1": "None",
"keyPoint2": "None",
"matchedImg": "None",
"score": 2.0
},
"message": "Similar image found.",
"status": 0
}