Latest 0.0.1
Homepage https://github.com/ShengHuaWu/SHCameraSession
License MIT
Platforms ios 7.0, requires ARC
Frameworks AVFoundation
Authors

Configure the camera of a device by the AVFoundation framework.
Because this class is abstract, please use the concrete subclasses SHCaptureCameraSession and SHVideoCameraSession instead of this class.

Properties and Methods

You can access the AVCaptureSession directly.

@property (nonatomic, strong) AVCaptureSession *session;

The concrete subclass should create the device and camera input.

@property (nonatomic, strong) AVCaptureDevice *device;

Create the capture video preview layer and add it into a view.

- (UIView *)cameraViewWithFrame:(CGRect)frame;

Adjust the focus, exposure and while balance of the camera at the point that is inside a given rect.

- (void)adjustCameraStatusAtPoint:(CGPoint)point inRect:(CGRect)rect;

Crop the camera image with a given region that is inside a particular rect.

- (UIImage *)cropCameraImage:(UIImage *)image withRegion:(CGRect)cropRegion inRect:(CGRect)rect;

Latest podspec

{
    "name": "SHCameraSession",
    "version": "0.0.1",
    "summary": "Configure the camera of a device by the AVFoundation framework.",
    "description": "Configure the camera of a device by the AVFoundation framework.n                    Because this class is abstract,n                    please use the concrete subclasses SHCaptureCameraSession andn                    SHVideoCameraSession instead of this class.",
    "homepage": "https://github.com/ShengHuaWu/SHCameraSession",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ShengHua Wu": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/ShengHuaWu/SHCameraSession.git",
        "tag": "0.0.1"
    },
    "source_files": "SHCameraSession/Classes/*.{h,m}",
    "frameworks": "AVFoundation",
    "requires_arc": true
}

Pin It on Pinterest

Share This