ARDetector 0.1.2

ARDetector 0.1.2

LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2015

Maintained by alexruperez.

Dependency Status Analytics


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


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.


    AVCaptureSession *captureSession =;

    AVCaptureVideoDataOutput *videoOutput =;

    [videoOutput setSampleBufferBlock:^(AVCaptureOutput *captureOutput, CMSampleBufferRef sampleBuffer, BOOL dropped, AVCaptureConnection *connection) {
        // DO SOMETHING

    if (videoOutput && [captureSession canAddOutput:videoOutput])
        [captureSession addOutput:videoOutput];

    AVCaptureMetadataOutput *metadataOutput =;

    [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];


  • 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:


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