express-sweet 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/index.html CHANGED
@@ -5551,7 +5551,8 @@ const client = new sweet.services.AWSRekognitionClient({
5551
5551
  // left: 0.2928670048713684,
5552
5552
  // top: 0.09095799922943115
5553
5553
  // },
5554
- // externalImageId: 'img.jpg'
5554
+ // externalImageId: 'img.jpg',
5555
+ // similarity: 99.98941802978516
5555
5556
  // }
5556
5557
  const match = await client.searchFaces('MyCollection', 'img.jpg', {minConfidence: 99, maxFaces: 1});
5557
5558
  console.log(match);
@@ -5567,7 +5568,8 @@ console.log(match);
5567
5568
  // left: 0.2928670048713684,
5568
5569
  // top: 0.09095799922943115
5569
5570
  // },
5570
- // externalImageId: 'img.jpg'
5571
+ // externalImageId: 'img.jpg',
5572
+ // similarity: 99.98941802978516
5571
5573
  // }
5572
5574
  // ]
5573
5575
  const matches = await client.searchFaces('MyCollection', 'img.jpg', {minConfidence: 99, maxFaces: 5});
@@ -5598,7 +5600,8 @@ const client = new AWSRekognitionClient({
5598
5600
  // left: 0.2928670048713684,
5599
5601
  // top: 0.09095799922943115
5600
5602
  // },
5601
- // externalImageId: 'img.jpg'
5603
+ // externalImageId: 'img.jpg',
5604
+ // similarity: 99.98941802978516
5602
5605
  // }
5603
5606
  const match = await client.searchFaces('MyCollection', 'img.jpg', {minConfidence: 99, maxFaces: 1});
5604
5607
  console.log(match);
@@ -5614,7 +5617,8 @@ console.log(match);
5614
5617
  // left: 0.2928670048713684,
5615
5618
  // top: 0.09095799922943115
5616
5619
  // },
5617
- // externalImageId: 'img.jpg'
5620
+ // externalImageId: 'img.jpg',
5621
+ // similarity: 99.98941802978516
5618
5622
  // }
5619
5623
  // ]
5620
5624
  const matches = await client.searchFaces('MyCollection', 'img.jpg', {minConfidence: 99, maxFaces: 5});
@@ -5835,6 +5839,10 @@ const client = new AWSRekognitionClient({
5835
5839
  <td class="text-nowrap">externalImageId?: string</td>
5836
5840
  <td class="w-100">Identifier that you assign to all the faces in the input image.</td>
5837
5841
  </tr>
5842
+ <tr>
5843
+ <td class="text-nowrap">similarity?: number</td>
5844
+ <td class="w-100">Confidence in the match of this face with the input face.<br>Valid Range: Minimum value of 0. Maximum value of 100.</td>
5845
+ </tr>
5838
5846
  </tbody>
5839
5847
  </table>
5840
5848
  <!--end::Interface FaceMatch-->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-sweet",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Extend Express functionality with Express Sweet and start developing fast, minimal web applications.",
5
5
  "main": "dist/build.common.js",
6
6
  "module": "dist/build.esm.js",
@@ -22,4 +22,10 @@ export default interface {
22
22
  * @type {string}
23
23
  */
24
24
  externalImageId?: string;
25
+ /**
26
+ * Confidence in the match of this face with the input face.
27
+ * Valid Range: Minimum value of 0. Maximum value of 100.
28
+ * @type {number}
29
+ */
30
+ similarity?: number;
25
31
  }