in spark_scripts/detect_scenes.py [0:0]
def people_in_scenes(row):
num_people_in_scene = 0
objects = row["objects_in_lane"]
if objects is not None:
for obj in objects:
if obj['Class'] == 'person':
num_people_in_scene += 1
row['num_people_in_scene'] = num_people_in_scene
return row