Archive For 24. November 2014

Capturing images from raspberry pi cam with java

By |

Capturing images from the raspberry pi cam is done by the command line tool raspistill. It’s possible to perform the command by invoking java’s Runtime.exec(..) method: Runtime rt = Runtime.getRuntime(); Process p = rt.exec(“raspistill -n –nopreview -t 250 -w 400 -h 300 -e jpg -o -“); p.waitFor(5000, TimeUnit.MILLISECONDS); InputStream is = p.getInputStream(); byte[] currentImage =…

Read more »