Hi,
Despite tuning different parameters etc I still get false positives, not a lot, but some none the less. Inspired by this thread Script to Detect Colour, Make and Model of Car from IP Camera I was maybe going to try and use Sighthound's Cloud API for people / face recognition. However I wasn't sure on uploading my "pictures" to them, and what there privacy policy was and if they store the images you upload and if so what they do with them.
I thought "local processing" may be better, and started to look around and came across this:
OlafenwaMoses/ImageAI
I cant say I fully understand some (well most of it, and I work in IT), but it uses Tensorflow which seems to be a AI framework originally developed by Google.
I created a new Windows 2016 VM server on my main server, and followed the instructions. Had a couple of gotchers. First I had installed the 32bit version of Python, so needed to go back and install the 64bit version. Also, think I forgot to tick the box to update PATH variables when I installed, so I needed to do that.
I created the Object Detection script and ran it but I got an error, which after googleing around it related to needing to install the C++ redistributable.
Once that was installed it all worked. Put a picture called "image2" (or something else if you modify the script for a different name) into the folder where the code is, and it analyses it, and tells you what it found, and also creates a new version of the image with boxes around what its found.
I have attached a couple of images showing the output.
As I say, I was running on VM, and only 1 cpu (of about 1000 passmark score) was assigned to it, and it took about a min to parse the photo, with about 20 to 30 secs of that being the time the script seemed to start up. I them noticed that you could give the script different speed parameters (the faster it is the less accurate / sure it is about what it detects), so selected fast, and that seemed to speed it up to about 30 secs (with most of that again being script start up time).
So, its a work in progress, but may be able to do something where when motions is detected a photo is saved, passed to the script, and it comes back with what its found, and then I can tack action on that (i.e send e-mail if person).
Despite tuning different parameters etc I still get false positives, not a lot, but some none the less. Inspired by this thread Script to Detect Colour, Make and Model of Car from IP Camera I was maybe going to try and use Sighthound's Cloud API for people / face recognition. However I wasn't sure on uploading my "pictures" to them, and what there privacy policy was and if they store the images you upload and if so what they do with them.
I thought "local processing" may be better, and started to look around and came across this:
OlafenwaMoses/ImageAI
I cant say I fully understand some (well most of it, and I work in IT), but it uses Tensorflow which seems to be a AI framework originally developed by Google.
I created a new Windows 2016 VM server on my main server, and followed the instructions. Had a couple of gotchers. First I had installed the 32bit version of Python, so needed to go back and install the 64bit version. Also, think I forgot to tick the box to update PATH variables when I installed, so I needed to do that.
I created the Object Detection script and ran it but I got an error, which after googleing around it related to needing to install the C++ redistributable.
Once that was installed it all worked. Put a picture called "image2" (or something else if you modify the script for a different name) into the folder where the code is, and it analyses it, and tells you what it found, and also creates a new version of the image with boxes around what its found.
I have attached a couple of images showing the output.
As I say, I was running on VM, and only 1 cpu (of about 1000 passmark score) was assigned to it, and it took about a min to parse the photo, with about 20 to 30 secs of that being the time the script seemed to start up. I them noticed that you could give the script different speed parameters (the faster it is the less accurate / sure it is about what it detects), so selected fast, and that seemed to speed it up to about 30 secs (with most of that again being script start up time).
So, its a work in progress, but may be able to do something where when motions is detected a photo is saved, passed to the script, and it comes back with what its found, and then I can tack action on that (i.e send e-mail if person).
Attachments
Last edited: