As I had a Canon DSLR lying around during Covid, I have repurposed it to a webcam using Canons webcam driver: https://www.usa.canon.com/internet/portal/us/home/support/se... Image quality is top notch and the ability to Zoom in/out using the zoom lense is nice. You also get some nice background blur, depending on your used lens. For power there are modified "batteries" allowing to plug the camera into AC for power.
https://maximevaillancourt.com/blog/canon-dslr-webcam-debian...