Learning To Detect Geometric Structures From Images For 3D Parsing