Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Attempts to identify face(s)/label(s) of object(s) detected in received S3 image and send out a notification to sms if it's a person or email if it's an object

License

Notifications You must be signed in to change notification settings

kanya-approve/LorexCameraNotification

Repository files navigation

Lorex Camera Motion Detected

Prerequisites

  1. Motion detection setup on your Lorex DVR
  2. Lorex DVR
  3. Python 3
  4. Same requirements as listed here
  5. An always on machine in your network...network attached storage options such as this work great with custom firmware installed following this tutorial
  6. Picture(s) of those you'd like to index the faces of in Rekognition
    1. The files must be named NAME-PICTURENUMBER.EXTENSION - Ex: brian-4.png or brian-5.jpg
  7. Static website with domain hosted on S3 with path for the motion detected alert images
  8. Twilio account that has sms enabled
  9. A comma delimited list of recipient phone numbers with international code prepended
  10. Get a number on Twilio to send sms from
  11. Get your twilio account sid
  12. Get your twilio auth token

Instructions

  1. Run the below commands with the appropriate values filled in

    npm install
    sls deploy --smsRecipients 'Result of #9 of prerequisites' \
    --twilioNumber 'Result of #10 of prerequisites' \
    --twilioAccountSid 'Result of #11 of prerequisites' \
    --twilioAuthToken 'Result of #12 for prerequisites' \
    --domain 'Domain result of #7 in prerequisites' \
    --domainPath 'Path result of #7 in prerequisites' \
    --facesCollectionId 'This can be any identifier or you can go with the default of OurFaces by removing this' \
    --s3fsUser 'This can be any identifier or you can go with the default of S3FSUser by removing this argument'
  2. Create and note an access key for the newly created S3FSUser

  3. Note the name of the created MotionBucket

  4. Follow this tutorial to get s3fs setup on the always machine identified in prerequisite #3

  5. Setup an ftp server with this newly created s3fs mount as the location for uploads

  6. Enable FTP upload to this ftp server from the Lorex DVR settings

About

Attempts to identify face(s)/label(s) of object(s) detected in received S3 image and send out a notification to sms if it's a person or email if it's an object

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages