Give your apps permission
If you recently updated Windows 10, you might need to give apps permission to use the camera. In newer versions of Windows 10, some apps don’t have access to the camera by default.
To let your device access the camera, select Start , then select Settings > Privacy > Camera . In Allow access to the camera on this device, if Camera access for this device is turned off, select Change and turn on Camera access for this device.
Note: If camera access for the device is turned off and you can't select Change, you'll need an administrator on the device to turn on camera access for you.
Before any app can access your camera, make sure camera access is turned on for apps in your user account. Make sure that Allow apps to access your camera is turned on.
After allowing access to the camera, go to Choose which Microsoft Store apps can access your camera and turn on camera access for the apps you want. Only apps installed from the Microsoft Store will appear in this list.
If you installed the app from the internet, a CD/DVD, a USB drive, or your IT administrator installed the app for you, it might not be a Microsoft Store app. To check, go to Allow desktop apps access to your camera and make sure it's turned on for the app. Many video conferencing apps, like Microsoft Teams, are desktop apps that require this setting to be turned on.
To learn how you can configure your camera privacy settings in Windows 10, go to this Windows Community (in English) page.
Check your antivirus software
In your antivirus software settings, look for settings that block access to your camera or permission to use your camera. For help, visit your antivirus software company’s website.
Did that fix your problem?