File size: 4,602 Bytes
cb3c674
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# Quick Start: Screenshot Capture for Unusual Activity

## How It Works (3 Simple Steps)

### Step 1: Start Live Camera Monitoring

1. Go to **Live Camera** page
2. Select your camera from the dropdown (USB camera must be connected)
3. Check the detection models you want to use:
   - โœ“ Weapon Detection (guns/knives)
   - โœ“ Violence Detection (fighting, aggression)
   - โœ“ Anomaly Detection (unusual behavior)
   - โœ“ Pose Detection (unsafe positions)
4. Click **"Start Camera"** button

### Step 2: Monitor in Real-Time

- The live feed appears with AI analysis
- Watch the **"Recent Detections"** gallery at the top
- When unusual activity is detected, **screenshots are automatically captured**
- Status indicators show:
  - ๐ŸŸข LIVE - Camera is streaming
  - ๐Ÿ“Š Statistics - Real-time detection counts
  - ๐Ÿšจ Alerts - Active threats

### Step 3: Review Detections

- Look at the **"Recent Detections"** gallery
- Click any thumbnail to see full details:
  - Full-size screenshot
  - Detection type (Weapon/Violence/Anomaly)
  - Alert severity level
  - Exact timestamp
  - Confidence score

## What Gets Automatically Captured?

| Activity           | Icon | Alert Level     | Example                             |
| ------------------ | ---- | --------------- | ----------------------------------- |
| Weapon Detected    | ๐Ÿ”ซ   | HIGH            | Gun/knife detection with confidence |
| Violence           | ๐Ÿ‘Š   | MEDIUM-CRITICAL | Fighting, aggression detected       |
| Anomaly            | โ“   | LOW-CRITICAL    | Unusual behavior pattern            |
| Risk Pose + Weapon | โš ๏ธ   | HIGH-CRITICAL   | Person holding weapon + unsafe pose |

## Features

โœ… **Automatic Capture** - No manual screenshots needed  
โœ… **Instant Storage** - Saved to local `uploads/detections/` folder  
โœ… **Real-time Gallery** - Updates every 5 seconds  
โœ… **Secure Access** - Only your detections visible to you  
โœ… **Fast Retrieval** - Thumbnail preview with instant details  
โœ… **Timestamped** - Exact time of each detection recorded

## File Storage Location

All screenshots saved to: **`uploads/detections/`**

Files are named: `detection_{type}_{date}_{time}_{id}.jpg`

Example: `detection_weapon_20250503_143022_a7f2b1c3.jpg`

## Common Use Cases

### ๐Ÿข Security Monitoring

```

1. Start camera in lobby/entrance

2. Enable weapon + violence detection

3. Monitor gallery for threats

4. Escalate alerts to security team

```

### ๐Ÿ‘ฎ Incident Investigation

```

1. Review captured screenshots from incident time

2. Click detections to see high-res images

3. Export screenshots as evidence

4. Document timeline with timestamps

```

### ๐Ÿ“‹ Audit & Compliance

```

1. System automatically logs all detections

2. Each detection has timestamp and confidence

3. Create incident reports with evidence

4. Archive screenshots for compliance

```

## Keyboard Shortcuts

| Action             | Shortcut |
| ------------------ | -------- |
| Start/Stop Camera  | Space    |
| Toggle Recording   | R        |
| Fullscreen View    | F        |
| Refresh Detections | Ctrl+R   |

## Tips for Best Results

1. **Good Lighting**: Ensure adequate lighting for detection
2. **Clear View**: Keep camera unobstructed
3. **Proper Angle**: Position camera to capture potential threats
4. **Multiple Models**: Enable multiple detection types for better coverage
5. **Regular Review**: Check gallery frequently during monitoring

## Storage Management

- Each screenshot is ~500KB (typical 1080p JPEG)
- 100 detections = ~50MB
- Consider archiving old detections to save space
- Monitor disk usage: `uploads/detections/` folder

## Export & Reporting

To save detection screenshots:

1. Click on detection in gallery
2. Right-click image โ†’ "Save image as..."
3. Use for incident reports or compliance documentation

## Support & Troubleshooting

**Camera Not Starting?**

- Ensure USB camera is connected
- Try different USB port
- Restart browser
- Check camera drivers installed

**No Detections Appearing?**

- Verify at least one model is selected
- Camera must be running (green indicator)
- Check if unusual activity actually present
- Review model confidence thresholds

**Screenshots Not Saving?**

- Check folder permissions on `uploads/detections/`
- Ensure sufficient disk space
- Check browser console for errors (F12)
- Contact admin if folder missing

---

**Ready to go?** Start the live camera and monitor unusual activity! ๐ŸŽฅ