0

How can I binarize the pixels in a CMSampleBuffer received from:

- (void)captureOutput:(AVCaptureOutput *)captureOutput
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
       fromConnection:(AVCaptureConnection *)connection {}

I am writing an app to recognize whenever a QR finder mark appears and I would prefer to use one of apple's Core Image filters.

4

1 回答 1

0

这是我首先要尝试的。获取图像。 这是一个 SO 答案,其中包含一些高度投票的代码来做到这一点。

从任意数量的图像库中选择图像阈值。 这是一个 SO 答案,其中包含指向使用 OpenGL ES 进行 GPU 加速的答案。

于 2013-03-25T22:54:54.480 回答