public static class VuforiaLocalizer.Parameters
extends java.lang.Object
VuforiaLocalizer.Parameters
provides configuration information for instantiating the Vuforia localizerModifier and Type | Class and Description |
---|---|
static class |
VuforiaLocalizer.Parameters.CameraMonitorFeedback
VuforiaLocalizer.Parameters.CameraMonitorFeedback enumerates the kinds of positioning feedback that
may be drawn in the camera monitor window. |
Modifier and Type | Field and Description |
---|---|
android.app.Activity |
activity
The activity in which the localizer is to run.
|
Camera |
camera
If non-null, then this indicates the
Camera to use with Vuforia. |
VuforiaLocalizer.CameraDirection |
cameraDirection
If
camera is null and cameraName is the 'unknown' camera name, then
this value is used to indicate the camera to use with Vuforia. |
VuforiaLocalizer.Parameters.CameraMonitorFeedback |
cameraMonitorFeedback
Indicates the style of camera monitoring feedback to use.
|
int |
cameraMonitorViewIdParent
The resource id of the view within
activity that will be used
as the parent for a live monitor which provides feedback as to what the
camera is seeing. |
android.view.ViewGroup |
cameraMonitorViewParent
The view that will be used as the parent for a live monitor which provides
feedback as to what the the camera is seeing.
|
CameraName |
cameraName
If
camera is non-null, this value is ignored. |
boolean |
fillCameraMonitorViewParent
Controls whether the camera monitor should entirely fill the camera monitor view parent
or not.
|
double |
maxWebcamAspectRatio
Controls the aspect ratios used with webcams.
|
double |
minWebcamAspectRatio
Controls the aspect ratios used with webcams.
|
int |
secondsUsbPermissionTimeout
How long to wait for USB permissions when connecting to a webcam.
|
boolean |
useExtendedTracking
Indicates whether to use Vuforia's extended tracking mode.
|
java.lang.String |
vuforiaLicenseKey
The license key with which to use Vuforia.
|
java.io.File[] |
webcamCalibrationFiles
Camera calibrations resident in files instead of resources.
|
int[] |
webcamCalibrationResources
The resources (if any, may be empty or null) used to provide additional camera calibration data for
webcams used with Vuforia.
|
Constructor and Description |
---|
Parameters() |
Parameters(int cameraMonitorViewIdParent) |
Modifier and Type | Method and Description |
---|---|
void |
addWebcamCalibrationFile(java.io.File file) |
void |
addWebcamCalibrationFile(java.lang.String name) |
public java.lang.String vuforiaLicenseKey
VuforiaLocalizer.Parameters
instance with which you initialize Vuforia.public Camera camera
Camera
to use with Vuforia. Otherwise,
the camera is determined using cameraName
and cameraDirection
.cameraName
,
cameraDirection
public CameraName cameraName
camera
is non-null, this value is ignored.
Otherwise, if this value is neither null nor the 'unknown' camera name, the it indicates
the name of the camera to use with Vuforia. It will be opened as needed.
Otherwise, if this value is the 'unknown' camera name, then this value is ignored and
cameraDirection
is used to indicate the camera.
Otherwise, this value is null, and an error has occurred.camera
,
cameraDirection
public VuforiaLocalizer.CameraDirection cameraDirection
camera
is null and cameraName
is the 'unknown' camera name, then
this value is used to indicate the camera to use with Vuforia. Note that this value
can only indicate the use of built-in cameras found on a phone.camera
,
cameraName
public boolean useExtendedTracking
public VuforiaLocalizer.Parameters.CameraMonitorFeedback cameraMonitorFeedback
None
indicates
that the camera monitoring is to be provided, but no feedback is to be drawn thereon.public int cameraMonitorViewIdParent
activity
that will be used
as the parent for a live monitor which provides feedback as to what the
camera is seeing. If both cameraMonitorViewIdParent
and cameraMonitorViewParent
are specified, cameraMonitorViewParent
is used and cameraMonitorViewIdParent
is ignored. Optional: if no view monitor parent is indicated, then no camera
monitoring is provided. The default is zero, which does not indicate a view parent.public android.view.ViewGroup cameraMonitorViewParent
cameraMonitorViewIdParent
and cameraMonitorViewParent
are specified, cameraMonitorViewParent
is used
and cameraMonitorViewIdParent
is ignored. Optional: if no view monitor parent is
indicated, then no camera monitoring is provided. The default is null.public boolean fillCameraMonitorViewParent
cameraMonitorViewIdParent
,
cameraMonitorViewParent
public android.app.Activity activity
public int[] webcamCalibrationResources
webcamCalibrationFiles
public java.io.File[] webcamCalibrationFiles
webcamCalibrationResources
public double maxWebcamAspectRatio
minWebcamAspectRatio
public double minWebcamAspectRatio
maxWebcamAspectRatio
public int secondsUsbPermissionTimeout