Package 

Class Keypoints


  • 
    public final class Keypoints
    
                        

    A collection of Keypoint with additional structural data contained in edges and other helper methods.

    • Method Detail

      • getEdges

         final List<List<Integer>> getEdges()

        Information about keypoint skeleton (lines connecting keypoints). A useful visual construct.

        edges contains list of indices. E.g. if

        edge = [[0,4],[2,1]]

        Then keypoint at 0th index and 4th index is to be connected by a line. Same goes for keypoint at index 2 and index 1.

        See [https://cocodataset.org/#format-data] for further info

      • setEdges

         final Unit setEdges(List<List<Integer>> edges)

        Information about keypoint skeleton (lines connecting keypoints). A useful visual construct.

        edges contains list of indices. E.g. if

        edge = [[0,4],[2,1]]

        Then keypoint at 0th index and 4th index is to be connected by a line. Same goes for keypoint at index 2 and index 1.

        See [https://cocodataset.org/#format-data] for further info

      • map

         final Unit map(Matrix matrix)

        inplace map a matrix to all the x,y coordinates of the keypoints. This is useful when you need to draw over a canvas.