public class
CameraConfig
Provides details of a camera configuration such as size of the CPU image and GPU texture.
Nested Classes
enum
|
CameraConfig.DepthSensorUsage |
Depth sensor usage. | |
enum
|
CameraConfig.FacingDirection |
Describes the direction a camera looks relative to the device. | |
enum
|
CameraConfig.StereoCameraUsage |
Stereo camera usage. | |
enum
|
CameraConfig.TargetFps |
Target camera capture frame rates. |
Public Methods
String
|
getCameraId()
Gets the camera identifier associated with this config.
|
CameraConfig.DepthSensorUsage
|
getDepthSensorUsage()
Obtains the depth sensor usage for the current camera config.
|
CameraConfig.FacingDirection
|
getFacingDirection()
Returns the direction a camera is facing relative to the device.
|
Range<Integer>
|
getFpsRange()
Obtains the minimum and maximum camera capture rate in frames per second (fps) for the current
camera config.
|
Size
|
getImageSize()
Gets the dimensions of the image frames for processing that are sent on CPU stream.
|
CameraConfig.StereoCameraUsage
|
getStereoCameraUsage()
Obtains the stereo multi-camera usage for the
current camera config.
|
Size
|
getTextureSize()
Gets the dimensions of the image frames for texture that are sent on GPU stream.
|
Inherited Methods
Public Methods
public String getCameraId ()
getCameraId
public String getCameraId()
Gets the camera identifier associated with this config. This camera ID is the same ID as
returned by Camera2 CameraManager.getCameraIdList()
.
public CameraConfig.DepthSensorUsage getDepthSensorUsage ()
getDepthSensorUsage
public CameraConfig.DepthSensorUsage getDepthSensorUsage()
Obtains the depth sensor usage for the current camera config.
public CameraConfig.FacingDirection getFacingDirection ()
getFacingDirection
public CameraConfig.FacingDirection getFacingDirection()
Returns the direction a camera is facing relative to the device.
public Range<Integer> getFpsRange ()
getFpsRange
public Range<Integer> getFpsRange()
Obtains the minimum and maximum camera capture rate in frames per second (fps) for the current camera config. Actual capture frame rate will vary within this range, depending on current lighting conditions. Frame rates will generally be lower under poor lighting conditions due to longer exposure times.
public Size getImageSize ()
getImageSize
public Size getImageSize()
Gets the dimensions of the image frames for processing that are sent on CPU stream.
public CameraConfig.StereoCameraUsage getStereoCameraUsage ()
getStereoCameraUsage
public CameraConfig.StereoCameraUsage getStereoCameraUsage()
Obtains the stereo multi-camera usage for the current camera config.
public Size getTextureSize ()
getTextureSize
public Size getTextureSize()
Gets the dimensions of the image frames for texture that are sent on GPU stream.