fixed perpendicular check in COG detector
new learned params