Skip to content

basic_bot.commons.vision_client

Utility functions for interacting with the vision service REST_API.

send_record_video_request

def send_record_video_request(duration: float) -> requests.Response

Send a request to the vision service to start recording video.

fetch_recorded_videos

def fetch_recorded_videos() -> requests.Response

Send a request to the vision service to retrieve a list of recorded videos.

The resonse.json() will be a list of strings, each string is a base filename that can be appended with ".mp4" or ".jpg" to get the video or thumbnail image.

fetch_recorded_video

def fetch_recorded_video(file_name: str) -> requests.Response

Send a request to the vision service to retrieve a list of recorded videos.

The file_name should be appended with ".mp4" or ".jpg" to get the video or thumbnail image.