darcyai.perceptor.people_perceptor_pom

PeoplePOM Objects

class PeoplePOM(Serializable)

People perceptor object model

set_annotated_frame

def set_annotated_frame(frame)

Stores the frame annotated with the persons data

Arguments

  • frame (np.array): The annotated frame

set_raw_frame

def set_raw_frame(frame)

Stores the frame with the people data

Arguments

  • frame (np.array): The raw frame

set_people

def set_people(people)

Stores the detected people

Arguments

  • people (list): The detected people

annotatedFrame

def annotatedFrame()

Returns the annotated frame

Returns

np.array: The annotated frame

rawFrame

def rawFrame()

Returns the raw frame

Returns

np.array: The raw frame

peopleCount

def peopleCount()

Returns the number of people detected

Returns

int: The number of people detected

personInFront

def personInFront()

Returns the person in front of the camera

Returns

The person in front of the camera

people

def people()

Returns the detected people

Returns

list: The detected people

person

def person(person_id)

Returns the person with the given id

Arguments

  • person_id (str): The person id

Returns

dict: The person

faceImage

def faceImage(person_id)

Returns the face image of the person with the given id

Arguments

  • person_id (str): The person id

Returns

np.array: The face image

bodyImage

def bodyImage(person_id)

Returns the body image of the person with the given id

Arguments

  • person_id (str): The person id

Returns

np.array: The body image

personImage

def personImage(person_id)

Returns the image of the person with the given id

Arguments

  • person_id (str): The person id

Returns

np.array: The person image

faceSize

def faceSize(person_id)

Returns the size of the face of the person with the given id

Arguments

  • person_id (str): The person id

Returns

int: The size of the face

bodySize

def bodySize(person_id)

Returns the size of the body of the person with the given id

Arguments

  • person_id (str): The person id

Returns

int: The size of the body

wholeSize

def wholeSize(person_id)

Returns the size of the whole person with the given id

Arguments

  • person_id (str): The person id

Returns

int: The size of the whole person

bodyPose

def bodyPose(person_id)

Returns the PoseNet data of the person with the given id

Arguments

  • person_id (str): The person id

Returns

The PoseNet data

bodyPoseHistory

def bodyPoseHistory(person_id)

Returns the PoseNet data history of the person with the given id

Arguments

  • person_id (str): The person id

Returns

The PoseNet data

travelPath

def travelPath(person_id)

Returns the travel path of the person with the given id

Arguments

  • person_id (str): The person id

Returns

The travel path

timeInView

def timeInView(person_id)

Returns the time the person with the given id has been in view

Arguments

  • person_id (str): The person id

Returns

int: The time in view

recentlyDepartedPeople

def recentlyDepartedPeople()

Returns the people that have recently departed

Returns

list: The people that have recently departed

occludedPeople

def occludedPeople()

Returns the people that are occluded

Returns

list: The people that are occluded

serialize

def serialize()

Returns the serialized data of the object

Returns

dict: The serialized data