Message Boards Message Boards


Can we limit resolution? DeviceRead["RaspiCam"]

Posted 8 years ago
2 Replies
1 Total Likes

Can anyone advise how I can change screen resolution when using DeviceRead["RaspiCam"]

I started playing with Mathematica and a Webcam on the Raspberry Pi with a view to building a line following robot, I'm very nearly there.

The webcam worked well using << "!fswebcam -r 160x120 --no-banner /home/pi/test.jpg" the small image helped with processing speed on my old RPi but using external files also added to the processing time. If lighting was right and the line well defined the time was fairly good.

Now I've upgraded the Pi and added a PiCam. Using DeviceRead["RaspiCam"] I can see performance improvements but whilst the default resolution appears low (320x240) I wondered if we can tweak it down to what I was using before.

Thanks in advance, Colin

POSTED BY: Colin Durrans
2 Replies
Posted 8 years ago


Thanks Ilian, that works a treat and the speed of response is excellent.

Best regards, Colin

POSTED BY: Colin Durrans


DeviceRead["RaspiCam", {160, 120}]
POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract