April 2018
Intermediate to advanced
248 pages
5h 31m
English
This module exposes two methods, which are used to take the reference image and the input image. Each function stores the image with separate names. Once the image is captured successfully, it's uploaded in the S3 bucket.
In Chapter 6, Security Surveillance, we have studied the camera module and its workings, so we will not get into the details here.
Create a file with the name CameraModuleRekognition.js and include the following code:
var PiCamera = require('pi-camera'),s3Bucket = require('./S3Put');var myCameraPhoto = new PiCamera({ mode: 'photo', output: `Path of Reference Image stored on raspberry pi for IndexFaces operation `, width: 640, height: 480,});var myCameraPhotoTarget = new PiCamera({ mode: 'photo',output: ...Read now
Unlock full access