@hackage repa-v4l20.2.0.0
Provides high-level access to webcams.
Categories
License
LicenseRef-LGPL
Maintainer
Christian Gosch <github@goschs.de>
Links
Versions
Installation
Dependencies (10)
- base >=4 && <5
- bmp >=1.2.1
- bytestring >=0.9.2
- containers >=0.2
- deepseq >=1.3
- mtl >=2.0.1.0 Show all…
Dependents (1)
@hackage/acme-everything
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.
Last time I checked, the v4l2 package was not on hackage, but it can be retrieved from here: https://gitorious.org/hsv4l2
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 (grab >>= saveBmp "my_image.bmp") (Webcam 0)
If anyone wants to help, please contact me!