1

I've been trying to find a way to enable the Picamera with Ubuntu aarch64 on Raspberry pi 4 module but so far I only found how to do it on Raspberry pi 2/3, or with arch32.

Is there a way to support Picamera with Ubuntu 20.04 aarch64 on Raspberry pi 4 module?

3
  • 1
    have you tried installing from source code? also you might enjoy the raspberry pi stackexchange, this question clearly belongs there. read this: larrylisky.com/2016/11/24/…
    – j0h
    Feb 15, 2022 at 2:29
  • Sorry, it’s 20.04 Feb 15, 2022 at 9:26
  • This question is also on topic here.
    – karel
    Feb 15, 2022 at 23:39

2 Answers 2

1

Yes it will work. Picamera functions under aarch64. The answer is here - https://raspberrypi.stackexchange.com/questions/114035/picamera-and-ubuntu-20-04-arm64

import cv2
cap = cv2.VideoCapture('/dev/video0', cv2.CAP_V4L)
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 2560)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 1440)
ret, frame = cap.read()
cv2.imwrite('image.jpg', frame)
cap.release()

Run the python script after installing opencv. It should save a photo in the same directory as the script. I just tested on Raspberry PI 4 B, Ubuntu Server 20.04 64 bit (with Desktop) with OpenCV all good.
If you still have issues, make sure boot/config.txt has,

 start_x=1
1

You need to install the raspi-config tool for Ubuntu 22.04 and 20.04.

In a terminal type below command to install the tool.

sudo apt install raspi-config

Then open the tool using

sudo raspi-config

Once the tool screen is openwed, go to Interface Options and then enable "Legacy camera option".

More about raspi-config tool Raspberry Pi Documentation

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .