ard

ARDetector

CIDetector, AVCaptureVideoDataOutput and AVCaptureMetadataOutput categories. With face, rectangle, QR Code and TEXT CIDetector and blocks for AVCaptureOutput handling.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

69

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

ARDetector

Join the chat at https://gitter.im/alexruperez/ARDetector Twitter GitHub Issues Version License Platform Dependency Status Analytics

Overview

CIDetector, AVCaptureVideoDataOutput and AVCaptureMetadataOutput categories. With face, rectangle, QR Code, the future text CIDetector and blocks for AVCaptureOutput handling.

Installation

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


    pod "ARDetector"

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

Or you can install it with Carthage:


    github "alexruperez/ARDetector"

Example


    AVCaptureSession *captureSession = AVCaptureSession.new;
    
    AVCaptureVideoDataOutput *videoOutput = AVCaptureVideoDataOutput.new;
    
    [videoOutput setSampleBufferBlock:^(AVCaptureOutput *captureOutput, CMSampleBufferRef sampleBuffer, BOOL dropped, AVCaptureConnection *connection) {
        // DO SOMETHING
    }];
    
    if (videoOutput && [captureSession canAddOutput:videoOutput])
    {
        [captureSession addOutput:videoOutput];
    }
    
    AVCaptureMetadataOutput *metadataOutput = AVCaptureMetadataOutput.new;
    
    [metadataOutput setMetadataObjectsBlock:^(AVCaptureOutput *captureOutput, NSArray *metadataObjects, AVCaptureConnection *connection) {
        // DO SOMETHING
    }];
    
    if (metadataOutput && [captureSession canAddOutput:metadataOutput])
    {
        [captureSession addOutput:metadataOutput];
    }
    
    [metadataOutput detectAllAvailableMetadataObjectTypes];
    
    CIDetector *detector = [CIDetector faceDetectorWithAccuracy:ARDetectorAccuracyHigh tracking:YES minFeatureSize:nil];

Etc.

  • Contributions are very welcome.
  • Attribution is appreciated (let's spread the word!), but not mandatory.

Use it? Love/hate it?

Tweet the author @alexruperez, and check out alexruperez's blog: http://alexruperez.com

License

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100