1. A method, comprising: receiving depth data and infrared (IR) data from a depth sensor; performing a first background subtraction on the IR data to create a first mask; performing a second background subtraction on the IR data to create a second mask; merging the first and second masks and the depth data to create a third mask; detecting an object using the third mask.