December 2017
Intermediate to advanced
296 pages
5h 56m
English
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 ...