CoreImage
下CIDetector.h
自带了四种识别功能
/* 人脸识别 */ CORE_IMAGE_EXPORT NSString* const CIDetectorTypeFace NS_AVAILABLE(10_7, 5_0); /* 矩形边缘识别 */ CORE_IMAGE_EXPORT NSString* const CIDetectorTypeRectangle NS_AVAILABLE(10_10, 8_0); /* 二维码识别 */ CORE_IMAGE_EXPORT NSString* const CIDetectorTypeQRCode NS_AVAILABLE(10_10, 8_0); /* 文本识别 */ #if __OBJC2__ CORE_IMAGE_EXPORT NSString* const CIDetectorTypeText NS_AVAILABLE(10_11, 9_0);
项目采用原生CoreImage
框架下CIDetector
进行边缘检测
预览: