fixed object orientation

detection of several objects at the same time
check whether n_points is 0 no ?