public abstract class ClassFactory
extends java.lang.Object
ClassFactory provides a means by which various objects in the SDK may be logically
instantiated without exposing their external class identities to user's programs.| Modifier and Type | Class and Description |
|---|---|
protected static class |
ClassFactory.InstanceHolder |
| Constructor and Description |
|---|
ClassFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract TFObjectDetector |
createTFObjectDetector(TFObjectDetector.Parameters parameters,
VuforiaLocalizer vuforiaLocalizer)
createTFObjectDetector returns
an instance of the TensorFlow object detector engine configured with the indicated set of parameters. |
abstract VuforiaLocalizer |
createVuforia(VuforiaLocalizer.Parameters parameters)
createVuforia returns
an instance of the Vuforia localizer engine configured with the indicated set of parameters. |
static VuforiaLocalizer |
createVuforiaLocalizer(VuforiaLocalizer.Parameters parameters)
Deprecated.
Use
createVuforia(VuforiaLocalizer.Parameters) instead |
abstract CameraManager |
getCameraManager()
Returns a
CameraManager which can be used to access the USB webcams
attached to the robot controller. |
static ClassFactory |
getInstance() |
public static ClassFactory getInstance()
public abstract VuforiaLocalizer createVuforia(VuforiaLocalizer.Parameters parameters)
createVuforia returns
an instance of the Vuforia localizer engine configured with the indicated set of parameters.parameters - the parameters used to configure the instance of the engineVuforiaLocalizer,
Orientation,
vuforia.compublic abstract TFObjectDetector createTFObjectDetector(TFObjectDetector.Parameters parameters, VuforiaLocalizer vuforiaLocalizer)
createTFObjectDetector returns
an instance of the TensorFlow object detector engine configured with the indicated set of parameters.parameters - the parameters used to configure the instance of the enginevuforiaLocalizer - the VuforiaLocalizer that will be used to obtain camera framesTFObjectDetectorpublic abstract CameraManager getCameraManager()
CameraManager which can be used to access the USB webcams
attached to the robot controller.CameraManager@Deprecated public static VuforiaLocalizer createVuforiaLocalizer(VuforiaLocalizer.Parameters parameters)
createVuforia(VuforiaLocalizer.Parameters) instead