in src/lambda/detection_function.py [0:0]
def is_compliant(labels): num_person = len(labels['Person']['Instances']) num_helmet = len(labels['Helmet']['Instances']) if num_person <= num_helmet: return True return False