parameters: (self)
return_statement: return result
docstring: Check ground truth and hypotheses for containing width, height, x and y
docstring_summary: Check ground truth and hypotheses for containing width, height, x and y
docstring_tokens: Check ground truth and hypotheses for containing width height x and y
function: def checkForCompleteness(self):
          """Check ground truth and hypotheses for containing width, height, x and y"""
  
          result = True
          expectedKeys = ("x", "y", "width", "height")
  
          for f in self.groundtruth_["frames"]:
              for g in f["annotations"]:
                  for key in expectedKeys:
                      if not key in g.keys():
                          write_stderr_red("Warning:", "Groundtruth without key %s found, timestamp %f, frame %d!" % (key, f["timestamp"], f["num"] if "num" in f else -1))
                          result &= False
  
          # Hypotheses without ids or with empty ids
          for f in self.hypotheses_["frames"]:
              for h in f["hypotheses"]:
                  for key in expectedKeys:
                      if not key in h.keys():
                          write_stderr_red("Warning:", "Hypothesis without key %s found, timestamp %f, frame %d!" % (key, f["timestamp"], f["num"] if "num" in f else -1))
                          result &= False
  
          return result
function_tokens: def checkForCompleteness ( self ) : result = True expectedKeys = ( "x" , "y" , "width" , "height" ) for f in self . groundtruth_ [ "frames" ] : for g in f [ "annotations" ] : for key in expectedKeys : if not key in g . keys ( ) : write_stderr_red ( "Warning:" , "Groundtruth without key %s found, timestamp %f, frame %d!" % ( key , f [ "timestamp" ] , f [ "num" ] if "num" in f else - 1 ) ) result &= False # Hypotheses without ids or with empty ids for f in self . hypotheses_ [ "frames" ] : for h in f [ "hypotheses" ] : for key in expectedKeys : if not key in h . keys ( ) : write_stderr_red ( "Warning:" , "Hypothesis without key %s found, timestamp %f, frame %d!" % ( key , f [ "timestamp" ] , f [ "num" ] if "num" in f else - 1 ) ) result &= False return result