Scene Understanding And Gesture Recognition For Human-Machine Interaction