scene

scene

factory scene

Specifies the visual scene analysis high-level functions.

  • These functions are accessible via the tabletop:: prefix.

Methods

(static) getView(with_spotopt)

Grabs an image from the raspicam.

  • Applies white-balance on the image
  • Rectifies the image given the predefined parameters and horizontal shifts.
Parameters:
Name Type Attributes Default Description
with_spot bool <optional>
false
  • If true, waits untill something has been changed in the scene.
  • If false, returns immediatly.
Returns:

A reference to the grabbed image, with the parsed information in the "room" section of the image meta-data.

(static) setViewShift(room)

Adjusts the horizontal shift, between the reference image and the present view.

Parameters:
Name Type Description
room unit

The room number 1,2,3 or 4.

  • The room reference image and rectangular zone to take intoaccount is defined in the parameters.json file.
Returns:

A reference to the grabbed image cropped zone, with the processing information.

(static) getScene(roomopt, with_event_detectionopt)

Grabs and parses an image from the raspicam.

Parameters:
Name Type Attributes Default Description
room uint <optional>
0

Parses the image considering being in the room of number 1 to 4.

with_event_detection bool <optional>
false
  • If true, waits untill something has been changed in the scene.
  • If false, returns immediatly.
Returns:

A reference to the grabbed image, with the parsed information in the "room" section of the image meta-data.