April 2018
Intermediate to advanced
248 pages
5h 31m
English
In this module, we will take the image stored in the local storage of Raspberry Pi and upload it to the S3 bucket. On successful execution, it then calls the IndexFaces or SearchFacesByImage function of the IndexFaces.js and SearchFacesByImage.js modules respectively, based on which task needs to be performed. The image is taken using a camera and camera module code, which we will cover in the next section.
Create a file with the name S3put.js and add the following code lines, which will include the required modules and set the configurations right:
var AWS = require('aws-sdk') fs = require('fs'); indexfaces = require('./indexFaces'), searchFaces = require('./searchFacesByImage'); AWS.config.update({ accessKeyId: 'YOUR_ACCESS_KEY_ID', ...Read now
Unlock full access