Pixy1 integration with MATLAB?

4 visualizaciones (últimos 30 días)
Sarah Limberger
Sarah Limberger el 16 de Nov. de 2020
Respondida: Shiva Kalyan Diwakaruni el 24 de Nov. de 2020
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!

Respuestas (1)

Shiva Kalyan Diwakaruni
Shiva Kalyan Diwakaruni el 24 de Nov. de 2020
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

Categorías

Más información sobre Downloads en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by