Perception of the environment
- class experience_recorder.perceptions.perceptions.Perceptions(global_configuration, tasks_configuration)
Class that contains the different possibilities of perceptions in the form of methods.
- Parameters:
tasks_configuration (
dict
) – Previously loaded .yaml file for tasks configuration.
- read(sense)
Search the latest state and returns the text after aplying OCR.
- Parameters:
sense (
str
) – name of the sense- Returns:
text – The text contained in the latest state image.
- Return type:
PIL.Iamage
- search_state(sense)
Search the latest state in the buffer and opens it as an image. This could be improved through a more formal buffer using indexes.
- Parameters:
sense (
str
) – name of the sense
- watch(sense)
Search the latest state and returns it without modifications.
- Parameters:
sense (
str
) – name of the sense- Returns:
image – The image of the latest state.
- Return type:
PIL.Iamage