getting points from detectPoints