GMVMultiDetectorDataOutput Class


GMVMultiDetectorDataOutput Class Reference

Overview

A concrete subclass of GMVDataOutput.

GMVMultiDetectorDataOutput allows clients to specify multiple detectors in initialization. When receiving frames from the video pipeline, all the detectoros will run detection separately on each frame. The detection results are delivered through its multiDetectorDataDelegate.

Inherits GMVDataOutput.

Instance Method Summary

(instancetype) - initWithDetectors:
 Designated initializer. More...
 
(instancetype) - initWithDetector:
 Designated initializer. More...
 
(void) - receivedResults:
 Subclasses need to override these methods. More...
 
(void) - cleanup
 Clean up resources. More...
 

Property Summary

id
< GMVMultiDetectorDataOutputDelegate
multiDetectorDataDelegate
 Methods of the protocol allow the delegate to perform post processing on detected features. More...
 
id< GMVDataOutputDelegatedataDelegate
 Data source information delegate. More...
 
AVCaptureDevicePosition captureDevicePosition
 Sets the camera device position to help calculate image rotation. More...
 
CGSize previewFrameSize
 The video frame preview size. More...
 
NSUInteger maxFrameGap
 The maximum allowable frames must pass without detecting a specific feature before delegate is notified the feature is no longer available. More...
 

Method Detail

- (instancetype) initWithDetectors: (NSArray< GMVDetector * > *)  NS_DESIGNATED_INITIALIZER

Designated initializer.

Parameters
detectorsThe detectors associated to the data output. detectors is expected to be non-empty.
- (instancetype) initWithDetector: (GMVDetector *)  NS_DESIGNATED_INITIALIZER

Designated initializer.

Parameters
detectoruse to run detection.
- (void) receivedResults: (NSArray< __kindof GMVFeature * > *)  results

Subclasses need to override these methods.

Detected GMVFeature results.

Parameters
resultsThe full detection results.
- (void) cleanup

Clean up resources.

Property Detail

- (id<GMVMultiDetectorDataOutputDelegate>) multiDetectorDataDelegate
readwritenonatomicweak

Methods of the protocol allow the delegate to perform post processing on detected features.

The GMVOutputTrackerDelegate object returned by this delegate is retained strongly. Call -cleanup to properly release internal variables.

- (id<GMVDataOutputDelegate>) dataDelegate
readwritenonatomicweakinherited

Data source information delegate.

- (AVCaptureDevicePosition) captureDevicePosition
readwritenonatomicassigninherited

Sets the camera device position to help calculate image rotation.

If not provided, it will try to retrieve position info through AVCaptureConnection.

- (CGSize) previewFrameSize
readnonatomicassigninherited

The video frame preview size.

The value is used to normalize display properties.

- (NSUInteger) maxFrameGap
readwritenonatomicassigninherited

The maximum allowable frames must pass without detecting a specific feature before delegate is notified the feature is no longer available.

The value is default to 3.