From personal experience I can say that the Wyze V2 cameras do not appear to be usable if you have a Ubiquiti UDM Pro.
The cameras with defang hacked firmware were operating passably for a few days when I was using the Ubiquiti USG 3P gateway router but as soon as I replaced it with the UDM Pro they basically stopped being able to access the network over the course of a day (starting with almost complete packet loss and concluding in not even joining the access points).
Doing a search for the problem seems to reaffirm that this is indeed an issue many people face So be warned.
EDIT: Shortly after I posted I went back to the Wyze supplied V2 RTSP firmware. So far so good… 15fps at a low bitrate but it works. Hasn’t missed a beat so far. Can not recommend using custom firmware over the Wyze supplied firmware.
The Wyze person detection, no. But, if you have the RTSP firmware installed on the Wyze Cam, you should be able to use integrations such as DOODS or Tensorflow for Person detection.