QTCapture: Capture images from your Quicktime camera in Java and Matlab

This directory contains Matlab code and Java class files for capturing images from a Quicktime camera, like the iSight camera on iMac and MacBook computers. The idea is to obtain an RGB image as an array of pixel values suitable for display and numerical manipulation in Java and Matlab, without the use of temporary files.

The code has been tested on OS X Tiger (10.4) and Leopard (10.5), running Matlab 7.6.0.324 (R2008a). The Java source code is included for anyone interested in modifying it. All code is released under the GNU General Public License.

To try out the code: download qtcapture.zip, unzip it, launch Matlab, and type

  >> cd ~/qtcapture % or wherever you unzipped qtcapture.zip
  >> javaaddpath('.')
  >> testqtc(640, 480) 
You will probably want to add the qtcapture directory permanently to your Matlab path (via File/SetPath) and to your Java class path (via >>open classpath.txt).

To try out the code in Java, run the QTCTest application. For example, on a Unix system you can just type

  % java QTCTest

Please contact me with any questions or suggestions.