title: How can I get the confidence of comparing faces using amazon rekognition with php?
body: <p>I am using Amazon rekognition to compare faces in php (AWS SDK for php
  <a href="http://docs.aws.amazon.com/aws-sdk-php/v3/api/api-rekognition-2016-06-27.html#comparefaces" rel="nofollow noreferrer">Here</a> the documentation.</p>
  
  <p>The code below</p>
  
  <pre><code>&lt;?php
  require 'aws.phar';
  
  $s3 = new \Aws\Rekognition\RekognitionClient([
  'version' =&gt; 'latest',
  'region'  =&gt; 'us-east-1',
  ]);
  
  $result = $s3-&gt;compareFaces([
      'SimilarityThreshold' =&gt; 90,
      'SourceImage' =&gt; [
            'Bytes' =&gt; file_get_contents("https://images.clarin.com/2017/10/23/BkeLV_s6W_930x525.jpg")        
      ],
      'TargetImage' =&gt; [
            'Bytes' =&gt; file_get_contents("https://pbs.twimg.com/profile_images/653558348273569792/joxg8DZD_400x400.png")
      ],
  ]);
  
  ?&gt;
  </code></pre>
  
  <p>I don't know php. 
  How can I get the confidence of the picture?
  I try some things but I cant get it.</p>