How to boot the Raspi CAM at startup


Earlier we could start the Raspi CAM during booting for certain specific application. What would be the command in DietPi to do this type of CAM start up during boot.


If there is anyone who can send a simple python script to start CAM in Dietpi . I have used ONLY RasPi cam python scripts only.

My original python script were as follows.

from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import cv2

camera = PiCamera()
camera.resolution =(640, 480)
camera.framerate = 32
rawCapture = PiRGBArray(camera, size = (640,480))


for frame in camera.capture_continuous(rawCapture, format="bgr", use_video_port=True):
    image = frame.array

    key = cv2.waitKey(1) & 0xFF


    if key == ord("q"):

The above script does not work on DietPi !!

thank you

It seems that picamera is outdated for 64bit systems
Take a look at this, it worked for me.

Picamera2 beta release - Raspberry Pi

------> from picamera2 import Picamera2