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

Testing the seed

Now that the seed is completed, let's validate the seed. This step is totally optional; you can skip this step if you want to.

Create a new folder named rekogniton_seed_test at the root of the chapter9 folder. Then create a folder named faces at the root of rekogniton_seed_test and dump the image that you would like to test into this folder. In my case, the picture is of me at a different location.

Next, create a file named seed_test.js and update it, as shown here:

var config = { collectionName: 'AIOWJS-FACES', region: 'eu-west-1', accessKeyId: 'ACCESSKEYID', secretAccessKey: SECRETACCESSKEY' }; var AWS = require('aws-sdk'); var fs = require('fs-extra'); var path = require('path'); var klawSync = require('klaw-sync') AWS.config.region ...
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