I have used below tutorial to detect object and get coordinates of rectangles that contain object https://docs.opencv.org/3.3.1/d2/d99/tutorial_js_face_detection.html
But I want to get all coordinates of object (not vector of rectangular coordinates) for object extraction.How can I do that?Is there any function can do that?