GithubHelp home page GithubHelp logo

pxcamera's Introduction

PXCamera

Version License Platform

Usage

Get images from the camera or photo library with one call. No delegates, no initialization.

[[PXCamera camera] getImageInViewController:self interface:PXCameraInterfaceCamera completion:^(UIImage * image, PXCameraImageSource source) {
    // boom! image and analytics data about where the image came from (camera or library)
}];

// or 

[[PXCamera camera] getImageInViewController:self interface:PXCameraInterfaceLibrary completion:^(UIImage * image, PXCameraImageSource source) {
    
}];

If you want to get a little bit more hands-on and make your own custom camera interface but don't want to manage all the hassle of AVFoundation, check out PXCameraCaptureManager. This singleton provides a readonly UIView property cameraPreviewView that displays live camera output. From there, you can connect your custom UI to the other methods in the interface that allow you to control the various aspects of the camera (flash mode, preview orientation, front -facing or back-facing camera). Check out the PXCustomCameraViewController in the example project for a really basic example.

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

PXCamera is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "PXCamera"

Author

Daniel Blakemore, [email protected]

License

PXCamera is available under the MIT license. See the LICENSE file for more info.

pxcamera's People

Contributors

danblakemore avatar kwongius avatar

Stargazers

Bruce avatar Oliver Ni avatar Sora Morimoto avatar Luiz Eduardo avatar  avatar  avatar  avatar  avatar SSM avatar Nicolos avatar  avatar  avatar mingyang66 avatar  avatar  avatar  avatar Александр avatar Roger Oba avatar Leo avatar  avatar Bruno Wernimont avatar Yothin Samrandee avatar

Watchers

James Cloos avatar Victor Siu avatar William Lee avatar Matt Stoker avatar  avatar Ben avatar  avatar Michael Biggs avatar  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.