3D real-time pose detection of objects