steelbench commited on
Commit
e8954fe
·
verified ·
1 Parent(s): 0e1f0d6

Update ethics.md (v1.1.0 on-pixel anonymization)

Browse files
Files changed (1) hide show
  1. ethics.md +21 -11
ethics.md CHANGED
@@ -19,17 +19,27 @@ intended use.
19
 
20
  ## Anonymization
21
 
22
- Faces in the released frames are anonymized using MediaPipe's long-range
23
- face detector (`solutions.face_detection.FaceDetection(model_selection=1,
24
- min_detection_confidence=0.3)`). Detected face regions are blurred with
25
- a Gaussian kernel (99×99, σ=30) plus 20% padding around the bounding box.
26
-
27
- Detection rate on the released set: 4.81% (518 of 10,760 frames had at
28
- least one detected face). The low rate is structural: cameras are
29
- positioned 7–10 m from typical worker positions, so faces typically
30
- occupy <20 px and fall below the detector's reliable threshold. This
31
- distance also means faces in the unblurred 95.19% are too small to
32
- support reliable identification.
 
 
 
 
 
 
 
 
 
 
33
 
34
  **Anonymization is best-effort, not exhaustive.** Specifically:
35
  - Small faces (<20 px) may not be detected at all and therefore not
 
19
 
20
  ## Anonymization
21
 
22
+ ### Version history
23
+
24
+ - **v1.0** (initial release): face blur on the 10,760 JPG frames only, via MediaPipe BlazeFace. The 50 sample MP4s were **not** anonymized; manifests and annotations contained one SAIL railcar identifier and the work-area name "Go Down South Side".
25
+ - **v1.1** (this release, 2026-05-15): added YuNet face blur on all 50 sample MP4s; added an EasyOCR on-pixel text-blur pass on every JPG and every 5th MP4 frame; scrubbed the SAIL railcar identifier from one annotation; renamed "Go Down South Side" → "Warehouse South Side" in 6 annotations + 224 manifest rows + 1 camera-zones row.
26
+
27
+ ### Methods (v1.1)
28
+
29
+ **(1) Face anonymization — JPGs (carried over from v1.0).** MediaPipe long-range face detector (`solutions.face_detection.FaceDetection(model_selection=1, min_detection_confidence=0.3)`). Detected face regions are blurred with a Gaussian kernel (99×99, σ=30) plus 20% padding. Detection rate on the released JPG set: 4.81%. The low rate is structural: cameras are 7–10 m from typical worker positions, so faces occupy <20 px and fall below the detector's reliable threshold. This distance also means faces in the unblurred majority are too small to support reliable identification.
30
+
31
+ **(2) Face anonymization sample MP4s (new in v1.1).** OpenCV YuNet (`face_detection_yunet_2023mar.onnx`, score threshold 0.5), applied to every frame of every MP4 with the same 99×99 Gaussian + 20% padding. We switched to YuNet (rather than re-using MediaPipe BlazeFace) because the MediaPipe `solutions` API was removed in the Python 3.12 wheel; YuNet ships as a 232 KB ONNX model loadable via OpenCV directly. Audio is stripped during re-encoding. Across all 50 MP4s (13,714 frames), 19,306 face-blur applications were made.
32
+
33
+ **(3) On-pixel text anonymization (new in v1.1).** EasyOCR (English + Hindi/Devanagari) detects all visible text with a confidence threshold of 0.20. Detected text is blurred with a Gaussian kernel (51×51) plus 8 px padding when it matches any of:
34
+ - Brand/company identifiers: SAIL, BSL, Steel Authority
35
+ - Indian location words: Bokaro, Jharkhand, India(n), and any Devanagari (Hindi) script
36
+ - Other Indian steel plant names: IISCO, Durgapur, Bhilai, Rourkela, Jamshedpur
37
+ - Area-board signage referring to the source plant's internal zone names
38
+ - CCTV timestamp / camera-ID overlay patterns
39
+
40
+ In addition, **all** detected text in the top 80 px and bottom 80 px of every frame is blurred regardless of content (these bands typically carry CCTV camera-ID and timestamp overlays).
41
+
42
+ Across the released frame set: 12,573 sensitive-pattern regions and 10,229 overlay-band regions were blurred in 10,616 of 10,760 JPGs. In the sample MP4s (OCR run every 5th frame): 3,347 sensitive + 2,363 overlay regions were blurred.
43
 
44
  **Anonymization is best-effort, not exhaustive.** Specifically:
45
  - Small faces (<20 px) may not be detected at all and therefore not