2

我有一张来自 iPad 2(或 iPod touch 4G)的条形码图片。我需要使用锐化技术和其他图像增强功能来增强图片,以便我可以通过条形码扫描仪(如 ZBar)运行图片。

如何使用 iOS API 做到这一点?我有点不知从何开始。我只想直接从相机覆盖中获取图像并通过某种类型的过滤器运行它。

4

3 回答 3

1

As of iOS5, you can use vImageRichardsonLucyDeConvolve_ARGB8888 contained in the vImage package. It implements the Richardson-Lucy deconvolution algorithm. I've personally used this on the Mac with great success - it all depends on how "blurry" your image is.

于 2013-05-16T18:34:02.593 回答
1

你基本上有两个选择:

  1. 阅读计算机视觉书籍并实施其中一种高级算法。iOS 不支持开箱即用。一个简单的锐化过滤器是不够的。您需要更复杂的算法。

  2. 获取支持这些设备的条码扫描仪,例如Scandit

第二种选择是更快的选择。

于 2013-05-16T18:12:28.370 回答
0

您可能会想要查看 Core Image 和(尤其是)CIFilter。例如,iOS 6 为您提供 CIUnsharpMask。

于 2013-05-16T18:12:06.520 回答