class_docstr: Container for all keypoints on a single image.
  
  Parameters
  ----------
  keypoints : list of imgaug.augmentables.kps.Keypoint
      List of keypoints on the image.
  
  shape : tuple of int
      The shape of the image on which the objects are placed, i.e. the
      result of ``image.shape``.
      Should include the number of channels, not only height and width.
  
  Examples
  --------
  >>> import numpy as np
  >>> from imgaug.augmentables.kps import Keypoint, KeypointsOnImage
  >>>
  >>> image = np.zeros((70, 70))
  >>> kps = [Keypoint(x=10, y=20), Keypoint(x=34, y=60)]
  >>> kps_oi = KeypointsOnImage(kps, shape=image.shape)
class_docstr_tok: ["Container","for","all","keypoints","on","a","single","image",".","Parameters","--","--","--","--","--","keypoints",":","list","of","imgaug.augmentables.kps.Keypoint","List","of","keypoints","on","the","image",".","shape",":","tuple","of","int","The","shape","of","the","image","on","which","the","objects","are","placed",",","i.e",".","the","result","of","``","image.shape","``",".","Should","include","the","number","of","channels",",","not","only","height","and","width",".","Examples","--","--","--","--",">",">",">","import","numpy","as","np",">",">",">","from","imgaug.augmentables.kps","import","Keypoint",",","KeypointsOnImage",">",">",">",">",">",">","image","=","np.zeros","(","(","70",",","70",")",")",">",">",">","kps","=","[","Keypoint","(","x=10",",","y=20",")",",","Keypoint","(","x=34",",","y=60",")","]",">",">",">","kps_oi","=","KeypointsOnImage","(","kps",",","shape=image.shape",")"]
docstr: Remove all KPs with an out of image fraction of at least `fraction`.
  
  This method exists for consistency with other augmentables, e.g.
  bounding boxes.
  
  Added in 0.4.0.
  
  Parameters
  ----------
  fraction : number
      Minimum out of image fraction that a keypoint has to have in
      order to be removed. Note that any keypoint can only have a
      fraction of either ``1.0`` (is outside) or ``0.0`` (is inside).
      Set this to ``0.0+eps`` to remove all points that are outside of
      the image. Setting this to ``0.0`` will remove all points.
  
  Returns
  -------
  imgaug.augmentables.kps.KeypointsOnImage
      Reduced set of keypoints, with those thathad an out of image
      fraction greater or equal the given one removed.
docstr_tok: ["Remove","all","KPs","with","an","out","of","image","fraction","of","at","least","`","fraction","`",".","This","method","exists","for","consistency","with","other","augmentables",",","e.g",".","bounding","boxes",".","Added","in","0.4.0",".","Parameters","--","--","--","--","--","fraction",":","number","Minimum","out","of","image","fraction","that","a","keypoint","has","to","have","in","order","to","be","removed",".","Note","that","any","keypoint","can","only","have","a","fraction","of","either","``","1.0","``","(","is","outside",")","or","``","0.0","``","(","is","inside",")",".","Set","this","to","``","0.0+eps","``","to","remove","all","points","that","are","outside","of","the","image",".","Setting","this","to","``","0.0","``","will","remove","all","points",".","Returns","--","--","--","-","imgaug.augmentables.kps.KeypointsOnImage","Reduced","set","of","keypoints",",","with","those","thathad","an","out","of","image","fraction","greater","or","equal","the","given","one","removed","."]
code: def remove_out_of_image_fraction(self, fraction):
      """Remove all KPs with an out of image fraction of at least `fraction`.
  
      This method exists for consistency with other augmentables, e.g.
      bounding boxes.
  
      Added in 0.4.0.
  
      Parameters
      ----------
      fraction : number
          Minimum out of image fraction that a keypoint has to have in
          order to be removed. Note that any keypoint can only have a
          fraction of either ``1.0`` (is outside) or ``0.0`` (is inside).
          Set this to ``0.0+eps`` to remove all points that are outside of
          the image. Setting this to ``0.0`` will remove all points.
  
      Returns
      -------
      imgaug.augmentables.kps.KeypointsOnImage
          Reduced set of keypoints, with those thathad an out of image
          fraction greater or equal the given one removed.
  
      """
      return self.deepcopy().remove_out_of_image_fraction_(fraction)
  
imports: from __future__ import print_function, division, absolute_import
  import numpy
  import scipy.spatial.distance
  import six.moves
  from ..None import imgaug
  from .base import IAugmentable
  from .utils import normalize_imglike_shape, project_coords, _remove_out_of_image_fraction_, _handle_on_image_shape
label_desc: Use image node_id 11 for calling the KeypointsOnImage obj's underlying member method code with example usage: obj.remove_out_of_image_fraction(fraction) and returns: self