Constant

const.DEPTH_HOLE_VALUE = 2047

Depth holes in openfreenect have maximum value in 11 bit

const.BG_OPEN_KSIZE = 7

Structuring element size used to apply opening

const.BG_RUN_AVG_LRATE = 0.001

Learning rate for running average in depth processing

const.BG_MASK_THRESHOLD = 3

Minimum threshold to consider a pixel foreground in running average e.g. \(|pixel - average(pixel)| \ge BG\_MASK\_THRESHOLD\)

const.BG_ZIV_LONG_LRATE = 0.0005

Background learning rate in Zivkovich method for long background model

const.BG_ZIV_SHORT_LRATE = 0.02

Background learning rate in Zivkovich method for short background model

const.BG_ZIV_HIST = 1

History for Zivkovick background method

const.BG_ZIV_LONG_THRESH = 900

Threshold for Zivkovich method for long background model

const.BG_ZIV_SHORT_THRESH = 200

Threshold for Zivkovich method for short background model

const.AGG_RGB_MAX_E = 15

number of frames after which a pixel is considered an left item in rgb domain

const.AGG_RGB_PENALTY = 7

penalty in the accumulator for a pixel not in current foreground in rgb domain

const.AGG_DEPTH_MAX_E = 30

number of frames after which a pixel is considered an left item in depth domain

const.AGG_DEPTH_PENALTY = 20

penalty in the accumulator for a pixel not in current foreground in depth domain

const.AGG_DEPTH_BBOX = 5

accumulator threshold for RECT_MATCHING/RECT_MATCHING2 in depth detection

const.BBOX_MIN_AREA = 70

minimum area in pixel to create a bounding box

const.DISPLAY_TYPE = 'PYGAME'

Default display type: can be PYGAME or SIMPLECV

const.IMAGE_SHAPE = (640, 480)

Default image size retrieved from kinect

const.PYGAME_LAYOUT = 4

number of images to show in the output can be 2 or 4

const.SHOW_FPS = True

shows fps

const.ENABLE_PROFILING = False

get profiling info for the first 100 frames