Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static class

# MultiProcessor.Builder

extends Object

java.lang.Object
↳ | com.google.android.gms.vision.MultiProcessor.Builder<T>

## Class Overview

Builder for creating a multiprocessor instance.

## Summary

Public Constructors
| MultiProcessor.Builder(Factory<T> factory) Creates a multi-processor builder with the associated factory.

Public Methods
MultiProcessor<T> | build() Builds the multiprocessor instance.
Builder<T> | setMaxGapFrames(int maxGapFrames) Sets the maximum allowable gap for inferring whether a detected item will never be seen again in the series of frames that are being processed by the detector.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Constructors

#### public MultiProcessor.Builder (Factory<T> factory)

Creates a multi-processor builder with the associated factory.

##### Parameters

factory | creates an instance of a tracker for each distinct detected item

## Public Methods

#### public MultiProcessor<T> build ()

Builds the multiprocessor instance.

#### public Builder<T> setMaxGapFrames (int maxGapFrames)

Sets the maximum allowable gap for inferring whether a detected item will never be seen again in the series of frames that are being processed by the detector. Default: 3

In video, an item may temporarily be undetectable in certain intermediate frames due to blurring associated with sudden camera movement or sudden extreme changes in lighting. This setting adds a tolerance, allowing a tracker to continue to exist during these temporary conditions.

##### Parameters

maxGapFrames | tolerance, measured in number of frames received, for determining when a tracked item is no longer visible