How to apply black and white effect to a color video in iOS

前端 未结 3 1189
盖世英雄少女心
盖世英雄少女心 2020-12-11 02:43

In my application I have a color video which I want to make as black and white video. Is there any framework that supports this in iOS? If so, how to implement that effect o

相关标签:
3条回答
  • 2020-12-11 03:10

    See the opensource Framework named: GPUImage https://github.com/BradLarson/GPUImage/
    The filter name GPUImageGrayscaleFilter is what you want
    This framework included the sample code, so you can learn how to use GPUImageGrayscaleFilter in your apps easily

    0 讨论(0)
  • 2020-12-11 03:25

    A bit late here, but you should check out OpenCV.

    It can be compiled as a static lib for the iPhone and can convert video (frame by frame) to grayscale or two color.

    You can start here. There are other resources for doing this floating around.

    0 讨论(0)
  • 2020-12-11 03:36

    HI Lakshmi this might be familiar to you that at least 24 frames make a clip of video so you have to use a tool like movie maker so that you can see the video frame by frame and edit each frame.

    0 讨论(0)
提交回复
热议问题