I started working with a fresh Raspi. Enabled the camera module from raspi-config
, rebooted my RPi.
When I then ran this simple code:
from picamera import PiCamera
import time
camera=PiCamera()
camera.start_preview()
I get this long error saying Camera is not enabled. Try running 'sudo raspi-config' which I already have.
Additionally I tried running vcgencmd get_camera
it says supported=1 detected=0
I have inserted my camera in correct orientation Double ensured it. But I'm still stuck. Appreciate any help.