camera module

camera.idle(timeFaceFound)

[Method that calculates the time difference in seconds, between this moment in time and last time a face was detected.]

Parameters

timeFaceFound ([float]) – [Last time a face a detected by the camera]

Returns

[Time difference in seconds, since now and the last time a face was detected by the camera]

Return type

[float]

camera.start(user: str, faceFound: bool, timeFaceFound: float, delay: float, runCamera: bool)

[This process controls the camera, and informs the main Coordinator process if a face detected, since when the camera did not detect a face and if the user in front of the camera is registered or not]

Parameters
  • user (str) – [The name of the user in front of the camera (user == ‘stranger’ if the user is not registered on the device)]

  • faceFound (bool) –

    • True -> a face is detected by the camera

    • False -> no face is detected by the camera

  • timeFaceFound (float) – [Last time a face was detected by the camera]

  • delay (float) – [How many seconds ago a face was detected by the camera]

  • runCamera (bool) –

    • True -> the camera is running from this process

    • False -> the camera runs from another process