@camerashy ok, then do some tests and comment if it has been resolved.1.Reset camera settings from the Camera app settings.
2.Go to Settings/Applications and search for the Camera app.In Storage, clear cache and data.
All the best.
@camerashy Hello, the next step is to access the safe mode of your device and check if the camera works. If yes - you have some third-party application on your device, which interferes with the correct functioning of your camera. If the problem persists also in Save Mode, install the Google Camera app from the Play store and try to take photos. If you do not get any positive results, you should contact the nearest authorized technical service in the area. Greetings!