original_docstring: Get geometric center of all keypoints
docstring: Get geometric center of all keypoints
docstring_tokens: Get geometric center of all keypoints
code: def _get_keypoints_center_count(self, keypoints):
          """Get geometric center of all keypoints"""
          keypoint_x = np.sum(keypoints[:, 0, 0] * (keypoints[:, 0, 1] > 0))
          keypoint_y = np.sum(keypoints[:, 1, 0] * (keypoints[:, 1, 1] > 0))
          num = float(np.sum(keypoints[:, 0, 1]))
          return np.array([keypoint_x / num, keypoint_y / num]), num
code_tokens: def _get_keypoints_center_count ( self , keypoints ) : keypoint_x = np . sum ( keypoints [ : , 0 , 0 ] * ( keypoints [ : , 0 , 1 ] > 0 ) ) keypoint_y = np . sum ( keypoints [ : , 1 , 0 ] * ( keypoints [ : , 1 , 1 ] > 0 ) ) num = float ( np . sum ( keypoints [ : , 0 , 1 ] ) ) return np . array ( [ keypoint_x / num , keypoint_y / num ] ) , num
short_docstring: Get geometric center of all keypoints
short_docstring_tokens: Get geometric center of all keypoints
comment: """Get geometric center of all keypoints"""