The best software for this is written by ecammecamm - iGlasses for Mac
Their iGlasses product works very well and describes all the ways in which you can and can not take control of the physical camera based on hardened apps in Big Sur, Catalina and Mojave and making a virtual software camera to feed to other apps.