Giter VIP home page Giter VIP logo

djcamera's Introduction

#一个AVFoundation的封装,开发者利用封装好的manager可随意自定义自己想要的UI照相机。

##4月1号更新功能:人脸识别

设置是否使用人脸识别:

manager.canFaceRecognition = YES;

开启脸部位置监听:

[manager setFaceRecognitonCallBack:^(CGRect faceFrame) {

NSLog(@"你的脸在%@",NSStringFromCGRect(faceFrame));

}];

##初始化:

DJCameraManager *manager = [[DJCameraManager alloc] initWithParentView:pickView];

pickView 是你要装载这个摄像视图的View 它的frame就是摄像范围。

添加摄像范围到View

- (void)configureWithParentLayer:(UIView *)parent;

切换前后镜

- (void)switchCamera:(BOOL)isFrontCamera didFinishChanceBlock:(void(^)())block;

拍照

- (void)takePhotoWithImageBlock:(void(^)(UIImage *originImage,UIImage *scaledImage,UIImage *croppedImage))block;

切换闪光灯模式

- (void)switchFlashMode:(UIButton*)sender;

点击对焦

- (void)focusInPoint:(CGPoint)devicePoint;

开启对焦监听 默认YES

- (void)setFocusObserver:(BOOL)yes;

###喜欢的朋友帮忙Star一下哦,射射!

djcamera's People

Contributors

419632131 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.