-
public final class Keypoints
-
-
Method Summary
Modifier and Type Method Description final List<List<Integer>>getEdges()Information about keypoint skeleton (lines connecting keypoints). final UnitsetEdges(List<List<Integer>> edges)Information about keypoint skeleton (lines connecting keypoints). final UnitaddKeypoint(Number x, Number y, Float confidence, String name)final UnitresizeWithPad(Integer width, Integer height)final Unitmap(Matrix matrix)inplace map a matrix to all the x,y coordinates of the keypoints. -
-
Constructor Detail
-
Keypoints
Keypoints()
-
Keypoints
Keypoints(Collection<Keypoint> keypoints)
-
Keypoints
Keypoints(Integer size)
-
Keypoints
Keypoints(Keypoints keypoints)
-
-
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
-
resizeWithPad
final Unit resizeWithPad(Integer width, Integer height)
-
-
-
-