Visual change check
About this tool
How to use it
- Choose this tool.
- Add the first picture (before) and the second picture (after).
- Choose how to see the changes: on one picture, side by side, blended, or as a black and white map.
- Set how small a difference should count, and how much change you allow.
- Press Generate, then download the result.
What you get back
Try Visual change check in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/render/visual-check" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'file=@document.pdf' \
-F 'other=@photo.jpg' \
-F 'mode=overlay' \
-F 'threshold=0.1' \
-F 'fit=strict'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.render.visualCheck({
"file": 'document.pdf',
"other": 'photo.jpg',
"mode": "overlay",
"threshold": 0.1,
"fit": "strict"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->render()->visualCheck([
'file' => 'document.pdf',
'other' => 'photo.jpg',
'mode' => 'overlay',
'threshold' => 0.1,
'fit' => 'strict',
]);
echo $result->requestId;