DocsSafety Helmet & Vest (K3) AI API
Safety Helmet & Vest (K3) AI API
AI-powered Personal Protective Equipment (PPE) compliance detection. Identifies workers, safety hardhats, and safety vests in real-time with visual annotated bounding boxes.
POST
http://178.105.157.85:3000/api/ocr?type=SAFETY_K3Request Example
cURL
curl -X POST \
"http://178.105.157.85:3000/api/ocr?type=SAFETY_K3" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: multipart/form-data" \
-F "image=@/path/to/document.jpg"Authentication Header
Authorization: Bearer YOUR_API_KEY
Generate an API key from your Dashboard → API Keys panel. For testing server/sandbox local environments, key verification is bypassed.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
image | File | Yes | Worker / construction site photo (JPG, PNG, WebP) |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | String | Yes | Bearer YOUR_API_KEY (Optional for local sandbox) |
Content-Type | String | Yes | multipart/form-data |
Response Example
JSON
{
"success": true,
"overall_status": "COMPLIANT",
"total_persons": 1,
"compliant_count": 1,
"violation_count": 0,
"violations_summary": [],
"detections": [
{
"person_id": 1,
"confidence": 91.2,
"box": [120, 80, 480, 720],
"helmet_detected": true,
"helmet_confidence": 94.5,
"vest_detected": true,
"vest_confidence": 92.1,
"status": "COMPLIANT",
"violations": []
}
],
"annotated_image": "/9j/4AAQSkZJRgABAQAAAQABAAD...",
"process_time_ms": 284.15,
"timestamp": "2026-08-27T21:40:00.000Z"
}Rate Limit
Depending on your plan. Check your dashboard for current limits.