Stimuli

Image Stimulus

class octopus_sensing.stimuli.image_stimulus.ImageStimulus(id: str, path: str, show_time: int, monitor_no: int = 0)[source]

Bases: octopus_sensing.stimuli.stimulus.Stimulus

Parameters
  • id (str) – The id of stimulus

  • path (str) – The path of image

  • show_time (int) – The time period for displaying the image in seconds

  • monitor_no (int, default: 0) – The ID of monitor for displaying of image. It can be 0, 1, …

show()[source]

If we have a main Gtk window and want to display image in it, we are using this method to display the image. Otherwise we use show_standalone method.

show_standalone()[source]

If we don’t have a Gtk window and want to display it standalone, we are using this method. It may have some miliseconds delay to initialize GTK. If these miliseconds are important, don’t use this method to display image

Video Stimulus

class octopus_sensing.stimuli.video_stimulus.VideoStimulus(id, path)[source]

Bases: octopus_sensing.stimuli.stimulus.Stimulus

Creates video stimulus

Parameters
  • id (str) – The id of stimulus

  • path (str) – The path of video

show()[source]

Displays video stimulus using VLC