0

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.

StupidWolf
  • 45,075
  • 17
  • 40
  • 72

1 Answers1

0

Maybe you have some issue when connect the camera with raspberry pi.

  1. Maybe your charger is not well enough to give the proper power for raspberry pi. or
  2. Maybe the cable which connect the camera and raspberry pi is broken. or
  3. Maybe the slot for connecting the camera is broken.