Skip to Content
Practical Internet of Things with JavaScript
book

Practical Internet of Things with JavaScript

by Arvind Ravulavaru
December 2017
Intermediate to advanced
296 pages
5h 56m
English
Packt Publishing
Content preview from Practical Internet of Things with JavaScript

Seeding the authorized faces

Create a folder named chapter9, and inside this folder, create a folder named rekogniton_seed. Inside this folder, create a file named seed.js.

Update seed.js as follows:

var config = { collectionName: 'AIOWJS-FACES', region: 'eu-west-1', // If the credentials are set using `aws configure`, below two properties are not needed. accessKeyId: 'YOUR-ACCESSKEYID', secretAccessKey: YOUR-SECRETACCESSKEY' }; var AWS = require('aws-sdk'); var fs = require('fs-extra'); var path = require('path'); var klawSync = require('klaw-sync') AWS.config.region = config.region; var rekognition = new AWS.Rekognition({ region: config.region, // accessKeyId: config.accessKeyId, // uncomment as applicable // secretAccessKey: config.secretAccessKey ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driving JavaScript Applications

Test-Driving JavaScript Applications

Venkat Subramaniam
Web Caching and Replication

Web Caching and Replication

Michael Rabinovich, Oliver Spatscheck

Publisher Resources

ISBN: 9781788292948Supplemental Content