That is exactly what this Raspberry Pi object detection project demonstrates. You can build a fully working object detection ...
Specialized cables can still beat USB-C.
Want a camera for your Nintendo Switch 2? It supports USB-C webcams and the iPhone (but not the PlayStation camera!) ...