2017年4月10日

系统人脸识别:解决系统人脸识别得到的图片方向问题

摘要: 1、最后获得的图像反向转换 2、如果图像一开始就不是正向的 阅读全文

posted @ 2017-04-10 18:13 Pierce-lph 阅读(674) 评论(0) 推荐(0) 编辑

人脸识别调研总结

摘要: 1、系统的人脸识别 CoreImage里面的CIFaceFeature 可以实现图片的人脸检测,以及人脸的眼睛,嘴巴的位置定位。 可以检测眨眼和微笑 实现起来比较简单。 精度还算比较好 实时视频预览,拍照 1)AVCapture + CIFaceFeature 在 AVCaptureVideoDat 阅读全文

posted @ 2017-04-10 18:13 Pierce-lph 阅读(1898) 评论(0) 推荐(0) 编辑

系统人脸识别:iOS 官方人脸检测Demo

摘要: 1 /** 2 * 注意:CIFaceFeature 提供的坐标都是和CGContext一样是反方向的,所以以下的画图操作都是用了CGContext的方式 3 */ 4 - (void)faceRegonized { 5 CIContext *context = [CIContext contextWithOptions:nil]; 6 UIImag... 阅读全文

posted @ 2017-04-10 18:08 Pierce-lph 阅读(466) 评论(0) 推荐(0) 编辑

【转载】如何给UIViewController瘦身

摘要: 如何给UIViewController瘦身 编辑: z_zombie 来源:smileEvday的博客 随着程序逻辑复杂度的提高,你是否也发现了App中一些ViewController的代码行数急剧增多,达到了2、3千行,甚至更多。这时如果想再添加一点功能或者修改现有逻辑变得让人无比头疼。如果你遇到 阅读全文

posted @ 2017-04-10 17:57 Pierce-lph 阅读(110) 评论(0) 推荐(0) 编辑

NSLog 的输出格式

摘要: %@ 对象 %d, %i 整数 %u 无符整形 %f 浮点/双字 %x, %X 二进制整数 %o 八进制整数 %zu size_t %p 指针 %e 浮点/双字 (科学计算) %g 浮点/双字 %s C 字符串 %.*s Pascal字符串 %c 字符 %C unichar %lld 64位长整数( 阅读全文

posted @ 2017-04-10 17:48 Pierce-lph 阅读(104) 评论(0) 推荐(0) 编辑

【转载】后台播放音乐

摘要: iOS 4开始引入的multitask,我们可以实现像ipod程序那样在后台播放音频了。如果音频操作是用苹果官方的AVFoundation.framework实现,像用AvAudioPlayer,AvPlayer播放的话,要实现完美的后台音频播放,依据app的功能需要,可能需要实现几个关键的功能。 阅读全文

posted @ 2017-04-10 17:47 Pierce-lph 阅读(491) 评论(0) 推荐(0) 编辑

通知的使用

摘要: //创建通知 [[NSNotificationCenter defaultCenter] postNotificationName:kMusicPlaybackStateChangeNotification object:musicIdentifier]; //监听通知 [[NSNotificationCenter defaultCenter] addObserver:self se... 阅读全文

posted @ 2017-04-10 17:43 Pierce-lph 阅读(146) 评论(0) 推荐(0) 编辑

Video Player调研

摘要: 一、官方提供的播放方式:AVPlayer、MPMediaPlayer 优点:提供较完整较稳定的API 缺点:支持的视频编码格式很有限:H.264、MPEG-4,扩展名(压缩格式):.mp4、.mov、.m4v、.m2v、.3gp、.3g2等 通过输出 [AVURLAsset audiovisualM 阅读全文

posted @ 2017-04-10 17:37 Pierce-lph 阅读(235) 评论(0) 推荐(0) 编辑

单例的定义

摘要: 在.h 文件中定义: 在.m 文件中定义: 阅读全文

posted @ 2017-04-10 17:25 Pierce-lph 阅读(143) 评论(0) 推荐(0) 编辑

获取cell 在collection view 中的位置

摘要: 1 //求得出点击的cell在当前View的位置 2 UICollectionViewLayoutAttributes *attributes = [collectionView layoutAttributesForItemAtIndexPath:indexPath]; 3 4 CGPoint cellCenter = attributes.center; 5 CGPoint anchor... 阅读全文

posted @ 2017-04-10 17:15 Pierce-lph 阅读(460) 评论(0) 推荐(0) 编辑

导航