Pixy1 integration with MATLAB?

2 次查看(过去 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!

回答(1 个)

Shiva Kalyan Diwakaruni
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

Community Treasure Hunt

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

Start Hunting!

Translated by