Pixy1 integration with MATLAB?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello all,
I'm trying to integrate a 1st gen PIXY cam into MATLAB for a school project. All I really need is for the cam to recognize a color and output the corresponding value of that color to MATLAB. I know how to teach the PIXY how to recognize a color, it's just the MATLAB integration that's messing me up. This value outputted by the cam will then be an input to a switch statement that determines the output of the code. I'm not even sure where to start with this integration, and most of the resources I've been finding have been for PIXY2. Any help is much appreciated, thank you!
댓글 수: 0
답변 (1개)
Shiva Kalyan Diwakaruni
2020년 11월 24일
Hi,
As a possible workaround You can always connect Cam directly to Arduino, Raspberry Pi
Then you can create a camera board object by executing the following command on the MATLAB prompt.
For Example:
clear rpi
rpi = raspi();
cam = cameraboard(rpi,'Resolution','640x480');
and directly use the PIXY1 cam from Arduino,Raspberry Pi
Hope it helps.
References:
https://in.mathworks.com/help/supportpkg/raspberrypiio/examples/working-with-raspberry-pi-camera-board.html
https://in.mathworks.com/help/supportpkg/arduinoio/ref/arduino.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Downloads에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!