AssetPlaybackDatasetLoader
↳ extends PlaybackDatasetLoader
Declaration
class AssetPlaybackDatasetLoaderSummary
Loads playback dataset data from the app's [Context.getAssets] directory.
Use a subdirectory that contains a capture JSON file and the frame images (and optional depth files).
Example: place a dataset in src/main/assets/playback/my_capture/ with
capture.json, frame_00000000.jpg, etc. Then use
AssetPlaybackDatasetLoader(context, "playback/my_capture").
Constructors
constructor(context: Context, assetSubdirectory: String, captureJsonName: String = PlaybackDatasetConstants.CAPTURE_JSON_FULL_NAME)
Parameters
| Name | Type | Summary |
|---|---|---|
| context | Context | Used to access [android.content.res.AssetManager]. |
| assetSubdirectory | String | Path under assets (e.g. "playback/dataset1") containing the dataset. |
| captureJsonName | String | Filename of the capture JSON file; defaults to [PlaybackDatasetConstants.CAPTURE_JSON_FULL_NAME]. |
Functions
| Name | Type | Summary |
|---|---|---|
| info | String | - |
| loadCaptureJson | ByteArray? | - |
| loadDepthConfidence | ByteArray? | - |
| loadDepthData | ByteArray? | - |
| loadImage | ByteArray? | - |