fixed object orientation

detection of several objects at the same time
centroid /= pts.size(); does not work ?