mellow-ffmpeg

所属分类:流媒体/Mpeg4/MP4
开发工具:Haskell
文件大小:0KB
下载次数:0
上传日期:2023-07-16 00:30:19
上 传 者sh-1993
说明:  从网络摄像头帧到Haskell中的显示的桥接器(带图像处理),
(A bridge from WebCam frames to Display in Haskell (with image processing),)

文件列表:
CHANGELOG.md (25, 2023-07-15)
LICENSE (1535, 2023-07-15)
Setup.hs (46, 2023-07-15)
examples/ (0, 2023-07-15)
examples/EdgeDetect.hs (970, 2023-07-15)
mellow-ffmpeg.cabal (1636, 2023-07-15)
shell.nix (459, 2023-07-15)
src/ (0, 2023-07-15)
src/Mellow/ (0, 2023-07-15)
src/Mellow/FFmpeg.hs (3424, 2023-07-15)

# Introduction Mellow-ffmpeg is a Haskell library providing a layer over [ffmpeg-light](https://github.com/acowley/ffmpeg-light), [friday](https://github.com/RaphaelJ/friday), and [gloss](http://gloss.ouroborus.net/). That is, Mellow acquires RGBA frames from the web camera, applies the user-provided image transformation, and renders the image to screen. The main routine is `mellow state0 update render eventHandler` where `state0` is the initial state, update will update the state with a new frame, `render` will rasterize a given state for display to screen, and `eventHandler` is useful for key presses and other inputs. # Example In under 20 lines we can get a pretty little OpenGL colored rendering of the image edges. The basic steps are: 1. Import Mellow and 'friday'. Import 'gloss' as needed. 2. Call 'mellow' with desired call backs for receiving a new frame into your state, rendering the state, and handling keyboard events (see 'gloss' documentation for keyboard events). 3. Define your callback that transforms RGBA images into RGBA images using whatever techniques you desire (see the 'friday' library). For example, see the [canny demo](examples/EdgeDetect.hs).

近期下载者

相关文件


收藏者