Automations using frigate

Hello all

Next month i will be trying to automate my driveway gate.
I will add a reolink POE doorbell
a numeric keyboard
and 2 POE cameras
and a motion and lux sensor
A shelly switch on the gate

I plan to use frigate to view the video from my cameras and my NAS to store the images (HA has access to my Nas)

My goal is to run face (multiple individuals) and object recognition

My question
Will i be able to trigger the camera recording based on motion?
Can i use this trigger to run face/object recognition?
then use this trigger to open the gate If the face or object is recognized (IE car Licence plate or car make and model)

Thank you for your input