Deep Learning for Object Relationships: Applications to Road Safety and Bin Picking