Skip to content
This repository

Haskell high level access to webcams under Linux.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Setup.hs
Octocat-spinner-32 example.hs
Octocat-spinner-32 repa-v4l2.cabal
README
Provides high-level access to webcams for Haskell programs.

The current state is that the library provides a monad for
grabbing images from a webcam under Linux. In the future, more functionality like 
image processing functions and other input devices may be added.

For images, repa arrays are used. Therefore, all the repa goodness
can be used with the data. It should also be possible without too much hassle 
to write a function which gets the data into a different type of array,
if that is necessary.

Getting an image with a v4l webcam works like this:

> import Graphics.Webcam.Linux
> main = runCam (Webcam 0) $ grab >>= saveBmp "my_image.bmp"

If anyone wants to help, like by adding webcams on other platforms
besides Linux, please contact me!

Something went wrong with that request. Please try again.