Reseting camera app can fix system glitches that may make camera not working on Windows 10 and give the app a fresh restart.
Step 1 On your PC, go to Settings > Apps > Apps & features > Camera
Step 2 Select Camera app and click Advanced options
Step 3 Click Reset.
You should also uninstall and reinstall related driver via Device Manager.