raspberry pi 4 model b & usb logitech camera connection
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
호찬
am 13 Aug. 2023
Beantwortet: Angelo Yeo
am 18 Aug. 2023
hi im trying to run this file "Run on Hardware" , https://kr.mathworks.com/matlabcentral/fileexchange/62243-run-on-hardware?s_tid=srchtitle
but when i trying to run edge detection func, but i can't solve
r = raspi
<< cam = cameraboard(r) >> this part
so i trying to use func webcam,
and i made this but i can't go foward
how can i solve this problem
0 Kommentare
Akzeptierte Antwort
Angelo Yeo
am 18 Aug. 2023
Looks like there was a problem with the Raspberry Pi's CSI camera (also known as strip based camera or PiCamera) connected to the Raspberry Pi. Note that "cameraboard" function is meant to be used for the CSI camera and not for USB cameras. However, "webcam" function can be used for either Pi Camera or USB webcams.
Try replacing cameraboard function in their script with the below:
cam = webcam(r,2); % 2 refers to the second AvailableWebCams
0 Kommentare
Weitere Antworten (1)
Walter Roberson
am 18 Aug. 2023
Is there a reason you are using the File Exchange submission instead of using the MATLAB Support Package for Raspberry Pi Hardware ? Are you using a version before R2018b ?
You are using cameraboard which is part of the support package just mentioned, so I do not understand what you are doing. You should perhaps be using webcam .
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!