Experimental proof-of-concept video capture in MATLAB using Point Grey cameras.
MATLAB's built in videoinput
class, used for image capture, can only log data as .AVI file. It is also reportedly slow, and takes some time to save the data after acquisition.
Use callback functions from the videoinput
class to write raw frames to a binary dump. This should allow one to stream the data to disk, with no limitation.
The recommended way to install this is to use my package manager:
urlwrite('http://srinivas.gs/install.m','install.m');
install bergman
install srinivas.gs_mtools
or clone this repository using git.
Set up the bergman
class:
b = bergman;
(Optional) Specify where you want to log data
b.file_name = 'through_a_glass_darkly.bergman';
Start acquisition:
b.start;
bergman
should now have logged all the data to disk in the file you specified.
- Only works with Point Grey cameras
- Assumes you have all the hardware packages installed
- No support for unlimited data capture yet. You have to specify how many frames you want in advance.
- Files not closed properly. You have to manually close them.
bergman is free software. GPL v3