ISEN IOT Project Cyber
- s3Upload.py : It is the main script, define function which find last picture taken and can upload picture to s3 bucket, this script is started by Motion
- pictureAnalysis.py : It define a function which the main script use, this function call and send pictures to rekognition in order to get labels and then analyse these to draw or not bounding-box.
- testImage.py : a script that take a picture path in argument and analyse it. Output reveals if a result picture has been created.
Don't forget to change the folder path where result pictures are written (end of pictureAnalysis.py) and were the upload script retrieve the picture to send to s3
Download file, unzip, update yours aws cli credentials and change your bucket name in s3upload.py. Then you can start s3upload.py
To test if a picture is recognized by rekognition, you can use .... script this way : python testImage.py <path to img to test here>
You can disable logs in s3Upload.py by deleting the "cmd" part.