parameters: (self, image)
return_statement: return detection
docstring: Load image detection if it exists, otherwise return None.
docstring_summary: Load image detection if it exists, otherwise return None.
docstring_tokens: Load image detection if it exists otherwise return None .
function: def load_detection(self, image):
          """Load image detection if it exists, otherwise return None."""
          detection_file = self._detection_file(image)
          if os.path.isfile(detection_file):
              detection = io.imread(detection_file, grayscale=True)
          else:
              detection = None
          return detection
function_tokens: def load_detection ( self , image ) : detection_file = self . _detection_file ( image ) if os . path . isfile ( detection_file ) : detection = io . imread ( detection_file , grayscale = True ) else : detection = None return detection