php-opencv
php-opencv copied to clipboard
请问一下通过predict对比后如何才能知道相似度?
How can i konw the similarity probability when i use predict to contrast the two picture ps:example like that 50% or 80%
If you ask about face similarity:
$faceLabel = $faceRecognizer->predict($faceImage, $faceConfidence);
echo "{$faceLabel}, {$faceConfidence}\n";
If you ask about image similarity:
This is a really huge topic, with answers from 3 lines of code to entire research magazines.
