how to convert a CVImageBufferRef to UIImage

后端 未结 4 1233
别跟我提以往
别跟我提以往 2020-11-28 21:52

I am trying to capture video from a camera. i have gotten the captureOutput:didOutputSampleBuffer: callback to trigger and it gives me a sample buffer that i th

4条回答
  •  自闭症患者
    2020-11-28 22:18

    Benjamin Loulier wrote a really good post on outputting a CVImageBufferRef under the consideration of speed with multiple approaches.

    You can also find a working example on github ;)

    How about back in time? ;) Here you go: http://web.archive.org/web/20140426162537/http://www.benjaminloulier.com/posts/ios4-and-direct-access-to-the-camera

提交回复
热议问题