How to use the Rekognition function from aws-sdk

Find comprehensive JavaScript aws-sdk.Rekognition code examples handpicked from public code repositorys.

76
77
78
79
80
81
82
83
84
85
### Lambda function:

```javascript
const AWS = require('aws-sdk')
AWS.config.update({region: 'us-east-2'})
const rekognition = new AWS.Rekognition()
const axios = require('axios')
const gql = require('graphql-tag')
const graphql = require('graphql')
const { print } = graphql
fork icon8
star icon48
watch icon2

257
258
259
260
261
262
263
264
265
266

if (image != undefined && image.dataURI != undefined) {

  baseAPIResponse.inputDataPresent = "true";

  var rek  = new AWS.Rekognition({region: 'us-west-2'});
  serverPack.rek = rek;

  serverPack.amazonParameters = {
    image: image
fork icon1
star icon1
watch icon1

+ 37 other calls in file

-1
fork icon0
star icon0
watch icon1

+ 5 other calls in file

1
2
3
4
5
6
7
8
9
10
11
12
13
14


const AWS = require('aws-sdk');


const lambda = new AWS.Lambda();


const rekognition = new AWS.Rekognition();


// from serverless.yml
const BUCKET_NAME = process.env.BUCKET_NAME; // 'attendance-image-bucket"
const REGION = process.env.REGION; // 'us-east-1"
fork icon0
star icon0
watch icon0