CoreImage下CIDetector.h自带了四种识别功能
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进行边缘检测
CIDetector
预览: