There is the object recognition and tracking API.
https://developer.apple.com/wwdc24/10101
You probably will need to build significantly on top of that, and you can't get some capabilities you would get with full camera feed access. How far does that get you to what you need?