Change/Remove Assets
Here you can find a set of API calls to change the name of your assets and remove them if need be.
RenameVideoRecording
Renames an existing video recording.
Note: This command only renames a video recording that Misty has created. You cannot use this command to rename a user-uploaded video file.
Example Code
Parameters
OldName (string) - The current (old) filename of the video recording to rename, without the file type extension.
NewName (string) - The new filename to associate with the video recording, without the file type extension. The name of a video recording can only include uppercase and lowercase alphanumeric characters, hyphens, and underscores (
[a-zA-Z0-9_-]
). Do not supply a file type extension; the system automatically uses the.mp4
extension for Misty's video recordings.
DeleteAudio
Deletes audio files on your Misty
Example Code
misty.delete_audio("examplesong.wav")
Parameters
FileName (string) - The name of the file to delete, including its file type extension.
DeleteImage
Deletes an image file from Misty's local storage.
Example Code
Note: This command cannot delete Misty's default image files.
Parameters
FileName (string) - The name of the file to delete, including its file type extension.
DeleteVideo
Deletes a user-uploaded video file from Misty's storage.
Example Code
Note: This command only deletes user-uploaded video assets. To delete a video recording that Misty has created, you must use the DeleteVideoRecording
command.
Parameters
FileName (string) - The name of the video file to delete, with the file type extension.
DeleteVideoRecording
Deletes a video recording.
Note: This command only deletes video recordings that Misty has created. To delete a user-uploaded video asset, you must use the DeleteVideo
command.
Example Code
Parameters
Name (string) - The filename of the video to delete. Does not include the filetype extension.
ForgetFaces
Removes records of trained faces from Misty's memory.
Example Code
Parameters
FaceId (string) - Optional. The ID of the face to remove. If you do not pass in a value for this parameter, clears all trained faces from Misty's memory.
Last updated