def getRects(self):
        if self._rect_type == BOUNDING_RECTS:
            return self.getBoundingRects()
        
        elif self._rect_type == STANDARDIZED_RECTS:
            return self.getStandardizedRects()
        
        else:
            raise ValueError("Unknown rect type: "+self._rect_type)
Converts bytes to a string value, if necessary.
dataset/ETHPy150Open bolme/pyvision/src/pyvision/surveillance/MotionDetector.py/MotionDetector.getRects--crossover with--dataset/ETHPy150Open google/oauth2client/oauth2client/_helpers.py/_from_bytes