Why is there overlayed square and number on Raspberry Pi camera image taken using MATLAB? How to remove?

5 views (last 30 days)
Thana Seelaraj Baiskaran
Thana Seelaraj Baiskaran on 26 Jan 2022
Answered: Obed Rios on 4 May 2022 at 1:43
%%UPDATE: Using wcam instead of cameraboard solved my issue for now. But I would still like to know how to solve issue with cameraboard()
I took a photo using my RaspberryPi camera through Matlab and the image I get has a square and number 0 on it. What causes this and how to remove it? I've attached the image and the
mypi=raspi('raspberrypi');
mycam = cameraboard(mypi)
img = snapshot(mycam);
imagesc(img);
drawnow
code used.

Answers (2)

yanqi liu
yanqi liu on 27 Jan 2022
Edited: yanqi liu on 27 Jan 2022
mypi=raspi('raspberrypi');
mycam = cameraboard(mypi)
mycam.ROI = [0.50 0.50 0.33 0.33]
img = snapshot(mycam);
imagesc(img); axis off;
drawnow

Obed Rios
Obed Rios on 4 May 2022 at 1:43
It appears I have that strange rectangle when using my camera board with Matlab after using raspistill with ROI. After rebooting my Rpi, the rectangle was gone. Best regards

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by