
Focus (Zoom + Crop)
python
@perceive(model="perceptron-mk1.5", max_tokens=4096, expects="box", tools=True)
def detect_ppe(frame_path: str):
return (
image(frame_path)
+ text(
"Detect and localize the following PPE: helmets, gloves, closed-toe shoes, and protective eyewear. "
"For each item, identify all instances with bounding boxes. "
"If any required PPE is missing for any person, alert me and specify exactly which items are missing."
)
)
detect_ppe("construction_site.png")@perceive(model="perceptron-mk1.5", max_tokens=4096, expects="box", tools=True)
def detect_ppe(frame_path: str):
return (
image(frame_path)
+ text(
"Detect and localize the following PPE: helmets, gloves, closed-toe shoes, and protective eyewear. "
"For each item, identify all instances with bounding boxes. "
"If any required PPE is missing for any person, alert me and specify exactly which items are missing."
)
)
detect_ppe("construction_site.png")







