Misty Lessons
  • Misty Lessons
    • 📖Welcome to Misty Lessons
    • 📚Get to know your Misty
    • 📲Connect to Misty
    • 👩‍💻Misty Studio
    • 🖥️Desktop Environment
    • ⬆️Update your Misty
    • 👥Projects
  • Blockly
    • 🧩Blockly Lessons
      • 🤸Lesson 1: Movement
      • 🎶Lesson 2: Voice and Sound
      • 🎭Lesson 3: Expressions
      • 🎥Lesson 4: Robot Cinema
      • 🛠️Lesson 5: Events
      • ☺️Lesson 6: Face recognition
      • 🔢Lesson 7: Variables and Functions
      • 💬Lesson 8: NLP
    • 🏫Blockly projects
  • Blockly Elements
    • ⚛️Misty Blocks
      • Movement
      • Speech
      • Audio
      • Vision
      • Events
      • Miscellaneous
      • NLP
      • System
    • 🔁Basic Blocks
      • Logic
      • Loops
      • Math
      • Text
      • Lists
    • 🅰️Advanced Blocks
      • Variables
      • Functions
  • Python
    • 🐍Python Lessons
      • 🦿Lesson 1: Loco-motion
      • 🤖Lesson 2 : Build a character
      • 🧠Lesson 3: Create memories
      • ⚒️Lesson 4: Event skills
      • 👀Lesson 5: Expand awareness
      • 🔗Lesson 6: Compact code
      • 🗣️Lesson 7: Start a conversation
  • Python Elements
    • 🐸Misty Python API
      • Motion and Mobility
      • Display and LED
      • Record Assets
      • Change/Remove Assets
      • Stream Assets
      • Get Assets
      • Events
      • Sensor Events
      • Speech and NLP
      • Arduino Backpack
      • System
      • Slam
    • 📗Python Definitions
  • Python Projects
    • 🔮MistyGPT
    • 🚨Misty Intruder Alert
    • 📺Conference Assistant
    • 🏷️QR code detector
    • 🕵️‍♂️Misty follow human
    • 👋Misty wave back
    • 🖲️Misty OA
    • 🌐Get weather
    • 🚚Misty Delivery
    • 🫂Motivational Misty
    • 🖼️Misty Museum Guide
    • 🎃Who for Halloween
  • ARDUINO
    • ♾️Arduino Backpack
    • 🦎Arduino
    • 🔧Arduino Lessons
      • 🔌Arduino to Misty
      • ➕Misty to Arduino
  • ARDUINO PROJECTS
    • 🛠️Misty Tracker
    • 🦾Misty Arm
  • Community Projects
    • 🌤️Misty weather forecaster
  • HARDWARE EXTENSION
    • ⚙️Arduino breadboard support
    • 🦾Misty arm
    • 🥤Tin holder
  • Resource Database
    • 📁Image files
    • 📁Audio files
    • 📁Languages
    • 📁Known objects
    • 📁NLP Actions
    • 📁Action Commands
    • 📁ChatGPT PDF files
    • 📁AR Tag Dictionary
    • ⚙️Technical Specifications
Powered by GitBook
On this page
  • RenameVideoRecording
  • DeleteAudio
  • DeleteImage
  • DeleteVideo
  • DeleteVideoRecording
  • ForgetFaces
  1. Python Elements
  2. Misty Python API

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

misty.rename_video_recording("myhomevideo","partyvideo")

Parameters

misty.rename_video_recording(self, oldName : str = None, newName : str = None)
  • 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

misty.delete_audio(self, fileName : str = None) -> Response:
  • 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

misty.delete_image("mybaddimage.png")

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.

misty.delete_image(self, fileName : str = None) -> Response:

DeleteVideo

Deletes a user-uploaded video file from Misty's storage.

Example Code

misty.delete_video("myvideo.mp4")

Parameters

misty.delete_video(self, fileName : str = None) -> Response:
  • FileName (string) - The name of the video file to delete, with the file type extension.

DeleteVideoRecording

Deletes a video recording.

Example Code

misty.delete_video_recording("myhomevideo.mp4")

Parameters

  • Name (string) - The filename of the video to delete. Does not include the filetype extension.

misty.delete_video_recording(self, name : str = None) -> Response:

ForgetFaces

Removes records of trained faces from Misty's memory.

Example Code

misty.forget_faces("12142")

Parameters

misty.forget_faces(self, faceId : str = None)
  • 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 1 year ago

Note: This command only deletes user-uploaded video assets. To delete a video recording that Misty has created, you must use the command.

Note: This command only deletes video recordings that Misty has created. To delete a user-uploaded video asset, you must use the command.

🐸
DeleteVideoRecording
DeleteVideo