I created this a while ago using the V0 API, so it may need some work.  Not sure.
https://www.ifm.net.nz/cookbooks/meraki-icu.html 
 
This will allow you to grab snaphots as an object is recognised as a person.  It can also feed the images into  Amazon AWS Rekognition - and you would be better to use that for your AI recognition of individual people.
 
One big gotcha for your plan - it can take several minutes between when a camera sees a person to you getting some results you can action.