Spaces:
Sleeping
Sleeping
Upload 98 files
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +163 -35
- AGENTS.md +67 -0
- README.md +53 -10
- THIRD_PARTY_NOTICES.md +22 -0
- app.js +129 -0
- app.py +125 -0
- docs/dev/ARCHIVE.md +3 -0
- docs/dev/DESIGN.md +35 -0
- docs/dev/LATEST.md +51 -0
- docs/dev/README.md +16 -0
- docs/wish/ARCHIVE.md +3 -0
- docs/wish/DESIGN.md +33 -0
- docs/wish/LATEST.md +37 -0
- docs/wish/README.md +23 -0
- how-to-start.html +44 -0
- how-to-start.pdf +3 -0
- index.html +18 -19
- models/eng.traineddata.gz +3 -0
- models/face/face_landmark_68_model-shard1 +3 -0
- models/face/face_landmark_68_model-weights_manifest.json +1 -0
- models/face/face_recognition_model-shard1 +3 -0
- models/face/face_recognition_model-shard2 +3 -0
- models/face/face_recognition_model-weights_manifest.json +1 -0
- models/face/tiny_face_detector_model-shard1 +3 -0
- models/face/tiny_face_detector_model-weights_manifest.json +1 -0
- models/gesture_recognizer.task +3 -0
- packages.txt +2 -0
- recognizers.js +113 -0
- requirements.txt +20 -0
- sample_catalog.js +3 -0
- samples/face_a.png +3 -0
- samples/face_a_turn.png +3 -0
- samples/face_b.png +3 -0
- samples/ground_truth.json +6 -0
- samples/hand_fist.png +3 -0
- samples/hand_palm.png +3 -0
- samples/hand_thumb.png +3 -0
- samples/hand_victory.png +3 -0
- samples/library_manifest.json +700 -0
- samples/ocr_card.png +0 -0
- samples/ocr_hard.png +0 -0
- samples/ocr_receipt.png +0 -0
- samples/ocr_sparse.png +0 -0
- samples/rev_face_c.png +3 -0
- samples/rev_face_c_mask.png +3 -0
- samples/rev_face_c_turn.png +3 -0
- samples/rev_face_d.png +3 -0
- samples/rev_face_group.png +3 -0
- samples/rev_gesture_scene.png +3 -0
- samples/rev_hand_fist.png +3 -0
.gitattributes
CHANGED
|
@@ -1,35 +1,163 @@
|
|
| 1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
ai-powered-object-detection/examples/000000039769.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
ai-powered-object-detection/examples/000000087038.jpg filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
ai-powered-object-detection/examples/000000174482.jpg filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
ai-powered-object-detection/examples/000000181666.jpg filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
ai-powered-object-detection/examples/000000252219.jpg filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
ai-powered-object-detection/examples/000000376310.jpg filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
ai-powered-object-detection/examples/000000397133.jpg filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
examples/000000039769.jpg filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
examples/000000087038.jpg filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
examples/000000174482.jpg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
examples/000000181666.jpg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
examples/000000252219.jpg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
examples/000000376310.jpg filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
examples/000000397133.jpg filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
guide-assets/duplicate-menu.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
guide-assets/space-home.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
how-to-start.pdf filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
examples/000000010092.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
examples/000000063965.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
examples/000000090208.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
examples/000000097278.jpg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
examples/000000189806.jpg filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
examples/000000199442.jpg filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
examples/000000210520.jpg filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
examples/000000286458.jpg filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
examples/000000365886.jpg filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
examples/000000429281.jpg filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
examples/000000431876.jpg filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
examples/000000482978.jpg filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
examples/000000500270.jpg filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
examples/000000517523.jpg filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
examples/000000570448.jpg filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
examples/000000005600.jpg filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
examples/000000017379.jpg filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
examples/000000021879.jpg filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
examples/000000028809.jpg filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
examples/000000033854.jpg filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
examples/000000038210.jpg filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
examples/000000047571.jpg filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
examples/000000053994.jpg filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
examples/000000055002.jpg filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
examples/000000061333.jpg filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
examples/000000064462.jpg filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
examples/000000067315.jpg filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
examples/000000071877.jpg filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
examples/000000106235.jpg filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
examples/000000116208.jpg filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
examples/000000122166.jpg filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
examples/000000124975.jpg filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
examples/000000132408.jpg filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
examples/000000133819.jpg filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
examples/000000140556.jpg filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
examples/000000147205.jpg filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
examples/000000150649.jpg filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
examples/000000162732.jpg filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
examples/000000163290.jpg filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
examples/000000166277.jpg filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
examples/000000175438.jpg filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
examples/000000175443.jpg filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
examples/000000204871.jpg filter=lfs diff=lfs merge=lfs -text
|
| 96 |
+
examples/000000220764.jpg filter=lfs diff=lfs merge=lfs -text
|
| 97 |
+
examples/000000227187.jpg filter=lfs diff=lfs merge=lfs -text
|
| 98 |
+
examples/000000229216.jpg filter=lfs diff=lfs merge=lfs -text
|
| 99 |
+
examples/000000230819.jpg filter=lfs diff=lfs merge=lfs -text
|
| 100 |
+
examples/000000231580.jpg filter=lfs diff=lfs merge=lfs -text
|
| 101 |
+
examples/000000253002.jpg filter=lfs diff=lfs merge=lfs -text
|
| 102 |
+
examples/000000273711.jpg filter=lfs diff=lfs merge=lfs -text
|
| 103 |
+
examples/000000301718.jpg filter=lfs diff=lfs merge=lfs -text
|
| 104 |
+
examples/000000305343.jpg filter=lfs diff=lfs merge=lfs -text
|
| 105 |
+
examples/000000361571.jpg filter=lfs diff=lfs merge=lfs -text
|
| 106 |
+
examples/000000363666.jpg filter=lfs diff=lfs merge=lfs -text
|
| 107 |
+
examples/000000372203.jpg filter=lfs diff=lfs merge=lfs -text
|
| 108 |
+
examples/000000382122.jpg filter=lfs diff=lfs merge=lfs -text
|
| 109 |
+
examples/000000410735.jpg filter=lfs diff=lfs merge=lfs -text
|
| 110 |
+
examples/000000416745.jpg filter=lfs diff=lfs merge=lfs -text
|
| 111 |
+
examples/000000438862.jpg filter=lfs diff=lfs merge=lfs -text
|
| 112 |
+
examples/000000442009.jpg filter=lfs diff=lfs merge=lfs -text
|
| 113 |
+
examples/000000445658.jpg filter=lfs diff=lfs merge=lfs -text
|
| 114 |
+
examples/000000454067.jpg filter=lfs diff=lfs merge=lfs -text
|
| 115 |
+
examples/000000458702.jpg filter=lfs diff=lfs merge=lfs -text
|
| 116 |
+
examples/000000462614.jpg filter=lfs diff=lfs merge=lfs -text
|
| 117 |
+
examples/000000462629.jpg filter=lfs diff=lfs merge=lfs -text
|
| 118 |
+
examples/000000464522.jpg filter=lfs diff=lfs merge=lfs -text
|
| 119 |
+
examples/000000465129.jpg filter=lfs diff=lfs merge=lfs -text
|
| 120 |
+
examples/000000468332.jpg filter=lfs diff=lfs merge=lfs -text
|
| 121 |
+
examples/000000499109.jpg filter=lfs diff=lfs merge=lfs -text
|
| 122 |
+
examples/000000507975.jpg filter=lfs diff=lfs merge=lfs -text
|
| 123 |
+
examples/000000514540.jpg filter=lfs diff=lfs merge=lfs -text
|
| 124 |
+
examples/000000546823.jpg filter=lfs diff=lfs merge=lfs -text
|
| 125 |
+
examples/000000546964.jpg filter=lfs diff=lfs merge=lfs -text
|
| 126 |
+
examples/000000550797.jpg filter=lfs diff=lfs merge=lfs -text
|
| 127 |
+
examples/000000555412.jpg filter=lfs diff=lfs merge=lfs -text
|
| 128 |
+
examples/000000561679.jpg filter=lfs diff=lfs merge=lfs -text
|
| 129 |
+
examples/000000566524.jpg filter=lfs diff=lfs merge=lfs -text
|
| 130 |
+
examples/000000575500.jpg filter=lfs diff=lfs merge=lfs -text
|
| 131 |
+
models/face/face_landmark_68_model-shard1 filter=lfs diff=lfs merge=lfs -text
|
| 132 |
+
models/face/face_recognition_model-shard1 filter=lfs diff=lfs merge=lfs -text
|
| 133 |
+
models/face/face_recognition_model-shard2 filter=lfs diff=lfs merge=lfs -text
|
| 134 |
+
models/face/tiny_face_detector_model-shard1 filter=lfs diff=lfs merge=lfs -text
|
| 135 |
+
models/gesture_recognizer.task filter=lfs diff=lfs merge=lfs -text
|
| 136 |
+
samples/face_a_turn.png filter=lfs diff=lfs merge=lfs -text
|
| 137 |
+
samples/face_a.png filter=lfs diff=lfs merge=lfs -text
|
| 138 |
+
samples/face_b.png filter=lfs diff=lfs merge=lfs -text
|
| 139 |
+
samples/hand_fist.png filter=lfs diff=lfs merge=lfs -text
|
| 140 |
+
samples/hand_palm.png filter=lfs diff=lfs merge=lfs -text
|
| 141 |
+
samples/hand_thumb.png filter=lfs diff=lfs merge=lfs -text
|
| 142 |
+
samples/hand_victory.png filter=lfs diff=lfs merge=lfs -text
|
| 143 |
+
samples/rev_face_c_mask.png filter=lfs diff=lfs merge=lfs -text
|
| 144 |
+
samples/rev_face_c_turn.png filter=lfs diff=lfs merge=lfs -text
|
| 145 |
+
samples/rev_face_c.png filter=lfs diff=lfs merge=lfs -text
|
| 146 |
+
samples/rev_face_d.png filter=lfs diff=lfs merge=lfs -text
|
| 147 |
+
samples/rev_face_group.png filter=lfs diff=lfs merge=lfs -text
|
| 148 |
+
samples/rev_gesture_scene.png filter=lfs diff=lfs merge=lfs -text
|
| 149 |
+
samples/rev_hand_fist.png filter=lfs diff=lfs merge=lfs -text
|
| 150 |
+
samples/rev_hand_iloveyou.png filter=lfs diff=lfs merge=lfs -text
|
| 151 |
+
samples/rev_hand_occluded.png filter=lfs diff=lfs merge=lfs -text
|
| 152 |
+
samples/rev_hand_ok.png filter=lfs diff=lfs merge=lfs -text
|
| 153 |
+
samples/rev_hand_palm.png filter=lfs diff=lfs merge=lfs -text
|
| 154 |
+
samples/rev_hand_pinch.png filter=lfs diff=lfs merge=lfs -text
|
| 155 |
+
samples/rev_hand_pointing.png filter=lfs diff=lfs merge=lfs -text
|
| 156 |
+
samples/rev_hand_thumb_down.png filter=lfs diff=lfs merge=lfs -text
|
| 157 |
+
samples/rev_hand_thumb_up.png filter=lfs diff=lfs merge=lfs -text
|
| 158 |
+
samples/rev_hand_tiny.png filter=lfs diff=lfs merge=lfs -text
|
| 159 |
+
samples/rev_hand_twohands.png filter=lfs diff=lfs merge=lfs -text
|
| 160 |
+
samples/rev_hand_victory.png filter=lfs diff=lfs merge=lfs -text
|
| 161 |
+
samples/rev_nohand.png filter=lfs diff=lfs merge=lfs -text
|
| 162 |
+
samples/rev_ocr_handwriting.png filter=lfs diff=lfs merge=lfs -text
|
| 163 |
+
samples/rev_ocr_scene.png filter=lfs diff=lfs merge=lfs -text
|
AGENTS.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Agent entrypoint
|
| 2 |
+
|
| 3 |
+
This repository is a public teaching Space. Before changing its learner-facing purpose, copy, or flow, read [docs/wish/LATEST.md](docs/wish/LATEST.md). For navigation, page roles, or a major interaction, also read [docs/wish/DESIGN.md](docs/wish/DESIGN.md).
|
| 4 |
+
|
| 5 |
+
The Wish records product intent. The current code, Space configuration in `README.md`, and verified Hugging Face behavior own implementation facts. Do not treat [docs/wish/ARCHIVE.md](docs/wish/ARCHIVE.md) as current direction; read it only when tracing an older decision.
|
| 6 |
+
|
| 7 |
+
## Hugging Face card language convention
|
| 8 |
+
|
| 9 |
+
Human-facing Hugging Face card content for this project defaults to **Chinese first, English second**.
|
| 10 |
+
|
| 11 |
+
Apply this ordering to Organization cards, Space cards, Dataset cards, and Model cards unless a specific repository explicitly targets a single-language audience. Preserve the same substantive facts in both language sections; do not let one section silently become newer than the other.
|
| 12 |
+
|
| 13 |
+
The shared Wish lifecycle is maintained in [WISH_PROTOCOL.md](https://github.com/mykcs/.codex/blob/main/website-governance/WISH_PROTOCOL.md). Keep this file as a short route to the local Wish rather than a second copy of it.
|
| 14 |
+
|
| 15 |
+
<!-- managed-by: mykcs/.agents/hf-governance-v1:start -->
|
| 16 |
+
## Shared Hugging Face governance
|
| 17 |
+
|
| 18 |
+
- Repository: `wr92-course/test`
|
| 19 |
+
- Type: `space`
|
| 20 |
+
- Profile: `product-space`
|
| 21 |
+
- Core Agent repository: https://github.com/mykcs/.agents
|
| 22 |
+
- Hugging Face governance: https://github.com/mykcs/.agents/blob/main/docs/agents/HUGGING_FACE_REPOSITORY_GOVERNANCE.md
|
| 23 |
+
- Dev lifecycle: https://github.com/mykcs/.agents/blob/main/docs/agents/DEV_PROTOCOL.md
|
| 24 |
+
- Wish lifecycle: https://github.com/mykcs/.agents/blob/main/docs/agents/WISH_PROTOCOL.md
|
| 25 |
+
|
| 26 |
+
Read local project truth before acting. Shared rules live in `mykcs/.agents`; this repository owns only its local facts and stricter constraints.
|
| 27 |
+
|
| 28 |
+
Boundary: Code/files plus live Hugging Face runtime own current behavior; governance docs are projections.
|
| 29 |
+
<!-- managed-by: mykcs/.agents/hf-governance-v1:end -->
|
| 30 |
+
|
| 31 |
+
<!-- wr92-course-project-rules-20261012:start -->
|
| 32 |
+
## Local authority and routing
|
| 33 |
+
|
| 34 |
+
Latest UI/OCR repair,2026-10-14: layoutPatch20261013-layout-2 sizes the inner course iframe from its same-origin body content with ResizeObserver, removing its scrollbar without using viewport-relative height. The real HF parent/resizer stays stable in desktop and mobile overlay checks. app.js retains the current uploaded image Blob URL until replacement, because OCR reads it later in a worker; it also clears file inputs so selecting the same file again fires change. index.html preloads default inputs; sample buttons use tiny embedded previews, while inference keeps original images. Face/OCR vendor scripts load on first use. Existing ZeroGPU registration, startup reporting, models and task algorithms remain intact. A running Gradio Space needs the matching four-file patch (app.py, index.html, app.js, recognizers.js) or the complete archive. Verify real HF embedding, not only the direct Space host. Do not upgrade dependencies or rewrite recognition to fix layout.
|
| 35 |
+
|
| 36 |
+
Current user requirement,2026-10-13: do not use Docker, request a PRO subscription or hardware downgrade. The native Gradio SDK/app.py keeps the same course UI/models. requirements.txt/packages.txt install automatically. ZeroGPU also requires a decorated function AND startup reporting: startup patch20261013-zero-1 registers an optional real CUDA maintenance API and explicitly calls spaces.zero.startup once in the parent lifespan, since mounted Gradio bypasses Blocks.launch. Normal recognition never calls the GPU diagnostic; face/OCR remain in-browser and gestures fall back to the same Space CPU model. Pin spaces0.51.3 for this startup-interface integration; retain platform PyTorch. APP_PORT controls local binding; do not bind a ZeroGPU proxy PORT. The UI discloses gesture transfer without persistence. Verify SDK startup reporting separately from CPU/browser inference; do not claim local mocked reports prove hosted CUDA. Deliver one current complete Gradio archive plus the latest four-file UI/OCR patch; earlier startup/layout patches are retired. Earlier Docker/Static descriptions below are history.
|
| 37 |
+
|
| 38 |
+
Profile: product-space; role: AI-Powered Image Recognition browser-based pretrained teaching Space (face verification, static hand gestures, and English OCR).
|
| 39 |
+
|
| 40 |
+
The user explicitly authorized this local course migration on 2026-10-13. The prior object-detection purpose is historical. The current intent is recorded in docs/wish/LATEST.md and docs/wish/DESIGN.md. The user later deployed https://huggingface.co/spaces/ZevonLew/Image_Recognition and requested a browser-runtime fix. Inference and error-recovery testing are authorized implementation work and do not establish scientific results. The fix was validated with local response overlays on live Space resources; the user must upload the updated files to change the public version. No upstream push has been performed by this workflow.
|
| 41 |
+
|
| 42 |
+
Before changing this repository, read AGENTS.md, README.md, docs/wish/README.md, docs/wish/LATEST.md, docs/wish/DESIGN.md, docs/dev/README.md, docs/dev/LATEST.md, docs/dev/DESIGN.md, then inspect the actual live HF revision and source files.
|
| 43 |
+
|
| 44 |
+
Private GitHub is the editable source, requirements, teacher delivery, and PR/Issue authority: https://github.com/mykcs/szu_whs_class_20260907. Cross-course requirements: https://github.com/mykcs/szu_whs_class_20260907/blob/main/docs/COURSE_REQUIREMENTS_INDEX.md. Image Generation requirements: https://github.com/mykcs/szu_whs_class_20260907/blob/main/courses/image-generation/docs/REQUIREMENTS_REGISTER.md.
|
| 45 |
+
|
| 46 |
+
Human-facing HF README cards use Chinese-first then English sections; STUDENT APPLICATION UI defaults to English with separate EN / Chinese switching. Do not conflate the two independent language rules or put both languages in one UI paragraph.
|
| 47 |
+
|
| 48 |
+
## Student and hosting boundary
|
| 49 |
+
|
| 50 |
+
This is a CPU/static teaching and navigation Space, with no HF ZeroGPU consumption for local browser/static actions. Browser, model download and network constraints still exist. The two optional free GPU Space repositories remain owned by miyuki17, linked from WR92 Course; do not claim all five are organization-owned.
|
| 51 |
+
|
| 52 |
+
Dev/CI: DEPLOY_ONLY. Do not create CI, paid GPU, perform inference or claim new scientific results merely to maintain governance files. Preserve real source and hash receipts; keep all previous versions and privacy unchanged.
|
| 53 |
+
|
| 54 |
+
Shared protocols: https://github.com/mykcs/.agents/blob/main/docs/agents/HUGGING_FACE_REPOSITORY_GOVERNANCE.md ; https://github.com/mykcs/.agents/blob/main/docs/agents/WISH_PROTOCOL.md ; https://github.com/mykcs/.agents/blob/main/docs/agents/DEV_PROTOCOL.md.
|
| 55 |
+
<!-- wr92-course-project-rules-20261012:end -->
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
## 2026-10-14:62页课程与43案例图库更新
|
| 59 |
+
|
| 60 |
+
用户要求恢复参考稿六类Extension、合并重复页、三类真实模型框架和更多原创正常/困难图。课程目录contentBuild20261014-course-3扩展到43例(7face/18gesture/18OCR),默认英文与中文切换不变。基础作业仍为一个任务、两次运行、一页报告;四条简单Extension用现有控件与人工核对,比较额外方法/训练是高级选做。
|
| 61 |
+
|
| 62 |
+
index.html/app.js/style.css新增分组与目录,sample_catalog.js包含原创小预览;server.py仅新增静态公开白名单。app.py、recognizers.js、权重、依赖、ZeroGPU启动登记、测高和Blob修复保持原样。现版本须上传完整课程更新包或完整Gradio包,旧四文件UI/OCR包不足。43例实际本地Chrome/Gradio测试及上传、分组、语言、390px、JSON回归完成;不推断总体准确率,未发布远程。
|
| 63 |
+
|
| 64 |
+
English:62-slide teaching revision restores six optional extensions and three source-checked model frameworks. The43-case synthetic gallery adds grouping and real recorded difficulties. The beginner core, native Gradio, startup/model contracts and prior fixes remain. Deployment needs all gallery/update files; no remote publication or scientific performance claim is implied.
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
Latest course update overrides historical four-file delivery advice: include sample_catalog.js, samples/, style.css, guides, README and server.py whitelist with the UI. Preserve startup/inference behavior.
|
README.md
CHANGED
|
@@ -1,10 +1,53 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Image Recognition
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: AI-Powered Image Recognition
|
| 3 |
+
emoji: 👁️
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: "5.49.1"
|
| 8 |
+
python_version: "3.10"
|
| 9 |
+
app_file: app.py
|
| 10 |
+
pinned: false
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# AI-Powered Image Recognition
|
| 14 |
+
|
| 15 |
+
## 中文说明
|
| 16 |
+
|
| 17 |
+
课程入口:[https://huggingface.co/spaces/ZevonLew/Image_Recognition](https://huggingface.co/spaces/ZevonLew/Image_Recognition)。三项任务为人脸一对一验证、有限静态手势识别、英文印刷文字OCR。界面默认英文,独立中文切换;切换界面语言不会增加中文OCR能力。
|
| 18 |
+
|
| 19 |
+
**课程更新20261014-course-3:** 图库43例(人脸7、手势18、OCR18),Sample group提供入门、七类姿势、变化、困难与词表外输入。七种命名手势为Open_Palm、Closed_Fist、Victory、Thumb_Up、Thumb_Down、Pointing_Up、ILoveYou。名称是输入意图,运行后才有真实预测;包括遮挡、两手、远手、无手、组照、口罩、手写、相似字符等条件。
|
| 20 |
+
|
| 21 |
+
基础作业:任选一项任务和内置样例,固定输入、只改一个设置记录两次运行,提交两张截图及四至六句的一页报告。无需账号、编程、安装、部署或训练,结果不变也有效。[HTML指南](how-to-start.html)与[PDF指南](how-to-start.pdf)另列六条选做Extension;比较第二种识别器和训练为高级选做,并未集成到网页。
|
| 22 |
+
|
| 23 |
+
人脸采用face-api.js0.22.2(Tiny Face Detector、68点、128维描述子),距离阈值越低越严格。手势采用MediaPipe Tasks Vision0.10.18,最多两手、21点,分数阈值越高越严格。OCR采用Tesseract.js5.1.1与英文LSTM,布局6/11/7分别对应文本块、稀疏文字、单行。人脸距离、手势分数与OCR置信度不能跨任务排名;输出需要核对。
|
| 24 |
+
|
| 25 |
+
部署使用原生Gradio5.49.1,app.py启动。完整上传AI-Powered_Image_Recognition_HF_Gradio.zip解压内容;已有正常运行版本可上传AI-Powered_Image_Recognition_HF_Course_Update.zip全部文件,保留samples/目录,新增sample_catalog.js及server.py白名单必须同步。旧四文件补丁不包含新图库,不能用于本轮更新。无需Docker、PRO、改硬件或改Chrome设置。
|
| 26 |
+
|
| 27 |
+
识别build20261013-gradio-1、启动runtimePatch20261013-zero-1、布局layoutPatch20261013-layout-2保持不变。app.py保留可选CUDA维护函数与显式spaces SDK启动报告,普通课程识别不调用GPU维护。人脸/OCR在浏览器,图形输入不可用时手势由同一task的Space CPU处理,不保存图片,最长边最多1920像素。保留内容自身测高及上传Blob URL修复。
|
| 28 |
+
|
| 29 |
+
本地测试43例完成,额外核对EN/中文、七类分组、阈值、JSON、OCR上传及同文件重复选择、390px布局和正常图形路径。合成样例不证明真实领域准确率;线上需上传后验证。本轮未发布远程。图片采用本课程原创合成素材,不是真实身份数据。人脸验证不证明身份,静态手势不是手语翻译,OCR重要字符需人工核对。
|
| 30 |
+
|
| 31 |
+
本地运行:隔离Python环境安装requirements.txt后执行python app.py,默认http://127.0.0.1:7860;可用APP_PORT指定本地端口。保留sdk: gradio、app_file: app.py、spaces0.51.3与平台PyTorch。/api/health不申请GPU,报告SDK、CPU模型状态、runtimePatch、layoutPatch及zeroGpu.startupReported。ZeroGPU启动与本地CPU识别是不同验证层次。
|
| 32 |
+
|
| 33 |
+
主要文件:app.py为平台入口;index.html/style.css/app.js为界面;sample_catalog.js为原生图片目录和内嵌小预览;samples/library_manifest.json记录43案例的预期与教学边界;recognizers.js/server.py为浏览器识别与Space CPU兼容;models/vendor为固定权重、运行库与许可证。THIRD_PARTY_NOTICES.md记录第三方来源。
|
| 34 |
+
|
| 35 |
+
## English
|
| 36 |
+
|
| 37 |
+
Course lab: [https://huggingface.co/spaces/ZevonLew/Image_Recognition](https://huggingface.co/spaces/ZevonLew/Image_Recognition). The three tasks are one-to-one face verification, finite static gesture recognition and printed-English OCR. The UI defaults to English with a separate Chinese switch; UI language does not change OCR language.
|
| 38 |
+
|
| 39 |
+
Course content build20261014-course-3 contains43 cases:7 face,18 gesture and18 OCR cases. Sample group offers starter, seven named poses, variation, difficult and unsupported inputs. Named gestures are Open_Palm, Closed_Fist, Victory, Thumb_Up, Thumb_Down, Pointing_Up and ILoveYou. Names describe intended inputs rather than guaranteed predictions. Cases include occlusion, two hands, distant/no hand, group portraits, masks, handwriting and similar characters.
|
| 40 |
+
|
| 41 |
+
The core report uses one task, one built-in input, two runs with one changed setting, two screenshots and four to six sentences on one page. No account, coding, installation, deployment or training is required; unchanged outputs are valid. The [HTML guide](how-to-start.html) and [PDF guide](how-to-start.pdf) explain six optional extensions. A second recognizer or training needs separate advanced setup and is not integrated into the site.
|
| 42 |
+
|
| 43 |
+
Models remain face-api.js0.22.2 (Tiny Face Detector,68 landmarks,128-value descriptors), MediaPipe Tasks Vision0.10.18 (up to two hands,21 landmarks) and Tesseract.js5.1.1 with English LSTM data. Lower face thresholds and higher gesture thresholds are stricter. OCR modes6/11/7 mean a block, sparse text and one line. Distances, gesture scores and OCR confidence cannot rank the three tasks; check actual output.
|
| 44 |
+
|
| 45 |
+
Use native Gradio5.49.1 with app.py. Upload all extracted files from the complete Gradio archive, or all contents of HF_Course_Update.zip for an existing working deployment, preserving samples/. New sample_catalog.js and the server.py static whitelist must match. The old four-file patch cannot deliver this gallery. No Docker, PRO subscription, hardware change or Chrome setting change is needed.
|
| 46 |
+
|
| 47 |
+
Recognition build20261013-gradio-1, startup patch20261013-zero-1 and layout patch20261013-layout-2 remain unchanged. app.py retains optional CUDA maintenance registration and the explicit spaces SDK startup report; normal recognition does not call maintenance. Face/OCR stay in the browser. Gesture compatibility uses the same task on the Space CPU, without saving images; inputs are limited proportionally to1920 pixels. Content-height sizing and selected-image Blob lifetime fixes remain.
|
| 48 |
+
|
| 49 |
+
All43 cases completed in real local Chrome/Gradio runs. Additional checks covered language switching, seven-pose grouping, thresholds, JSON, uploaded/reselected OCR,390px layout and a normal graphics path. Synthetic cases do not establish real-domain accuracy. This update has not been published remotely; verify after upload. Use permitted images, review identity claims and important characters; static poses are not sign-language translation.
|
| 50 |
+
|
| 51 |
+
For local use install requirements in an isolated environment and run python app.py, default port7860 or APP_PORT. Keep sdk: gradio, app_file: app.py, spaces0.51.3 and platform PyTorch. /api/health uses no GPU and reports runtime/layout patches and startup state. Hosted ZeroGPU startup and local CPU recognition are different validation layers.
|
| 52 |
+
|
| 53 |
+
app.py is the platform entry; index.html/style.css/app.js own the UI; sample_catalog.js and samples/library_manifest.json own the synthetic gallery; recognizers.js/server.py own model and CPU paths; models/vendor contain fixed assets and notices. Source migration is from wr92-course/test commit9d11aee0c2c539b5a5781e12215136c599b01fb0. Original files, history and instructor backups are retained.
|
THIRD_PARTY_NOTICES.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 第三方运行库、权重与原创教学素材
|
| 2 |
+
|
| 3 |
+
## 中文
|
| 4 |
+
|
| 5 |
+
本项目的应用代码根据教学需求改造;预训练模型不是本次训练得到的。模型来源、下载路径和SHA256记录在教师包 `validation/model_downloads.json`。
|
| 6 |
+
|
| 7 |
+
| 组件 | 固定版本/来源 | 上游许可资料 |
|
| 8 |
+
|---|---|---|
|
| 9 |
+
| face-api.js 与模型权重 | 0.22.2;justadudewhohacks/face-api.js | [项目与模型说明](https://github.com/justadudewhohacks/face-api.js),MIT文本保存在vendor/face-api.LICENSE |
|
| 10 |
+
| MediaPipe Tasks Vision | 0.10.18 | [MediaPipe源码许可](https://github.com/google-ai-edge/mediapipe/blob/master/LICENSE),Apache-2.0文本保存在vendor/mediapipe.LICENSE |
|
| 11 |
+
| MediaPipe手势模型 | gesture_recognizer float16/1 | [官方任务与模型说明](https://ai.google.dev/edge/mediapipe/solutions/vision/gesture_recognizer) |
|
| 12 |
+
| Tesseract.js | 5.1.1 | [项目](https://github.com/naptha/tesseract.js),Apache-2.0文本保存在vendor/tesseract.LICENSE |
|
| 13 |
+
| Tesseract.js core / Tesseract | 5.1.1 core及其引擎 | [core项目](https://github.com/naptha/tesseract.js-core),[引擎许可](https://github.com/tesseract-ocr/tesseract/blob/main/LICENSE) |
|
| 14 |
+
| 英文OCR数据 | tessdata.projectnaptha.com/4.0.0/eng.traineddata.gz | [语言数据来源说明](https://github.com/naptha/tessdata) |
|
| 15 |
+
|
| 16 |
+
`samples/`中的人像与手势图片由内置图像生成工具新生成,均为虚构教学样例;OCR图片由本项目程序排版,正确文字保存在ground_truth.json。课件中的示意图为本项目原生绘制,应用截图来自实际本地运行。旧克隆仓库的COCO图片没有进入本次应用或部署包。
|
| 17 |
+
|
| 18 |
+
## English
|
| 19 |
+
|
| 20 |
+
The pretrained models were not trained in this work. The teacher package records their exact download URLs and SHA256 hashes. Upstream sources and license documents are linked above; included license texts remain under `vendor/`.
|
| 21 |
+
|
| 22 |
+
All classroom portraits and hand images were newly generated as fictional teaching inputs. OCR samples were typeset by project code, with independent text under `samples/ground_truth.json`. Presentation diagrams are original native drawings, and app screenshots come from local execution. Legacy COCO images are not part of the current app or clean deployment package.
|
app.js
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** 默认英文界面与中文切换;所有预测来自真实模型调用,文字输出用textContent避免HTML注入。 */
|
| 2 |
+
import * as recognition from './recognizers.js?v=20261013-ui-2';
|
| 3 |
+
import {sampleCatalog,sampleGroups} from './sample_catalog.js?v=20261014-course-3';
|
| 4 |
+
const {recognizeFace,recognizeGesture,recognizeOCR,handConnections,versions}=recognition;
|
| 5 |
+
const APP_RELEASE='20261013-gradio-1';
|
| 6 |
+
const $=id=>document.getElementById(id);
|
| 7 |
+
let deploymentMessage=['Checking the Space CPU service…','正在检查Space CPU服务…'];
|
| 8 |
+
async function checkDeployment(){
|
| 9 |
+
// 运行位置是真实部署事实;旧Static站点不能凭前端文字被当成CPU服务已就绪。
|
| 10 |
+
const controller=new AbortController();const timer=setTimeout(()=>controller.abort(),8000);
|
| 11 |
+
try{
|
| 12 |
+
const response=await fetch('./api/health',{cache:'no-store',signal:controller.signal});
|
| 13 |
+
const health=response.ok?await response.json():null;
|
| 14 |
+
deploymentMessage=health?.ready&&health?.gesture_cpu&&health?.version===APP_RELEASE?
|
| 15 |
+
['Space CPU service ready','Space CPU服务已就绪']:
|
| 16 |
+
['CPU compatibility is not deployed. Upload all files from the recovery package, including README.md and app.py.','CPU兼容服务尚未部署。请上传恢复包的全部文件,包括README.md和app.py。'];
|
| 17 |
+
}catch{
|
| 18 |
+
deploymentMessage=['Space CPU service unavailable. Check the Space build and retry.','Space CPU服务不可用,请检查Space构建状态后重试。'];
|
| 19 |
+
}finally{
|
| 20 |
+
clearTimeout(timer);$('deployment-status').textContent=tr(deploymentMessage);
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
let task='face',lang='en',busy=false,reference=null,probe=null,result=null;
|
| 24 |
+
let sampleGroup='starter',selectedSample=null;
|
| 25 |
+
const CONTENT_RELEASE='20261014-course-3';
|
| 26 |
+
// OCR工作线程会在点击运行时重新读取图片地址,因此当前上传图的Blob URL必须保持有效。
|
| 27 |
+
const uploadUrls={reference:null,probe:null};
|
| 28 |
+
// ????????????????????????????????????
|
| 29 |
+
const samplePreviews={
|
| 30 |
+
'face_a':'data:image/webp;base64,UklGRkQEAABXRUJQVlA4IDgEAADwFACdASpOAE4APo06lUglI6IhNHj+MKARiUAY7JJiZoeX2tuzNMVaFr5/FHwZmUsHNNm0EmgALRrDiUnmSUgujSrg/VGIDSwS6775kFzIfn1VXYoKQd9/OxP4nw1CoaoNX2nSXN4PJVFNFuZnktmRclzgzNVculgpFjmLx+osXGhgF9R2xKLJKRuF/dPga3mKXf2PUHl88FcKhnvyl8phvvIQEKJdbnB0mVhk9Ts0QAD+9gCY0B7OClx2e7miXr0Hdf+fEL/PzpNYEozkDXXkWffPhm1PLyKdcsjyR8EunY49BB1/HIlc6T2o2krnfEh+js8vZy/4C59yVM3U1KTetQInfIH/9x6Xuz1auXG/32C/zHpY5m2pnV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lu6cJt++3YoeujZpukMP0Wl7R/nzJzXxZmjQX/nMUP2jglpMYm+6hzII5VbydUV6lVYTU6SionikZlERERepL2ibH8J3oTti/YZkjVesfMDQz7PN5D3WT4snpSXaMGDo5vU5OIUrR/VnYoml8QuftK9tjbRWB8kpNfOHLqhjQGpRrh3ZyVAGDc8UJ+xtn+xow5bgM/4Tx9AgAAA',
|
| 40 |
+
'ocr_sparse':'data:image/webp;base64,UklGRqgBAABXRUJQVlA4IJwBAAAwCwCdASpvAE4APp1KnkolpKMhqvqosLATiWkA1nSsavdyBHArgJUD20jwQDf8htnZFgJcuxkoV9v+9cB72hgeUswkrO1AFipnjsWfarHk0SsUDVyE6NybSrMN3u1RdahbAAD+/sDte09taPmkSEfm5Isr9jfmUt+dfm9vQq98wRTdtSF/xCpi7X9umeqAnyRHptJ523Dq/rNP3vGaStv4kicvW32/v88pm9lZ11U5jehisy8YIm0utYt6e+X5Q7ver8cCs/2tdTBMtv4QBeLsgtTlUK9fzr42yDWj4zZh6b/VA2yEU7Mbm2Vt9Ot6rN3eu8J9HFW/9JJvd67cxRITLql14B3RJgAALYcXcLbPkCiKZSzz6xEeDUAvuuQsQXBeSFkl3bvxLAQR9JrrEIkkMdMWUmZ69I0AAdiHUTOGBO3WkpnubAmODsl9wpTz5M1UV1ANOk0Ev8iCQRfRfdPFm8nUiLrzGnqEf6whieYUEzZ4G6B2R08pHG8HpzK1JaNux7iKs16pl4yjSaxLew8qLbp0oSC+Hfa0AAAA',
|
| 41 |
+
};
|
| 42 |
+
function releaseUploadUrl(kind){if(uploadUrls[kind])URL.revokeObjectURL(uploadUrls[kind]);uploadUrls[kind]=null;}
|
| 43 |
+
const dictionary={guide:['How to Start','开始使用'],eyebrow:['PRETRAINED MODELS · REAL INFERENCE','预训练模型 · 真实推理'],lede:['Compare faces. Read a gesture. Turn printed text into editable words.','比较人脸、识别手势,将印刷文字转为可编辑文本。'],path:['One image. A useful result.','一张图片,一份可解释的结果。'],promise:['Choose a task, inspect its output, change one setting and explain the difference.','选择任务、观察结果、改变一个设置并解释差异。'],browser:['Browser + CPU compatibility','浏览器 + CPU兼容'],training:['No training required','无需训练'],face:['01 Face verification','01 人脸验证'],gesture:['02 Gesture recognition','02 手势识别'],ocr:['03 Text OCR','03 文字 OCR'],step1:['STEP 1 · CHOOSE AN INPUT','步骤 1 · 选择输入'],step2:['STEP 2 · INSPECT THE RESULT','步骤 2 · 观察结果'],step3:['STEP 3 · ASK A BETTER QUESTION','步骤 3 · 提出实验问题'],refupload:['Upload reference image','上传参考人像'],probeupload:['Upload probe image','上传待比较人像'],upload:['Upload your image','上传图片'],layout:['Text layout','文字布局'],block:['One text block','单个文本块'],sparse:['Sparse text','稀疏文字'],line:['One text line','单行文字'],english:['English printed text · Tesseract LSTM','英文印刷体 · Tesseract LSTM'],run:['Run recognition','运行识别'],export:['Export result JSON','导出结果 JSON'],reference:['Reference','参考图'],ready:['Ready to explore','准备开始'],readyhelp:['Select a sample and run a real pretrained model.','选择样例并运行预训练模型。'],details:['Result details','结果详情'],record:['Record your evidence','记录实验依据'],recordhelp:['Keep the input fixed. Save the setting, the output, one success and one limitation. Change only one factor.','保持输入不变,保存参数、输出、一个成功观察和一个局限;每次只改变一个因素。'],privacy:['Face and OCR images stay in this browser. If browser graphics fail, the gesture image is sent to this Space CPU for recognition and is not saved. Use synthetic or permitted images. Results and face descriptors are not stored by the app.','人脸和OCR图片留在浏览器中。浏览器图形不可用时,手势图片会发送到本Space的CPU识别,不保存。请使用合成或已获许可的图片;应用不持久保存结果与人脸特征。'],limits:['Teaching demo: no identity proof, no sign-language translation, no guaranteed transcription accuracy. Model files may take time to load.','教学演示:不能作为身份证明,不是手语翻译,不保证文字转写正确;首次模型加载需要时间。'],samplegroup:['Sample group','样例分组'],samplehelp:['Choose a group, then select an input. Hard inputs need checking.','先选分组,再选择输入;困难输入需核对实际结果。'],submission:['Student guide: core task and extensions →','学生指南:基础作业与拓展 →']};
|
| 44 |
+
const configs={face:{title:['Do these faces match?','这两张脸是否匹配?'],desc:['Compare one reference with one probe. Each image must contain exactly one face.','比较参考图与待比较图,每图需要恰好一张清晰人脸。'],question:['What changes when the distance threshold becomes stricter?','距离阈值变严格后有什么变化?'],experiment:['Keep the pair fixed. Try 0.40, 0.60 and 0.80. A smaller threshold accepts fewer pairs; descriptors stay the same.','固定两张图,尝试0.40、0.60、0.80。较小阈值允许更少匹配,特征不变。'],samples:[['Same person','同一人物','face_a_turn'],['Different person','不同人物','face_b']]},gesture:{title:['Which gesture is visible?','看到了什么手势?'],desc:['Use a complete, visible hand. The model recognizes a small set of static gestures.','使用完整清晰的手部图片,模型只识别有限的静态手势。'],question:['Does a higher score threshold remove a weak prediction?','提高分数阈值会过滤弱预测吗?'],experiment:['Run the same image at 0.30, 0.60 and 0.90. Record the candidate, score and accepted label. No hand and unrecognized gesture are different outcomes.','同一图片测试0.30、0.60、0.90,记录候选、分数和接受标签。未发现手与手势未识别是两种结果。'],samples:[['Open palm','张掌','hand_palm'],['Victory','胜利','hand_victory'],['Fist','握拳','hand_fist'],['Thumb up','点赞','hand_thumb']]},ocr:{title:['What does the image say?','图片上写了什么?'],desc:['Read printed English. Choose a layout that matches the arrangement of the text.','识别英文印刷体,选择与文字排列相符的布局。'],question:['Which layout preserves the most correct words?','哪种布局保留更多正确文字?'],experiment:['Keep the image fixed. Compare one text block with sparse text. Check the transcript against the image; confidence alone is not accuracy.','固定图片,对比单个文本块与稀疏文字;逐字核对原图,置信度不能代替正确率。'],samples:[['Lab card','实验卡','ocr_card'],['Receipt','票据','ocr_receipt'],['Sparse labels','稀疏标签','ocr_sparse'],['Hard case','困难样例','ocr_hard']]}};
|
| 45 |
+
const tr=pair=>pair[lang==='en'?0:1];
|
| 46 |
+
function text(tag,value,cls){const e=document.createElement(tag);e.textContent=value;if(cls)e.className=cls;return e;}
|
| 47 |
+
function status(message){$('status').textContent=message;}
|
| 48 |
+
function resetResult(){result=null;$('export').disabled=true;$('details').hidden=true;$('result').replaceChildren(text('h3',tr(dictionary.ready)),text('p',tr(dictionary.readyhelp)));}
|
| 49 |
+
function setBusy(value){busy=value;document.querySelectorAll('button,input,select').forEach(e=>e.disabled=value);$('export').disabled=value||!result;}
|
| 50 |
+
async function loadImage(src){
|
| 51 |
+
const im=new Image();
|
| 52 |
+
// Static Space的相对图片地址会重定向至CDN;必须在src之前开启CORS,防止画布被跨域图片污染。
|
| 53 |
+
im.crossOrigin='anonymous';im.src=src;
|
| 54 |
+
try{await im.decode();}catch(e){throw new Error('Could not load this image. Check the image file and CORS permission on its host.');}
|
| 55 |
+
if(im.naturalWidth*im.naturalHeight>24000000)throw new Error('Use an image of at most 24 megapixels.');return im;
|
| 56 |
+
}
|
| 57 |
+
function draw(canvas,im,overlay){if(!im)return;canvas.width=im.naturalWidth;canvas.height=im.naturalHeight;const c=canvas.getContext('2d');c.drawImage(im,0,0);if(overlay)overlay(c,canvas.width,canvas.height);}
|
| 58 |
+
function drawFace(c,data,w){c.strokeStyle='#22bb8f';c.lineWidth=w/180;c.strokeRect(data.box.x,data.box.y,data.box.width,data.box.height);c.fillStyle='#2460e9';for(const p of data.points){c.beginPath();c.arc(p.x,p.y,w/280,0,Math.PI*2);c.fill();}}
|
| 59 |
+
function redraw(){draw($('reference-canvas'),reference);draw($('probe-canvas'),probe);}
|
| 60 |
+
/** 样例元数据只描述输入设计;模型判定始终来自实际推理。 */
|
| 61 |
+
async function chooseSample(name){
|
| 62 |
+
resetResult();status(tr(['Loading sample…','加载样例…']));setBusy(true);
|
| 63 |
+
try{
|
| 64 |
+
const entry=sampleCatalog.find(item=>item.id===name&&item.task===task);
|
| 65 |
+
const nextProbe=await loadImage(`./samples/${entry?.image||name}.png`);
|
| 66 |
+
const nextReference=task==='face'?await loadImage(`./samples/${entry?.reference||'face_a'}.png`):null;
|
| 67 |
+
releaseUploadUrl('probe');releaseUploadUrl('reference');
|
| 68 |
+
probe=nextProbe;reference=nextReference;selectedSample=entry||null;
|
| 69 |
+
redraw();renderSampleInfo();status(tr(['Ready. Run recognition to see real output.','已就绪,运行识别获取实际输出。']));
|
| 70 |
+
}catch(e){status(e.message);}finally{setBusy(false);}
|
| 71 |
+
}
|
| 72 |
+
function renderSampleInfo(){
|
| 73 |
+
$('sample-note').textContent=selectedSample?tr(selectedSample.label)+' · '+tr(selectedSample.note):'';
|
| 74 |
+
}
|
| 75 |
+
function renderSamples(){
|
| 76 |
+
const choices=sampleCatalog.filter(item=>item.task===task);
|
| 77 |
+
const groups=[...new Set(choices.map(item=>item.group))];
|
| 78 |
+
if(!groups.includes(sampleGroup))sampleGroup='starter';
|
| 79 |
+
$('sample-group').replaceChildren();
|
| 80 |
+
for(const group of groups){
|
| 81 |
+
const option=document.createElement('option');option.value=group;
|
| 82 |
+
option.textContent=tr(sampleGroups[group])+` (${choices.filter(item=>item.group===group).length})`;
|
| 83 |
+
$('sample-group').append(option);
|
| 84 |
+
}
|
| 85 |
+
$('sample-group').value=sampleGroup;$('examples').replaceChildren();
|
| 86 |
+
for(const entry of choices.filter(item=>item.group===sampleGroup)){
|
| 87 |
+
const button=document.createElement('button');button.dataset.sampleId=entry.id;
|
| 88 |
+
const image=new Image();image.src=entry.preview;image.alt='';
|
| 89 |
+
button.append(image,text('span',tr(entry.label)));
|
| 90 |
+
button.addEventListener('click',()=>chooseSample(entry.id));$('examples').append(button);
|
| 91 |
+
}
|
| 92 |
+
renderSampleInfo();
|
| 93 |
+
}
|
| 94 |
+
function translate(){$('release-version').textContent=tr(['Build: '+APP_RELEASE,'版本:'+APP_RELEASE]);$('deployment-status').textContent=tr(deploymentMessage);document.documentElement.lang=lang==='en'?'en':'zh-CN';document.querySelectorAll('[data-i18n]').forEach(e=>e.textContent=tr(dictionary[e.dataset.i18n]));$('language').textContent=lang==='en'?'中文':'EN';const cfg=configs[task];for(const [id,key]of [['task-title','title'],['task-description','desc'],['question','question'],['experiment','experiment']])$(id).textContent=tr(cfg[key]);$('probe-caption').textContent=task==='face'?tr(['Probe','待比较图']):tr(['Input and model overlay','输入与模型叠加结果']);$('threshold-label').textContent=task==='face'?tr(['Distance threshold','距离阈值']):tr(['Gesture score threshold','手势分数阈值']);$('threshold-help').textContent=task==='face'?tr(['Lower is stricter. Distance is not confidence.','越低越严格,距离不是置信度。']):tr(['Higher is stricter. Low-scoring labels are rejected.','越高越严格,过滤低分标签。']);$('model-name').textContent=versions[task];$('gesture-processing').hidden=task!=='gesture';$('gesture-processing').textContent=tr(['If browser graphics are unavailable, Run recognition sends this gesture image to the Space CPU. It is processed in memory and is not saved.','浏览器图形不可用时,点击运行识别会将手势图片发送到本Space的CPU。仅在内存中处理,不保存图片。']);renderSamples();if(result)showResult();else resetResult();}
|
| 95 |
+
async function switchTask(next){if(busy)return;task=next;sampleGroup='starter';selectedSample=null;document.querySelectorAll('[data-task]').forEach(b=>b.setAttribute('aria-selected',String(b.dataset.task===task)));$('workspace').setAttribute('aria-labelledby',`tab-${task}`);$('face-controls').hidden=task!=='face';$('reference-figure').hidden=task!=='face';$('single-upload-wrap').hidden=task==='face';$('threshold-wrap').hidden=task==='ocr';$('ocr-settings').hidden=task!=='ocr';$('canvases').classList.toggle('single',task!=='face');$('threshold').value='0.6';$('threshold-value').value='0.60';resetResult();translate();await chooseSample(configs[task].samples[0][2]);}
|
| 96 |
+
function showResult(){const box=$('result');box.replaceChildren();if(!result)return;redraw();if(task==='face'){box.append(text('h3',tr([result.decision,result.distance<result.threshold?'当前阈值下匹配':'当前阈值下不匹配'])),text('div',result.distance.toFixed(3),'metric'),text('p',tr([`Descriptor distance · threshold ${result.threshold.toFixed(2)}. Lower means closer features.`,`特征距离 · 阈值 ${result.threshold.toFixed(2)},越小表示特征越接近。`])));draw($('reference-canvas'),reference,(c,w)=>drawFace(c,result.reference,w));draw($('probe-canvas'),probe,(c,w)=>drawFace(c,result.probe,w));}else if(task==='gesture'){box.append(text('p',result.backend==='Space CPU'?tr(['Processed on the Space CPU; image not saved.','已在Space CPU上处理,图片未保存。']):tr(['Processed in this browser.','已在浏览器内处理。'])));box.append(text('h3',result.hands.length?tr(['Gesture result','手势结果']):tr(['No hand detected','未检测到手'])));for(const hand of result.hands){box.append(text('span',hand.label,'tag'),text('p',tr([`Candidate: ${hand.candidate} · score ${hand.score.toFixed(3)} · ${hand.handedness}`,`候选:${hand.candidate} · 分数 ${hand.score.toFixed(3)} · ${hand.handedness}`])));}draw($('probe-canvas'),probe,(c,w,h)=>{for(const hand of result.hands){c.strokeStyle='#2470ec';c.lineWidth=w/170;for(const [a,b]of handConnections){c.beginPath();c.moveTo(hand.points[a].x*w,hand.points[a].y*h);c.lineTo(hand.points[b].x*w,hand.points[b].y*h);c.stroke();}c.fillStyle='#17aa79';for(const p of hand.points){c.beginPath();c.arc(p.x*w,p.y*h,w/180,0,Math.PI*2);c.fill();}}});}else{box.append(text('h3',tr(['Editable transcript','可编辑文字结果'])),text('pre',result.text||tr(['No text recognized.','未识别到文字。'])),text('p',tr([`Reported confidence: ${result.confidence.toFixed(1)} / 100. Verify against the input.`,`报告置信度:${result.confidence.toFixed(1)} / 100,请与输入核对。`])));draw($('probe-canvas'),probe,(c,w)=>{c.strokeStyle='#2460e9';c.lineWidth=w/280;for(const word of result.words){const b=word.box;c.strokeRect(b.x0,b.y0,b.x1-b.x0,b.y1-b.y0);}});}box.append(text('p',result.note));$('json').textContent=JSON.stringify(result,null,2);$('details').hidden=false;$('export').disabled=false;}
|
| 97 |
+
async function run(){if(busy||!probe)return;resetResult();redraw();setBusy(true);const start=performance.now();try{await new Promise(r=>requestAnimationFrame(r));result=task==='face'?await recognizeFace(reference,probe,Number($('threshold').value),status):task==='gesture'?await recognizeGesture(probe,Number($('threshold').value),status):await recognizeOCR(probe,$('psm').value,status);result.appBuild=APP_RELEASE;result.modelBuild=recognition.release;result.contentBuild=CONTENT_RELEASE;result.sampleId=selectedSample?.id||'uploaded';result.referenceSampleId=selectedSample?.reference||null;result.sampleGroup=selectedSample?.group||null;result.elapsedMs=Math.round(performance.now()-start);result.timestamp=new Date().toISOString();showResult();status(tr([`Finished in ${(result.elapsedMs/1000).toFixed(2)} s. First run includes model loading.`,`完成,用时 ${(result.elapsedMs/1000).toFixed(2)} 秒,首次包含模型加载。`]));}catch(e){result=null;$('result').replaceChildren(text('h3',tr(['Could not complete this run','本次运行未完成'])),text('p',e.message));status(tr(['Check the input and model files, then retry.','检查输入及模型文件后重试。']));}finally{setBusy(false);}}
|
| 98 |
+
async function upload(event,kind){
|
| 99 |
+
const f=event.target.files[0];if(!f)return;
|
| 100 |
+
if(!['image/png','image/jpeg','image/webp'].includes(f.type)||f.size>15*1024*1024){
|
| 101 |
+
status(tr(['Use a PNG, JPEG or WebP under 15 MB.','请使用小于15MB的PNG、JPEG或WebP。']));
|
| 102 |
+
event.target.value='';return;
|
| 103 |
+
}
|
| 104 |
+
const url=URL.createObjectURL(f);let retained=false;setBusy(true);
|
| 105 |
+
try{
|
| 106 |
+
const im=await loadImage(url);releaseUploadUrl(kind);uploadUrls[kind]=url;retained=true;
|
| 107 |
+
if(kind==='reference')reference=im;else probe=im;selectedSample=null;renderSampleInfo();
|
| 108 |
+
resetResult();redraw();status(tr(['Image loaded. Ready to run.','图片已加载,可以运行。']));
|
| 109 |
+
}catch(e){status(e.message);}
|
| 110 |
+
finally{
|
| 111 |
+
// 清空文件控件才能在切换任务后再次选择同一文件并触发change事件。
|
| 112 |
+
event.target.value='';if(!retained)URL.revokeObjectURL(url);setBusy(false);
|
| 113 |
+
}
|
| 114 |
+
}
|
| 115 |
+
document.querySelectorAll('[data-task]').forEach(b=>b.addEventListener('click',()=>switchTask(b.dataset.task)));
|
| 116 |
+
$('sample-group').addEventListener('change',()=>{sampleGroup=$('sample-group').value;renderSamples();});
|
| 117 |
+
$('language').addEventListener('click',()=>{lang=lang==='en'?'zh':'en';translate();});$('run').addEventListener('click',run);
|
| 118 |
+
// 参数变化后清除旧输出,防止把旧参数的结果误当作新结果。
|
| 119 |
+
$('threshold').addEventListener('input',()=>{$('threshold-value').value=Number($('threshold').value).toFixed(2);resetResult();redraw();});$('psm').addEventListener('change',()=>{resetResult();redraw();});
|
| 120 |
+
$('reference-upload').addEventListener('change',e=>upload(e,'reference'));$('probe-upload').addEventListener('change',e=>upload(e,'probe'));$('single-upload').addEventListener('change',e=>upload(e,'probe'));
|
| 121 |
+
$('export').addEventListener('click',()=>{if(!result)return;const url=URL.createObjectURL(new Blob([JSON.stringify(result,null,2)],{type:'application/json'}));const a=document.createElement('a');a.href=url;a.download=`vision-lab-${task}-${Date.now()}.json`;a.click();setTimeout(()=>URL.revokeObjectURL(url),1000);});
|
| 122 |
+
// HTML/??/???????????????????????????????????
|
| 123 |
+
const htmlRelease=document.querySelector('meta[name="vision-lab-build"]')?.content;
|
| 124 |
+
if(htmlRelease!==APP_RELEASE||recognition.release!==APP_RELEASE){
|
| 125 |
+
setBusy(true);status('Deployment files are mixed. Upload all files from the recovery package, then reopen the Space App.');
|
| 126 |
+
$('result').replaceChildren(text('h3','Update the complete recovery package'),text('p',`HTML: ${htmlRelease||'legacy'} ? app: ${APP_RELEASE} ? models: ${recognition.release||'legacy'}`));
|
| 127 |
+
}else{
|
| 128 |
+
switchTask('face');checkDeployment();
|
| 129 |
+
}
|
app.py
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Gradio课程入口:兼容ZeroGPU启动登记,识别仍使用原浏览器/CPU路径。"""
|
| 2 |
+
import os
|
| 3 |
+
from contextlib import asynccontextmanager
|
| 4 |
+
|
| 5 |
+
# 必须在导入Gradio/MediaPipe之前关闭遥测并指定可写缓存,适配HF运行账号。
|
| 6 |
+
os.environ.setdefault('GRADIO_ANALYTICS_ENABLED', 'False')
|
| 7 |
+
os.environ.setdefault('MPLCONFIGDIR', '/tmp/matplotlib' if os.name != 'nt' else os.path.join(os.environ.get('TEMP', '.'), 'vision-lab-matplotlib'))
|
| 8 |
+
|
| 9 |
+
# ZeroGPU要求在CUDA相关库之前导入spaces;平台注册和模型推理是不同流程。
|
| 10 |
+
import spaces
|
| 11 |
+
from spaces.config import Config as SpacesConfig
|
| 12 |
+
import gradio as gr
|
| 13 |
+
import uvicorn
|
| 14 |
+
from fastapi import FastAPI
|
| 15 |
+
from server import app as lab_app, health
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
BOOT_RELEASE = '20261013-zero-1'
|
| 19 |
+
LAYOUT_RELEASE = '20261013-layout-2'
|
| 20 |
+
ZEROGPU_STATUS = {'enabled': SpacesConfig.zero_gpu, 'startupReported': False,
|
| 21 |
+
'registeredGpuFunctions': 0}
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
@spaces.GPU(duration=5)
|
| 25 |
+
def gpu_runtime_check():
|
| 26 |
+
"""仅供维护人员按需核实CUDA;课程识别、页面加载和启动均不调用它。"""
|
| 27 |
+
try:
|
| 28 |
+
import torch
|
| 29 |
+
except ImportError:
|
| 30 |
+
return {'available': False, 'note': 'PyTorch is not installed in this local CPU environment.'}
|
| 31 |
+
if not torch.cuda.is_available():
|
| 32 |
+
return {'available': False, 'note': 'No CUDA device is available in this environment.'}
|
| 33 |
+
# 使用真实CUDA小运算检验调度后的设备;不生成或替代任何识别结果。
|
| 34 |
+
checksum = torch.arange(16, device='cuda').square().sum().item()
|
| 35 |
+
return {'available': True, 'device': torch.cuda.get_device_name(0),
|
| 36 |
+
'checksum': checksum, 'expectedChecksum': 1240}
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
def report_zerogpu_startup():
|
| 40 |
+
"""挂载式Gradio没有执行Blocks.launch,须显式发送SDK启动登记且只发送一次。"""
|
| 41 |
+
if not SpacesConfig.zero_gpu or ZEROGPU_STATUS['startupReported']:
|
| 42 |
+
return
|
| 43 |
+
import spaces.zero as zero_runtime
|
| 44 |
+
from spaces.zero.decorator import decorated_cache
|
| 45 |
+
startup = getattr(zero_runtime, 'startup', None)
|
| 46 |
+
if not callable(startup) or not decorated_cache:
|
| 47 |
+
raise RuntimeError('ZeroGPU startup registration is unavailable. Install the supplied requirements.txt.')
|
| 48 |
+
# 使用固定spaces版本的原生协议;上报失败必须阻止启动,不能显示虚假的成功状态。
|
| 49 |
+
startup()
|
| 50 |
+
ZEROGPU_STATUS.update(startupReported=True,
|
| 51 |
+
registeredGpuFunctions=len(set(decorated_cache.values())))
|
| 52 |
+
print(f'[{BOOT_RELEASE}] ZeroGPU startup report accepted; recognition uses browser/CPU.', flush=True)
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
@asynccontextmanager
|
| 56 |
+
async def lifespan(application):
|
| 57 |
+
"""先向平台登记,再加载CPU手势模型;保留模型原有释放机制。"""
|
| 58 |
+
report_zerogpu_startup()
|
| 59 |
+
async with lab_app.router.lifespan_context(application):
|
| 60 |
+
yield
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def runtime_health():
|
| 64 |
+
"""原健康结果另附启动补丁标识,方便线上核对,无图片/GPU请求。"""
|
| 65 |
+
return {**health(), 'runtimePatch': BOOT_RELEASE, 'layoutPatch': LAYOUT_RELEASE,
|
| 66 |
+
'zeroGpu': dict(ZEROGPU_STATUS)}
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
# 采用官方Gradio挂载接口;父服务负责一次性加载CPU模型,页面与模型保持同源。
|
| 70 |
+
app = FastAPI(lifespan=lifespan,
|
| 71 |
+
docs_url=None, redoc_url=None, openapi_url=None)
|
| 72 |
+
app.mount('/lab', lab_app)
|
| 73 |
+
app.add_api_route('/api/health', runtime_health, methods=['GET'])
|
| 74 |
+
|
| 75 |
+
# HF父窗口会根据内容测高;课程窗口只按子页面自身的内容高度变化,不能依赖父视口高度。
|
| 76 |
+
LAB_CSS = '''
|
| 77 |
+
.gradio-container{max-width:100%!important;padding:0!important;min-height:0!important}
|
| 78 |
+
#vision-host{padding:0!important;margin:0!important;border:0!important}
|
| 79 |
+
#vision-lab{display:block;width:100%;height:1100px;min-height:0;border:0}
|
| 80 |
+
footer{display:none!important}
|
| 81 |
+
'''
|
| 82 |
+
|
| 83 |
+
# 同源子页面的body高度不随iframe视口增高,避免HF外层自动测高与内层互相放大。
|
| 84 |
+
# ResizeObserver覆盖切换任务、语言及识别结果;有限上界防止意外内容形成无限循环。
|
| 85 |
+
LAB_RESIZE_JS = '''() => {
|
| 86 |
+
const frame = document.getElementById('vision-lab');
|
| 87 |
+
if (!frame) return;
|
| 88 |
+
let observer;
|
| 89 |
+
const attach = () => {
|
| 90 |
+
if (observer) observer.disconnect();
|
| 91 |
+
const body = frame.contentDocument?.body;
|
| 92 |
+
if (!body) return;
|
| 93 |
+
const sync = () => {
|
| 94 |
+
const height = Math.min(12000, Math.max(640, Math.ceil(body.getBoundingClientRect().height) + 3));
|
| 95 |
+
if (Math.abs(frame.getBoundingClientRect().height - height) > 1) frame.style.height = `${height}px`;
|
| 96 |
+
};
|
| 97 |
+
observer = new ResizeObserver(sync);
|
| 98 |
+
observer.observe(body);
|
| 99 |
+
sync();
|
| 100 |
+
};
|
| 101 |
+
frame.addEventListener('load', attach);
|
| 102 |
+
if (frame.contentDocument?.readyState === 'complete') attach();
|
| 103 |
+
}'''
|
| 104 |
+
|
| 105 |
+
with gr.Blocks(title='AI-Powered Image Recognition', css=LAB_CSS,
|
| 106 |
+
js=LAB_RESIZE_JS,
|
| 107 |
+
fill_height=False,
|
| 108 |
+
analytics_enabled=False) as demo:
|
| 109 |
+
# 同源页面完整复用已验证的课程界面;保留EN/中文、上传、叠加图和JSON导出。
|
| 110 |
+
gr.HTML('<iframe id="vision-lab" title="AI-Powered Image Recognition" '
|
| 111 |
+
f'data-layout-build="{LAYOUT_RELEASE}" src="/lab/" scrolling="no" '
|
| 112 |
+
'allow="clipboard-write"></iframe>', elem_id='vision-host', container=False)
|
| 113 |
+
# 登记真实Gradio维护接口,不增加学生操作步骤,也不在加载时触发GPU。
|
| 114 |
+
# 仅显式调用该API时使用ZeroGPU额度;不把CPU模型包进GPU装饰器。
|
| 115 |
+
diagnostic = gr.Button('GPU runtime check', visible=False)
|
| 116 |
+
diagnostic_result = gr.JSON(visible=False)
|
| 117 |
+
diagnostic.click(gpu_runtime_check, inputs=[], outputs=diagnostic_result,
|
| 118 |
+
api_name='gpu_runtime_check', show_api=False, concurrency_limit=1)
|
| 119 |
+
|
| 120 |
+
app = gr.mount_gradio_app(app, demo, path='/', show_api=False, ssr_mode=False)
|
| 121 |
+
|
| 122 |
+
if __name__ == '__main__':
|
| 123 |
+
# ZeroGPU的PORT可属于平台代理,应用绑定7860;本地可独立设置APP_PORT。
|
| 124 |
+
uvicorn.run(app, host='0.0.0.0', port=int(os.environ.get('APP_PORT', '7860')),
|
| 125 |
+
access_log=False)
|
docs/dev/ARCHIVE.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Superseded Dev Designs
|
| 2 |
+
|
| 3 |
+
None established. The latest HF commit and source receipts, not this archive, describe current production.
|
docs/dev/DESIGN.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 开发分工与恢复 / Development design
|
| 2 |
+
|
| 3 |
+
当前布局约束:HF外层iframe按Gradio内容自动调整高度,课程iframe不能用vh/百分比高度跟随父视口。Gradio加载脚本在同源课程iframe内观察body自身高度,设置iframe的像素高度并隐藏内层滚动条;body自身不随iframe高度拉伸,所以不会形成增长反馈。保留fill_height=False、HTML container=False、外层最小高度0,设置有限高度上界作为异常保护。切换任务、语言和显示结果由ResizeObserver再次测高。OCR上传图的Blob URL直到替换图片才释放;文件控件每次处理后清空,允许重复选择同一文件。大型face-api与Tesseract脚本在任务首次运行时加载;样例按钮使用原图派生的内嵌小缩略图,只让实际选中的原图进入模型,默认输入在HTML解析时预请求。实际HF父页面测试使用本地响应覆盖,不写入远程;模型与ZeroGPU启动流程保持。
|
| 4 |
+
|
| 5 |
+
当前启动修复:spaces必须在潜在CUDA库之前导入;同步gpu_runtime_check以@spaces.GPU(duration=5)登记,隐藏Gradio事件保留真正按需维护API。该回调只检测CUDA并做小型真实设备运算,绝不代替模型结果;普通页面/识别不触发它。父lifespan先report_zerogpu_startup再进入原CPU模型生命周期;仅ZeroGPU环境报告,成功后置startupReported,重复生命周期不重复报告,失败不吞错。spaces0.51.3的startup在普通CPU环境不存在,因此先判断配置,不直接无条件import。/api/health附runtimePatch与注册状态用于部署核对;/lab的原识别健康/版本协议保留。APP_PORT默认7860,不使用平台可能占用的PORT。现有模型与识别JS无改动。
|
| 6 |
+
|
| 7 |
+
当前Gradio实现:app.py以官方mount_gradio_app将课程页面和CPU兼容接口同源启动;主页由Gradio承载,/lab/保留现有交互。父服务lifespan负责一次加载CPU模型,避免子应用生命周期没有执行。显式关闭SSR,不要求Node启动;无Dockerfile或GPU执行调用。app.py/requirements.txt/packages.txt随包提供,README使用sdk:gradio/app_file:app.py。页面、模型与健康接口版本同为20261013-gradio-1。之前Docker实现已退出当前test和交付包。
|
| 8 |
+
|
| 9 |
+
恢复版新增发布一致性:HTML的vision-lab-build元信息、app.js的APP_RELEASE、recognizers.js的release和/api/health的version同为20261013-recovery-1。网页文件版本混用在任务初始化前阻止推理;CPU健康状态明确显示后端是否启动,不用页面文案推断已部署。JSON记录appBuild/modelBuild,CPU结果另含serverBuild。日期恢复ZIP是本轮唯一推荐入口,旧Static包退出根目录。
|
| 10 |
+
|
| 11 |
+
当前兼容实现:README使用sdk: docker、app_port:7860,Dockerfile自动部署相同学生页面和CPU接口。recognizers.js优先运行浏览器任务;WebGL2不可用或activeTexture/上下文错误时回退POST /api/gesture,120秒超时后释放按钮。CPU调用没有WebGL要求,使用Python MediaPipe 0.10.18的CPU委托与同一份task权重;模型锁串行保护,繁忙返回503且可重试。后端限制上传大小与像素数,静态目录/页面用白名单,不暴露源码或Git。
|
| 12 |
+
|
| 13 |
+
传输边界:只有CPU兼容手势图片离开浏览器;前端明确提示,后端不持久存储、不记录请求图片内容。超过1920像素的最长边等比缩小,结果包含处理尺寸、输入尺寸和backend。模型与阈值语义保持一致,实验需固定后端和尺寸。下面的Static方案记录描述此前实现;当前小补丁含9个文件,不能仅替换前三个代码文件。
|
| 14 |
+
|
| 15 |
+
Current design: the Docker Space serves the same UI and uses the same MediaPipe model on CPU when graphics fail. The browser discloses image transfer; the server processes request memory without persistence, restricts public files and rejects oversized input. JSON records backend and dimensions. Upload all9 patch files. The Static description below is implementation history, not the current deployment target.
|
| 16 |
+
|
| 17 |
+
`app.js`管理UI状态和绘图,`recognizers.js`管理模型加载和推理。模型失败缓存会清除,便于重试。静态HTTP环境是运行要求。三任务默认不训练,不修改权重。
|
| 18 |
+
|
| 19 |
+
Static Space中的相对图片URL可能重定向到CDN,因此推理输入必须按匿名CORS方式加载。推理前验证像素访问权限。face-api.js 0.22.2的链式任务不可靠地传播拒绝,改用同一组导出的任务类并以普通Promise连接各阶段,不改模型或算法。MediaPipe即使用CPU委托仍通过图形流传图,单独创建HTML WebGL2画布并在坏上下文后销毁任务。
|
| 20 |
+
|
| 21 |
+
原克隆提交和外层backup保留旧目标检测来源。当前部署清单由外层source/package_space.py明确列出,不打包COCO历史图片、Git元数据或备份。可复核记录包括模型哈希、浏览器结果、PPT结构验证和部署包文件清单。
|
| 22 |
+
|
| 23 |
+
The interface and model layers are separate. A clean deployment package includes only active recognition files. Preserve the original Git history and pre-edit backup. Local checks are evidence for this build; a later hosted version requires its own verification.
|
| 24 |
+
|
| 25 |
+
CDN-backed inputs require anonymous CORS before their source is set. Face stages retain the same models but propagate failures through ordinary Promises. MediaPipe uses an independent HTML WebGL2 canvas and evicts failed tasks. A three-file patch and versioned module URLs support updating the deployed Space without changing weights.
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
## 2026-10-14:62页课程与43案例图库更新
|
| 29 |
+
|
| 30 |
+
用户要求恢复参考稿六类Extension、合并重复页、三类真实模型框架和更多原创正常/困难图。课程目录contentBuild20261014-course-3扩展到43例(7face/18gesture/18OCR),默认英文与中文切换不变。基础作业仍为一个任务、两次运行、一页报告;四条简单Extension用现有控件与人工核对,比较额外方法/训练是高级选做。
|
| 31 |
+
|
| 32 |
+
index.html/app.js/style.css新增分组与目录,sample_catalog.js包含原创小预览;server.py仅新增静态公开白名单。app.py、recognizers.js、权重、依赖、ZeroGPU启动登记、测高和Blob修复保持原样。现版本须上传完整课程更新包或完整Gradio包,旧四文件UI/OCR包不足。43例实际本地Chrome/Gradio测试及上传、分组、语言、390px、JSON回归完成;不推断总体准确率,未发布远程。
|
| 33 |
+
|
| 34 |
+
English:62-slide teaching revision restores six optional extensions and three source-checked model frameworks. The43-case synthetic gallery adds grouping and real recorded difficulties. The beginner core, native Gradio, startup/model contracts and prior fixes remain. Deployment needs all gallery/update files; no remote publication or scientific performance claim is implied.
|
| 35 |
+
|
docs/dev/LATEST.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## 2026-10-14:62页课程与43案例图库更新
|
| 2 |
+
|
| 3 |
+
用户要求恢复参考稿六类Extension、合并重复页、三类真实模型框架和更多原创正常/困难图。课程目录contentBuild20261014-course-3扩展到43例(7face/18gesture/18OCR),默认英文与中文切换不变。基础作业仍为一个任务、两次运行、一页报告;四条简单Extension用现有控件与人工核对,比较额外方法/训练是高级选做。
|
| 4 |
+
|
| 5 |
+
index.html/app.js/style.css新增分组与目录,sample_catalog.js包含原创小预览;server.py仅新增静态公开白名单。app.py、recognizers.js、权重、依赖、ZeroGPU启动登记、测高和Blob修复保持原样。现版本须上传完整课程更新包或完整Gradio包,旧四文件UI/OCR包不足。43例实际本地Chrome/Gradio测试及上传、分组、语言、390px、JSON回归完成;不推断总体准确率,未发布远程。
|
| 6 |
+
|
| 7 |
+
English:62-slide teaching revision restores six optional extensions and three source-checked model frameworks. The43-case synthetic gallery adds grouping and real recorded difficulties. The beginner core, native Gradio, startup/model contracts and prior fixes remain. Deployment needs all gallery/update files; no remote publication or scientific performance claim is implied.
|
| 8 |
+
|
| 9 |
+
## 先前记录(按原日期保留)
|
| 10 |
+
|
| 11 |
+
# 当前开发状态 / Current development
|
| 12 |
+
|
| 13 |
+
2026-10-14教学内容修订:学生指南明确无需账号、编程、安装、部署或训练,作业仅用内置样例完成两次控制变量运行及一页报告;课程资料加入论文、官方文档、仓库。最终入口为ZevonLew/Image_Recognition。只修改指南与说明文件,识别模型、运行库、app.py/server.py/app.js/recognizers.js均保留。线上状态通过公开Space API核对为RUNNING;本轮未提交远程,指南更新需上传对应文档。
|
| 14 |
+
|
| 15 |
+
最新UI/OCR修复20261013-layout-2:线上layout-1版本已RUNNING,但固定高度导致课程内部出现第二根滚动条。本地app.py改为Gradio加载时观察同源课程body高度,让iframe跟随内容;不使用父页面vh,实际HF App外层响应覆盖验证桌面和390px窄屏高度稳定,内部滚动差为0。上传OCR的Blob URL此前被立即释放,导致示例可用而上传图点击运行报Failed to fetch;app.js保留当前URL至替换时,并清空文件控件以允许重复选择同一文件。首页延迟加载face-api/Tesseract库,样例按钮使用内嵌小缩略图,只下载实际选中原图并提前请求默认输入。16次本地真实模型运行/5组检查通过,含OCR上传与重复文件选择;无需改依赖、模型或ZeroGPU流程。四文件补丁与完整包同步;未写入远程。
|
| 16 |
+
|
| 17 |
+
Layout patch20261013-layout-2 follows the child course body's intrinsic height, removing the second scrollbar while retaining the earlier fix for the HF outer-frame growth loop. An uploaded image's Blob URL stays valid until replaced so the OCR worker can fetch it on Run. Libraries load on first use and default sample images are preloaded. The running Space needs the matching four-file patch or the complete archive. Local real-model and actual HF parent-overlay tests passed; remote publication is not implied.
|
| 18 |
+
|
| 19 |
+
最新启动补丁20261013-zero-1:HF提交435ecd3086e2a0a8f67899e2db7fa7c1676b5283已是Gradio,但请求zero-a10g;应用CPU模型成功加载后,被平台以No @spaces.GPU function detected during startup关闭。修复app.py注册真实、隐藏、按需CUDA维护回调,父lifespan调用一次spaces.zero.startup;挂载式Uvicorn入口未调用Blocks.launch,原生报告钩子此前没有执行。spaces固定0.51.3,PyTorch使用平台预装版;应用不绑定可能属于代理的PORT。识别代码、模型、前端版本保留。下面CPU运行证据不能证明ZeroGPU已启动;专项SDK模拟报告与真正HF部署需区分。没有远程推送。
|
| 20 |
+
|
| 21 |
+
Startup patch20261013-zero-1 fixes missing registration/reporting on existing ZeroGPU hardware. A genuine optional CUDA diagnostic is bound to a hidden Gradio API; the parent lifespan explicitly reports startup once because Uvicorn/mount_gradio_app bypasses Blocks.launch. Normal recognition never invokes that API. spaces0.51.3 is pinned for the inspected integration; use platform PyTorch. APP_PORT controls application binding. Keep recognition models/files unchanged. Local SDK-report mocks do not establish hosted CUDA or successful remote deployment.
|
| 22 |
+
|
| 23 |
+
当前版本20261013-gradio-1:根据用户“不用Docker、上传即可运行”的明确要求,改为原生Gradio5.49.1 SDK/Python3.10入口app.py,packages.txt安装系统依赖,requirements.txt固定兼容版本。现有课程界面和模型不变,通过官方mount_gradio_app接口启动同源页面/CPU服务,不调用GPU。可以保留现有ZeroGPU硬件,不要求PRO或降级。
|
| 24 |
+
|
| 25 |
+
本轮本地实际Gradio首页13次模型运行与4组检查通过,含完全禁用HTML/Offscreen WebGL的人脸/四手势/OCR、上传、阈值、空结果、错误恢���、JSON、中文切换、390px布局及图形可用路径,页面脚本错误0。证据位于外层validation/gradio_validation.json与gradio_linux_dependencies.json。课件启动页/资料页及双语文档同步;没有推送远程。
|
| 26 |
+
|
| 27 |
+
Native Gradio5.49.1/Python3.10 is now the deployment target. app.py mounts the same UI and CPU compatibility service; models/settings are unchanged. Dependencies install automatically. The app requests no GPU execution and needs no Docker/PRO/hardware change. Local checks passed13 actual model runs/4 check groups with no page errors; a later HF deployment requires verification after upload. The older Docker records below are history.
|
| 28 |
+
|
| 29 |
+
2026-10-13用户明确同意清理test:已备份并移出旧detector.js、wr92-language.js/.css、101个COCO样例/索引与4张旧指南截图,共108文件、16,488,545字节。当前应用没有引用这些文件;识别代码、模型、运行库、许可证、Git记录与治理文件保留。备份在外层backup/20261013-191024,明细与验证在validation/test_cleanup.json。清理仅影响本地目录,没有修改远程Space。
|
| 30 |
+
|
| 31 |
+
The user authorized cleanup:108 unreferenced legacy files were backed up and moved out of test. Active recognition code/models/runtimes/licenses and Git/project guidance remain. Receipts are in the teacher validation/test_cleanup.json; no remote mutation or new inference result is implied.
|
| 32 |
+
|
| 33 |
+
最新恢复版 `20261013-recovery-1`:线上18:29上传49文件覆盖16:42的3文件修复,识别模块与初版hash相同,SDK仍Static、CPU部署文件缺失。已复现旧人脸挂起与手势失败。保留CORS和显式原生Promise人脸阶段、同模型CPU回退,增加HTML/界面/模型/健康接口版本对齐与旧文件阻止运行。唯一推荐日期恢复ZIP含52当前文件;旧Static包退出交付目录。新14次兼容运行9组检查 + 13次线上资源覆盖回归8组检查通过、页面错误0。对应外层validation/hf_recovery_inspection.json、gesture_cpu_validation.json、space_recovery_live_validation.json。没有发布远程。
|
| 34 |
+
|
| 35 |
+
Recovery build20261013-recovery-1 keeps the verified face/CORS fixes and same-model CPU gesture fallback. The live49-file upload restored initial broken code and did not deploy the CPU backend. Matching HTML/interface/model/health build IDs prevent mixed releases. Upload the complete dated52-file recovery package; old Static archives are withdrawn. Current tests cover14 compatibility runs/9 checks and13 live-resource overlays/8 checks, without page errors. No remote publication is implied.
|
| 36 |
+
|
| 37 |
+
2026-10-13无WebGL兼容:用户要求采取方便且无需自行设计的解决方案。新增server.py + Dockerfile + requirements.txt,将部署SDK改为Docker CPU Basic。图形可用时保持浏览器识别,手势WebGL2/activeTexture/上下文失败自动调用同一MediaPipe 0.10.18与同一task模型的CPU接口。人脸/OCR仍在浏览器运行。页面明确手势图片会发送到本Space,服务仅在内存处理、不保存;JSON记录backend和尺寸。9文件补丁与完整CPU部署包可直接上传。
|
| 38 |
+
|
| 39 |
+
验证证据:validation/gesture_cpu_validation.json(位于外层课程目录)覆盖14次真实浏览器运行和7组检查:两类画布WebGL入口均不可用、四手势、严格阈值、无手、大图、API故障恢复、正常图形、activeTexture自动CPU回退、HF线上资源响应覆盖、并发锁、禁用WebGL的人脸/OCR。无页面脚本错误;故障注入的HTTP/网络console错误保留在记录中。未推送远程,HF Linux容器尚待上传构建;本机无Docker命令。
|
| 40 |
+
|
| 41 |
+
CPU compatibility: the supplied Docker CPU backend uses the same gesture model when browser graphics fail; face/OCR remain local. The input panel discloses gesture-image transfer and the server does not save images/results. The teacher validation record covers14 real browser runs and7 check groups, with no page errors. Local response overlays use actual HF resources without publishing. Upload all9 patch files, including README, to activate Docker on the hosted Space; its Linux container build is not claimed as tested here.
|
| 42 |
+
|
| 43 |
+
2026-10-13:根据用户要求改造为AI-Powered Image Recognition。来源HF提交:9d11aee0c2c539b5a5781e12215136c599b01fb0。
|
| 44 |
+
|
| 45 |
+
2026-10-13后续运行修复:用户已部署ZevonLew/Image_Recognition,故障版提交ce897dbf675f752c77281e079caa8a57f8382fb1。Chrome中复现人脸45秒未返回及手势跨域纹理错误。Static Space图片重定向至CDN,旧Image加载缺少CORS。修复图片读取、face-api旧thenable错误传播、MediaPipe独立画布及失效缓存;使用线上资源覆盖本地修复进行回归,不直接写远程仓库。
|
| 46 |
+
|
| 47 |
+
已实现:静态浏览器三任务、英文/中文切换、原创样例、加载与错误状态、结果叠加和JSON导出。固定依赖及权重在本地目录,减少运行时外部网络依赖。
|
| 48 |
+
|
| 49 |
+
验证:本地Edge/Chromium真实推理、阈值方向、无手/无人脸、JSON下载、加载失败、390px布局。详细记录位��外层课程validation/browser_results.json。不创建CI,不使用付费GPU,不推送HF,不改全局Git设置。
|
| 50 |
+
|
| 51 |
+
Implemented: three static-browser tasks, language switching, generated inputs, loading/error states, overlays and export. The user deployed ZevonLew/Image_Recognition. The later CORS/Promise/canvas fix was tested in Chrome against live resources with local response overrides; it has not been pushed by this workflow. Detailed evidence is in the teacher package. The original detector files remain inactive source history.
|
docs/dev/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dev
|
| 2 |
+
|
| 3 |
+
<!-- managed-by: mykcs/.agents/hf-governance-v1:start -->
|
| 4 |
+
## Shared Hugging Face governance
|
| 5 |
+
|
| 6 |
+
- Repository: `wr92-course/test`
|
| 7 |
+
- Type: `space`
|
| 8 |
+
- Profile: `product-space`
|
| 9 |
+
- Core Agent repository: https://github.com/mykcs/.agents
|
| 10 |
+
- Hugging Face governance: https://github.com/mykcs/.agents/blob/main/docs/agents/HUGGING_FACE_REPOSITORY_GOVERNANCE.md
|
| 11 |
+
- Shared Dev protocol: https://github.com/mykcs/.agents/blob/main/docs/agents/DEV_PROTOCOL.md
|
| 12 |
+
- Local current direction: [LATEST.md](LATEST.md)
|
| 13 |
+
- CI mode: `DEPLOY_ONLY`
|
| 14 |
+
|
| 15 |
+
Executable files and live provider state override stale prose.
|
| 16 |
+
<!-- managed-by: mykcs/.agents/hf-governance-v1:end -->
|
docs/wish/ARCHIVE.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Superseded Wishes
|
| 2 |
+
|
| 3 |
+
None established here. Do not fabricate a predecessor.
|
docs/wish/DESIGN.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 设计说明 / Design
|
| 2 |
+
|
| 3 |
+
基础作业路径(2026-10-14):直接打开最终课程网页,选择内置样例,运行、只改一个现有设置、再次运行,再提交一页比较。学生无需从部署开始,也不必证明一次改进或制造失败。how-to-start.html/PDF与课件、讲稿采用相同四步和同一Space入口。
|
| 4 |
+
|
| 5 |
+
Beginner path: open the final lab, select a supplied input, run, change one existing control, run again, and submit a one-page comparison. Deployment and code changes are optional extensions. The student guide and slides share this path and course URL.
|
| 6 |
+
|
| 7 |
+
当前启动设计:Gradio入口承载同源课程页面,学生仍按输入—运行—观察—控制变量—导出的顺序操作。改启动方式不替换三任务模型和阈值语义。无WebGL时使用同模型Space CPU手势路径;数据去向继续明确提示。上传一个完整Gradio包即由平台安装依赖并启动,不给教师增加Docker/硬件/订阅设置。
|
| 8 |
+
|
| 9 |
+
兼容版不改变学生操作顺序:选择图片、点击Run recognition、读取真实结果。手势图形不可用时自动切到Space CPU;运行按钮上方说明数据去向,结果与JSON标明后端。模型类别和阈值含义保持不变,但比较实验需固定后端与处理尺寸。上传补丁即可获得后端,无需自行设计。
|
| 10 |
+
|
| 11 |
+
The compatibility version preserves the learner flow. CPU fallback is automatic for gesture graphics failures, with input-time disclosure and backend labels in the result/JSON. Keep the backend and processed dimensions fixed in comparisons. The current Gradio package includes the backend without Docker setup.
|
| 12 |
+
|
| 13 |
+
课程主线:问题 → 输入输出 → 必要模型机制 → 实际运行 → 控制变量 → 证据。
|
| 14 |
+
|
| 15 |
+
- 首页三个任务标签,左侧输入/设置,右侧结果,下方实验提示。
|
| 16 |
+
- 人脸:恰好一张脸的参考/待比较图片,距离阈值越小越严格。
|
| 17 |
+
- 手势:图片模式,最多两手;候选、分数与接受标签分开。
|
| 18 |
+
- OCR:英文LSTM,文字布局模式6、11、7;输出需核对原图。
|
| 19 |
+
- 参数改变立即清除旧输出,避免混淆实验条件。
|
| 20 |
+
- 结果导出不含人脸描述子,不持久保存输入与结果。
|
| 21 |
+
- `how-to-start.html`与PDF指南同源导出。
|
| 22 |
+
|
| 23 |
+
The page follows the lesson: question, inputs and outputs, model mechanism, real execution, one-variable comparison, and evidence. Task-specific parameters keep their own meanings. Layout, sample selection and error messages support explanation. The editable HTML guide is the source of its matching PDF.
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
## 2026-10-14:62页课程与43案例图库更新
|
| 27 |
+
|
| 28 |
+
用户要求恢复参考稿六类Extension、合并重复页、三类真实模型框架和更多原创正常/困难图。课程目录contentBuild20261014-course-3扩展到43例(7face/18gesture/18OCR),默认英文与中文切换不变。基础作业仍为一个任务、两次运行、一页报告;四条简单Extension用现有控件与人工核对,比较额外方法/训练是高级选做。
|
| 29 |
+
|
| 30 |
+
index.html/app.js/style.css新增分组与目录,sample_catalog.js包含原创小预览;server.py仅新增静态公开白名单。app.py、recognizers.js、权重、依赖、ZeroGPU启动登记、测高和Blob修复保持原样。现版本须上传完整课程更新包或完整Gradio包,旧四文件UI/OCR包不足。43例实际本地Chrome/Gradio测试及上传、分组、语言、390px、JSON回归完成;不推断总体准确率,未发布远程。
|
| 31 |
+
|
| 32 |
+
English:62-slide teaching revision restores six optional extensions and three source-checked model frameworks. The43-case synthetic gallery adds grouping and real recorded difficulties. The beginner core, native Gradio, startup/model contracts and prior fixes remain. Deployment needs all gallery/update files; no remote publication or scientific performance claim is implied.
|
| 33 |
+
|
docs/wish/LATEST.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## 2026-10-14:62页课程与43案例图库更新
|
| 2 |
+
|
| 3 |
+
用户要求恢复参考稿六类Extension、合并重复页、三类真实模型框架和更多原创正常/困难图。课程目录contentBuild20261014-course-3扩展到43例(7face/18gesture/18OCR),默认英文与中文切换不变。基础作业仍为一个任务、两次运行、一页报告;四条简单Extension用现有控件与人工核对,比较额外方法/训练是高级选做。
|
| 4 |
+
|
| 5 |
+
index.html/app.js/style.css新增分组与目录,sample_catalog.js包含原创小预览;server.py仅新增静态公开白名单。app.py、recognizers.js、权重、依赖、ZeroGPU启动登记、测高和Blob修复保持原样。现版本须上传完整课程更新包或完整Gradio包,旧四文件UI/OCR包不足。43例实际本地Chrome/Gradio测试及上传、分组、语言、390px、JSON回归完成;不推断总体准确率,未发布远程。
|
| 6 |
+
|
| 7 |
+
English:62-slide teaching revision restores six optional extensions and three source-checked model frameworks. The43-case synthetic gallery adds grouping and real recorded difficulties. The beginner core, native Gradio, startup/model contracts and prior fixes remain. Deployment needs all gallery/update files; no remote publication or scientific performance claim is implied.
|
| 8 |
+
|
| 9 |
+
## 先前记录(按原日期保留)
|
| 10 |
+
|
| 11 |
+
# 当前课程项目意图 / Current Wish
|
| 12 |
+
|
| 13 |
+
2026-10-14学生版教学要求:课件直接面向学生,不出现“Suggested rubric”等教师草案措辞。基础作业使用现成网页和内置样例:任选一任务、固定输入、只改一个设置运行两次,提交两张截图与四至六句组成的一页报告。无需账号、编程、安装、部署或训练,结果不变亦有效。论文、官方指南和仓库用于可选深入阅读。最终入口与二维码统一为https://huggingface.co/spaces/ZevonLew/Image_Recognition,模型和运行代码沿用现有版本。
|
| 14 |
+
|
| 15 |
+
Student-facing requirements, 2026-10-14: one built-in sample in the ready-made website, two runs with one changed setting, and a one-page report with two screenshots and four to six sentences. No account, coding, installation, deployment or training is required; unchanged output is valid. Papers, guides and repositories are optional deeper reading. The final entry and QR point to ZevonLew/Image_Recognition; runtime code/models remain unchanged.
|
| 16 |
+
|
| 17 |
+
最新用户约束:不再使用Docker,不要求PRO订阅或改硬件,给出可直接上传的简单版本。采用原生Gradio SDK以app.py启动现有课程页面和CPU手势服务;模型、参数、样例、双语与导出保留。完整包带requirements.txt和packages.txt,由平台自动安装。可以保留现有ZeroGPU配置;启动必须登记按需CUDA维护接口并发送报告,但普通识别和页面加载不调用GPU。现阶段需解决课程内层滚动条、上传OCR的Failed to fetch以及首页等待:已有运行中的Gradio版使用AI-Powered_Image_Recognition_HF_UI_OCR_Fix.zip四文件补丁,首次部署使用AI-Powered_Image_Recognition_HF_Gradio.zip。以下Docker兼容记录仅为历史。
|
| 18 |
+
|
| 19 |
+
Current direction: a simple native Gradio SDK upload, without Docker, a PRO requirement or hardware downgrade. app.py starts the same course UI and CPU gesture service; tasks/models/settings remain aligned with the slides. Dependencies install automatically. Keep existing ZeroGPU hardware; register an optional CUDA maintenance API and send its startup report. Normal recognition never invokes that API. The current four-file UI/OCR patch addresses the second scrollbar, uploaded-image OCR failure and slow initial library loading; the complete Gradio archive serves first deployments. Older Docker records below are history.
|
| 20 |
+
|
| 21 |
+
历史兼容方向(已由上面的Gradio版本取代):用户反馈浏览器缺少WebGL2,并要求方便、无需自行设计的方案。课程任务和模型保持一致,当时交付Docker CPU兼容版:人脸/OCR仍在浏览器;手势图形故障时自动在本Space的CPU上用同一模型识别。界面在运行前说明手势图片可能发送到Space,后端内存处理、不保存;无需学生修改Chrome设置或购买GPU。旧9文件补丁不再是当前交付物。
|
| 22 |
+
|
| 23 |
+
Historical compatibility direction: the earlier Docker CPU package introduced the same-model gesture fallback when browser graphics fail. The current Gradio package preserves that behavior, discloses image transfer and does not persist inputs/results. The user does not need to design a backend or change browser settings; updating the public Space still requires upload and build.
|
| 24 |
+
|
| 25 |
+
更新:2026-10-13。依据用户明确要求,将克隆的目标检测教学起点改造成AI-Powered Image Recognition课程项目。旧源文件已在外层课程目录backup/20261013-112855备份,Git来源历史保留。
|
| 26 |
+
|
| 27 |
+
## 中文
|
| 28 |
+
|
| 29 |
+
为入门学生提供人脸验证、静态手势识别、英文印刷体OCR三个真实浏览器实验。学生依次选择输入、运行预训练模型、读懂输出、��变一个设置并导出证据。UI默认英文,可单独切换中文;HF卡片中文在前、英文在后。基础作业无需训练。
|
| 30 |
+
|
| 31 |
+
课件与应用使用相同任务、模型、参数和样例。用户已部署ZevonLew/Image_Recognition;后续浏览器修复使用线上资源与本地响应覆盖验证,待用户上传补丁后改变公开版本。本流程没有向远程仓库推送。课件最后一页已采用最终ZevonLew/Image_Recognition入口。生成样例用于教学,不是性能基准。
|
| 32 |
+
|
| 33 |
+
## English
|
| 34 |
+
|
| 35 |
+
Provide three real browser experiments: face verification, static gesture recognition and printed-English OCR. Keep inputs, model calls, output interpretation and controlled comparisons visible. The app defaults to English with a separate Chinese switch; the HF card remains Chinese first and English second.
|
| 36 |
+
|
| 37 |
+
Slides and app share tasks, models, settings and samples. The user deployed ZevonLew/Image_Recognition. The browser fix is validated using live resources and local response overlays; upload the patch to change the public version. This workflow has not pushed to a remote repository. The configured course link is now the final ZevonLew/Image_Recognition Space. Generated examples are teaching inputs, not an accuracy benchmark. Training is optional.
|
docs/wish/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Course Space Wish
|
| 2 |
+
|
| 3 |
+
This folder records the current product intent for this teaching Space.
|
| 4 |
+
|
| 5 |
+
- [LATEST.md](LATEST.md) — the current Wish and priorities.
|
| 6 |
+
- [DESIGN.md](DESIGN.md) — how the Wish shapes the learner and instructor experience.
|
| 7 |
+
- [ARCHIVE.md](ARCHIVE.md) — earlier Wishes when the central intent changes.
|
| 8 |
+
|
| 9 |
+
The shared update and archiving rules live in [WISH_PROTOCOL.md](https://github.com/mykcs/.codex/blob/main/website-governance/WISH_PROTOCOL.md). This folder owns this Space's intent; it does not duplicate the cross-project protocol.
|
| 10 |
+
|
| 11 |
+
<!-- managed-by: mykcs/.agents/hf-governance-v1:start -->
|
| 12 |
+
## Shared Hugging Face governance
|
| 13 |
+
|
| 14 |
+
- Repository: `wr92-course/test`
|
| 15 |
+
- Type: `space`
|
| 16 |
+
- Profile: `product-space`
|
| 17 |
+
- Core Agent repository: https://github.com/mykcs/.agents
|
| 18 |
+
- Hugging Face governance: https://github.com/mykcs/.agents/blob/main/docs/agents/HUGGING_FACE_REPOSITORY_GOVERNANCE.md
|
| 19 |
+
- Shared Wish protocol: https://github.com/mykcs/.agents/blob/main/docs/agents/WISH_PROTOCOL.md
|
| 20 |
+
- Current local Wish: [LATEST.md](LATEST.md)
|
| 21 |
+
|
| 22 |
+
Wish owns durable mission/direction, not scientific facts, immutable history, or live provider state.
|
| 23 |
+
<!-- managed-by: mykcs/.agents/hf-governance-v1:end -->
|
how-to-start.html
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Beginner Assignment · AI-Powered Image Recognition</title><link rel="stylesheet" href="./style.css"></head>
|
| 4 |
+
<body><main class="shell guide">
|
| 5 |
+
<nav class="topbar"><a href="./index.html">← Vision Lab</a><a href="./how-to-start.pdf">PDF guide</a></nav>
|
| 6 |
+
<p class="eyebrow">CREATIVE TECHNOLOGY · STUDENT GUIDE</p>
|
| 7 |
+
<h1>One task. Two runs. A short report.</h1>
|
| 8 |
+
<p>Use the ready-made course website. No account, coding, installation, deployment or model training is required for this assignment.</p>
|
| 9 |
+
<p><a href="https://huggingface.co/spaces/ZevonLew/Image_Recognition" target="_blank" rel="noopener">Open the course lab</a>: https://huggingface.co/spaces/ZevonLew/Image_Recognition</p>
|
| 10 |
+
<section><h2>1. Choose one task and a built-in sample</h2>
|
| 11 |
+
<p>Choose Face verification, Gesture recognition or Text OCR. You only need one task. If you are unsure, open Text OCR and choose Lab card. Use a supplied sample before trying your own permitted image.</p>
|
| 12 |
+
<p>Face verification compares two face images. Gesture recognition classifies a supported static hand pose. OCR reads printed English. Each task answers a different question.</p></section>
|
| 13 |
+
<section><h2>2. Make the first run</h2>
|
| 14 |
+
<p>Select Run recognition and wait for the result. First use may load model files. Save a screenshot showing the sample, the setting and the actual result. This is your baseline.</p></section>
|
| 15 |
+
<section><h2>3. Change one setting and run again</h2>
|
| 16 |
+
<p>Keep the same input. Choose just one of these routes:</p>
|
| 17 |
+
<p><strong>OCR:</strong> use Lab card; compare One text block with Sparse text. Check the actual returned words against the card.</p>
|
| 18 |
+
<p><strong>Face:</strong> use Same person; compare distance thresholds 0.60 and 0.40. A lower threshold is stricter. Read the distance and the match decision separately.</p>
|
| 19 |
+
<p><strong>Gesture:</strong> use Open palm; compare score thresholds 0.60 and 0.90. A higher threshold is stricter. Read the candidate, score and accepted label separately.</p>
|
| 20 |
+
<p>Click Run recognition again after changing the setting. Save a second screenshot. The result may stay the same; this is a valid observation. You do not need to create a failure or prove an improvement.</p></section>
|
| 21 |
+
<section><h2>4. Write four to six sentences</h2>
|
| 22 |
+
<p>Name your task and sample. State the first setting and result, then the changed setting and second result. Explain a difference or no change. Add one limitation, such as testing only this one sample. You may write in English or Chinese.</p>
|
| 23 |
+
<p>Use your own results. A high score alone does not prove correctness. For OCR, compare characters with the source. For faces and gestures, explain the task-specific output rather than calling every number accuracy.</p></section>
|
| 24 |
+
<section><h2>5. Submit one page</h2>
|
| 25 |
+
<p>Put both screenshots and your four to six sentences in a one-page PDF or document. Check that the task, sample, two settings and results can be identified. A JSON export is optional extra evidence.</p>
|
| 26 |
+
<p>You do not need to submit source code, create a new website, register an account, train a model or cover all three tasks. Reading the papers and repositories is optional deeper learning.</p></section>
|
| 27 |
+
<section><h2>Explore the expanded sample library</h2>
|
| 28 |
+
<p>The website contains 43 cases: 7 face, 18 gesture and 18 OCR cases. Use the Sample group menu for starter examples, all seven named gesture poses, varied inputs, difficult cases and unsupported poses. Select a case, then run it. Case names describe intended inputs, not guaranteed predictions.</p>
|
| 29 |
+
<p>Gesture categories are Open_Palm, Closed_Fist, Victory, Thumb_Up, Thumb_Down, Pointing_Up and ILoveYou. Try occlusion, two hands, a distant hand and no hand as well. Face cases include a mask, a group portrait and an empty scene. OCR cases include menus, notices, one line, sparse labels, similar characters, small print and handwriting.</p>
|
| 30 |
+
<p>In our actual local checks, some small or faint print succeeded. A new palm had a correct raw candidate but score 0.593, below 0.60; a new fist returned no detected hand. An identifier changed from ROOM 10O2 to ROOM 1002. Inspect the actual output before naming an error.</p></section>
|
| 31 |
+
<section><h2>Optional extensions: choose one after the core report</h2>
|
| 32 |
+
<p><strong>Extension 1 — compare recognizers (advanced):</strong> choose one task and the same checked inputs. For OCR, a separately configured recognizer such as PaddleOCR may be compared with Tesseract. A second recognizer is not integrated in this website.</p>
|
| 33 |
+
<p><strong>Extension 2 — tune a parameter (easy):</strong> keep the input and backend fixed. Change only one existing threshold or layout setting. Explain the actual difference or lack of change.</p>
|
| 34 |
+
<p><strong>Extension 3 — test a new domain (easy):</strong> choose one new condition such as a group portrait, occluded hand or photographed label. Record what changed and what was returned.</p>
|
| 35 |
+
<p><strong>Extension 4 — analyze an error (easy):</strong> distinguish missing input, no detection, rejected candidate and incorrect prediction. Show the input and output, then propose one next test.</p>
|
| 36 |
+
<p><strong>Extension 5 — evaluate a small set (easy):</strong> write reference answers, record predictions under fixed settings and count checked correct, partial and wrong outcomes. Do not infer general accuracy from this synthetic library.</p>
|
| 37 |
+
<p><strong>Extension 6 — train or fine-tune (advanced bonus):</strong> use permitted labeled examples, keep a pretrained baseline and reserve an independent final test. Coding and a separate training workflow are needed; training is not required for the core report.</p></section>
|
| 38 |
+
<section><h2>If a run cannot finish</h2>
|
| 39 |
+
<p>Wait for loading, retry the same built-in sample and check the displayed message. If the public site remains unavailable, save the message and report the blocked run to your instructor. Do not invent an output or treat an error screen as a prediction.</p></section>
|
| 40 |
+
<section><h2>Use and check the demo responsibly</h2>
|
| 41 |
+
<p>Use synthetic examples or images you have permission to process. Face and OCR images stay in the browser. Gesture CPU compatibility sends the image to this Space for processing in memory without saving it; large inputs are proportionally reduced to at most 1920 pixels on the longest side. Keep the input and backend fixed between runs.</p>
|
| 42 |
+
<p>Face comparison is not identity proof. Static gestures are not sign-language translation. English OCR still needs checking against the image. One built-in example cannot prove general accuracy.</p></section>
|
| 43 |
+
<footer>AI-Powered Image Recognition · Beginner assignment · 2026-10-14</footer>
|
| 44 |
+
</main></body></html>
|
how-to-start.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:849286ae677f07148bcb8af4809f0c3bc4d9d3f02300dcffee535f59a186a126
|
| 3 |
+
size 662098
|
index.html
CHANGED
|
@@ -1,19 +1,18 @@
|
|
| 1 |
-
<!doctype html>
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</html>
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
| 3 |
+
<meta name="vision-lab-build" content="20261013-gradio-1">
|
| 4 |
+
<title>AI-Powered Image Recognition · Vision Lab</title><meta name="description" content="Browser teaching lab: face verification, gesture recognition and printed English OCR.">
|
| 5 |
+
<link rel="stylesheet" href="./style.css"><link rel="preload" as="image" href="./samples/face_a_turn.png" crossorigin="anonymous" fetchpriority="high"><link rel="preload" as="image" href="./samples/face_a.png" crossorigin="anonymous" fetchpriority="high"><script type="module" src="./app.js?v=20261014-course-3"></script></head>
|
| 6 |
+
<body><main class="shell"><nav class="topbar"><a class="brand" href="./index.html">VISION LAB <span>Creative Technology</span></a><div><a href="./how-to-start.html" data-i18n="guide">How to Start</a><button id="language" aria-label="Switch language">中文</button></div></nav>
|
| 7 |
+
<header class="hero"><div><p class="eyebrow" data-i18n="eyebrow">PRETRAINED MODELS · REAL INFERENCE</p><h1>AI-Powered<br>Image Recognition</h1><p class="lede" data-i18n="lede">Compare faces. Read a gesture. Turn printed text into editable words.</p></div><aside><strong data-i18n="path">One image. A useful result.</strong><p data-i18n="promise">Choose a task, inspect its output, change one setting and explain the difference.</p><div class="badges"><span data-i18n="browser">Browser + CPU compatibility</span><span data-i18n="training">No training required</span></div></aside></header>
|
| 8 |
+
<div class="tabs" role="tablist" aria-label="Recognition task"><button role="tab" id="tab-face" aria-selected="true" data-task="face" data-i18n="face">01 Face verification</button><button role="tab" id="tab-gesture" aria-selected="false" data-task="gesture" data-i18n="gesture">02 Gesture recognition</button><button role="tab" id="tab-ocr" aria-selected="false" data-task="ocr" data-i18n="ocr">03 Text OCR</button></div>
|
| 9 |
+
<section class="workspace" role="tabpanel" id="workspace" aria-labelledby="tab-face"><div class="controls"><p class="step" data-i18n="step1">STEP 1 · CHOOSE AN INPUT</p><h2 id="task-title"></h2><p id="task-description" class="muted"></p><div class="sample-library"><label for="sample-group" data-i18n="samplegroup">Sample group</label><select id="sample-group"></select><p data-i18n="samplehelp">Choose a group, then select an input. Hard inputs need checking.</p></div><div id="examples" class="examples"></div><p id="sample-note" class="sample-note"></p>
|
| 10 |
+
<div id="face-controls"><label class="upload"><span data-i18n="refupload">Upload reference image</span><input id="reference-upload" type="file" accept="image/png,image/jpeg,image/webp"></label><label class="upload"><span data-i18n="probeupload">Upload probe image</span><input id="probe-upload" type="file" accept="image/png,image/jpeg,image/webp"></label></div>
|
| 11 |
+
<label id="single-upload-wrap" class="upload" hidden><span data-i18n="upload">Upload your image</span><input id="single-upload" type="file" accept="image/png,image/jpeg,image/webp"></label>
|
| 12 |
+
<div id="threshold-wrap" class="setting"><label for="threshold"><span id="threshold-label"></span><output id="threshold-value">0.60</output></label><input id="threshold" type="range" min="0.1" max="1" step="0.05" value="0.6"><p id="threshold-help"></p></div>
|
| 13 |
+
<div id="ocr-settings" class="setting" hidden><label for="psm" data-i18n="layout">Text layout</label><select id="psm"><option value="6" data-i18n="block">One text block</option><option value="11" data-i18n="sparse">Sparse text</option><option value="7" data-i18n="line">One text line</option></select><p data-i18n="english">English printed text · Tesseract LSTM</p></div>
|
| 14 |
+
<p id="gesture-processing" class="muted" hidden></p>
|
| 15 |
+
<button id="run" class="primary" data-i18n="run">Run recognition</button><p id="status" role="status" aria-live="polite"></p><p id="model-name" class="model"></p></div>
|
| 16 |
+
<div class="output"><div class="output-head"><p class="step" data-i18n="step2">STEP 2 · INSPECT THE RESULT</p><button id="export" disabled data-i18n="export">Export result JSON</button></div><div id="canvases" class="canvases"><figure id="reference-figure"><figcaption data-i18n="reference">Reference</figcaption><canvas id="reference-canvas"></canvas></figure><figure><figcaption id="probe-caption">Probe</figcaption><canvas id="probe-canvas"></canvas></figure></div><div id="result" class="result" aria-live="polite"></div><details id="details" hidden><summary data-i18n="details">Result details</summary><pre id="json"></pre></details></div></section>
|
| 17 |
+
<section class="experiment"><div><p class="step" data-i18n="step3">STEP 3 · ASK A BETTER QUESTION</p><h2 id="question"></h2><p id="experiment"></p></div><div class="answer"><strong data-i18n="record">Record your evidence</strong><p data-i18n="recordhelp">Keep the input fixed. Save the setting, the output, one success and one limitation. Change only one factor.</p></div></section>
|
| 18 |
+
<footer><p id="release-version" class="model">Build: 20261013-gradio-1</p><p id="deployment-status" class="model" role="status">Checking the Space CPU service?</p><p data-i18n="privacy">Face and OCR images stay in this browser. If browser graphics fail, the gesture image is sent to this Space CPU for recognition and is not saved. Use synthetic or permitted images. Results and face descriptors are not stored by the app.</p><p data-i18n="limits">Teaching demo: no identity proof, no sign-language translation, no guaranteed transcription accuracy. Model files may take time to load.</p><a href="./how-to-start.html" data-i18n="submission">Student guide: core task and extensions →</a></footer></main></body></html>
|
|
|
models/eng.traineddata.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed350f3752f81ee8f38769edc14d92d997dababe23b565c59879372cc46a2468
|
| 3 |
+
size 10923060
|
models/face/face_landmark_68_model-shard1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4611ef65c87d836d03d684b30eec4d195d8b219fa1dd58fc58945831c6b9299b
|
| 3 |
+
size 356840
|
models/face/face_landmark_68_model-weights_manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"weights":[{"name":"dense0/conv0/filters","shape":[3,3,3,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.004853619781194949,"min":-0.5872879935245888}},{"name":"dense0/conv0/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.004396426443960153,"min":-0.7298067896973853}},{"name":"dense0/conv1/depthwise_filter","shape":[3,3,32,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00635151559231328,"min":-0.5589333721235686}},{"name":"dense0/conv1/pointwise_filter","shape":[1,1,32,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.009354315552057004,"min":-1.2628325995276957}},{"name":"dense0/conv1/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0029380727048013726,"min":-0.5846764682554731}},{"name":"dense0/conv2/depthwise_filter","shape":[3,3,32,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0049374802439820535,"min":-0.6171850304977566}},{"name":"dense0/conv2/pointwise_filter","shape":[1,1,32,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.009941946758943446,"min":-1.3421628124573652}},{"name":"dense0/conv2/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0030300481062309416,"min":-0.5272283704841838}},{"name":"dense0/conv3/depthwise_filter","shape":[3,3,32,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.005672684837790097,"min":-0.7431217137505026}},{"name":"dense0/conv3/pointwise_filter","shape":[1,1,32,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.010712201455060173,"min":-1.5639814124387852}},{"name":"dense0/conv3/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0030966934035806097,"min":-0.3839899820439956}},{"name":"dense1/conv0/depthwise_filter","shape":[3,3,32,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0039155554537679636,"min":-0.48161332081345953}},{"name":"dense1/conv0/pointwise_filter","shape":[1,1,32,64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.01023082966898002,"min":-1.094698774580862}},{"name":"dense1/conv0/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0027264176630506327,"min":-0.3871513081531898}},{"name":"dense1/conv1/depthwise_filter","shape":[3,3,64,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.004583378632863362,"min":-0.5454220573107401}},{"name":"dense1/conv1/pointwise_filter","shape":[1,1,64,64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00915846403907327,"min":-1.117332612766939}},{"name":"dense1/conv1/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.003091680419211294,"min":-0.5966943209077797}},{"name":"dense1/conv2/depthwise_filter","shape":[3,3,64,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.005407439727409214,"min":-0.708374604290607}},{"name":"dense1/conv2/pointwise_filter","shape":[1,1,64,64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00946493943532308,"min":-1.2399070660273235}},{"name":"dense1/conv2/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.004409168514550901,"min":-0.9788354102303}},{"name":"dense1/conv3/depthwise_filter","shape":[3,3,64,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.004478132958505668,"min":-0.6493292789833219}},{"name":"dense1/conv3/pointwise_filter","shape":[1,1,64,64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.011063695888893277,"min":-1.2501976354449402}},{"name":"dense1/conv3/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.003909627596537272,"min":-0.6646366914113363}},{"name":"dense2/conv0/depthwise_filter","shape":[3,3,64,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.003213915404151468,"min":-0.3374611174359041}},{"name":"dense2/conv0/pointwise_filter","shape":[1,1,64,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.010917326048308728,"min":-1.4520043644250609}},{"name":"dense2/conv0/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.002800439152063108,"min":-0.38085972468058266}},{"name":"dense2/conv1/depthwise_filter","shape":[3,3,128,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0050568851770139206,"min":-0.6927932692509071}},{"name":"dense2/conv1/pointwise_filter","shape":[1,1,128,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.01074961213504567,"min":-1.3222022926106174}},{"name":"dense2/conv1/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0030654204242369708,"min":-0.5487102559384177}},{"name":"dense2/conv2/depthwise_filter","shape":[3,3,128,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00591809165244009,"min":-0.917304206128214}},{"name":"dense2/conv2/pointwise_filter","shape":[1,1,128,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.01092823346455892,"min":-1.366029183069865}},{"name":"dense2/conv2/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.002681120470458386,"min":-0.36463238398234055}},{"name":"dense2/conv3/depthwise_filter","shape":[3,3,128,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0048311497650894465,"min":-0.5797379718107336}},{"name":"dense2/conv3/pointwise_filter","shape":[1,1,128,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.011227761062921263,"min":-1.4483811771168429}},{"name":"dense2/conv3/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0034643323982463162,"min":-0.3360402426298927}},{"name":"dense3/conv0/depthwise_filter","shape":[3,3,128,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.003394978887894574,"min":-0.49227193874471326}},{"name":"dense3/conv0/pointwise_filter","shape":[1,1,128,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.010051267287310432,"min":-1.2765109454884247}},{"name":"dense3/conv0/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.003142924752889895,"min":-0.4588670139219247}},{"name":"dense3/conv1/depthwise_filter","shape":[3,3,256,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00448304671867221,"min":-0.5872791201460595}},{"name":"dense3/conv1/pointwise_filter","shape":[1,1,256,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.016063522357566685,"min":-2.3613377865623026}},{"name":"dense3/conv1/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00287135781026354,"min":-0.47664539650374765}},{"name":"dense3/conv2/depthwise_filter","shape":[3,3,256,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.006002906724518421,"min":-0.7923836876364315}},{"name":"dense3/conv2/pointwise_filter","shape":[1,1,256,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.017087187019048954,"min":-1.6061955797906016}},{"name":"dense3/conv2/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.003124481205846749,"min":-0.46242321846531886}},{"name":"dense3/conv3/depthwise_filter","shape":[3,3,256,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.006576311588287353,"min":-1.0193282961845398}},{"name":"dense3/conv3/pointwise_filter","shape":[1,1,256,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.015590153955945782,"min":-1.99553970636106}},{"name":"dense3/conv3/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.004453541601405424,"min":-0.6546706154065973}},{"name":"fc/weights","shape":[256,136],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.010417488509533453,"min":-1.500118345372817}},{"name":"fc/bias","shape":[136],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0025084222648658005,"min":0.07683877646923065}}],"paths":["face_landmark_68_model-shard1"]}]
|
models/face/face_recognition_model-shard1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:412566a2b8d814d84c60b8055ec5d3b3b2328ef7cd7853384e03ec3db7b053d8
|
| 3 |
+
size 4194304
|
models/face/face_recognition_model-shard2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69350fdecd845c532e44dd8f7d0521c773505ef46b87cc34f46640a0cc334ecc
|
| 3 |
+
size 2249728
|
models/face/face_recognition_model-weights_manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"weights":[{"name":"conv32_down/conv/filters","shape":[7,7,3,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0005260649557207145,"min":-0.07101876902229645}},{"name":"conv32_down/conv/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":8.471445956577858e-7,"min":-0.00014740315964445472}},{"name":"conv32_down/scale/weights","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.06814416062598135,"min":5.788674831390381}},{"name":"conv32_down/scale/biases","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.008471635042452345,"min":-0.931879854669758}},{"name":"conv32_1/conv1/conv/filters","shape":[3,3,32,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0007328585666768691,"min":-0.0974701893680236}},{"name":"conv32_1/conv1/conv/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":1.5952091238361e-8,"min":-0.000001978059313556764}},{"name":"conv32_1/conv1/scale/weights","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.02146628510718252,"min":3.1103382110595703}},{"name":"conv32_1/conv1/scale/biases","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0194976619645661,"min":-2.3787147596770644}},{"name":"conv32_1/conv2/conv/filters","shape":[3,3,32,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0004114975824075587,"min":-0.05267169054816751}},{"name":"conv32_1/conv2/conv/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":4.600177166424806e-9,"min":-5.70421968636676e-7}},{"name":"conv32_1/conv2/scale/weights","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.03400764932819441,"min":2.1677730083465576}},{"name":"conv32_1/conv2/scale/biases","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.010974494616190593,"min":-1.240117891629537}},{"name":"conv32_2/conv1/conv/filters","shape":[3,3,32,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0005358753251094444,"min":-0.0760942961655411}},{"name":"conv32_2/conv1/conv/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":5.9886454383719385e-9,"min":-7.366033889197485e-7}},{"name":"conv32_2/conv1/scale/weights","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.014633869657329485,"min":2.769575357437134}},{"name":"conv32_2/conv1/scale/biases","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.022131107367721257,"min":-2.5229462399202234}},{"name":"conv32_2/conv2/conv/filters","shape":[3,3,32,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00030145110452876373,"min":-0.03949009469326805}},{"name":"conv32_2/conv2/conv/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":6.8779549306497095e-9,"min":-9.010120959151119e-7}},{"name":"conv32_2/conv2/scale/weights","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.03929369870354148,"min":4.8010945320129395}},{"name":"conv32_2/conv2/scale/biases","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.010553357180427103,"min":-1.2452961472903983}},{"name":"conv32_3/conv1/conv/filters","shape":[3,3,32,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0003133527642371608,"min":-0.040735859350830905}},{"name":"conv32_3/conv1/conv/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":4.1064200719547974e-9,"min":-3.0387508532465503e-7}},{"name":"conv32_3/conv1/scale/weights","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.009252088210161994,"min":2.333256721496582}},{"name":"conv32_3/conv1/scale/biases","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.007104101251153385,"min":-0.34810096130651585}},{"name":"conv32_3/conv2/conv/filters","shape":[3,3,32,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00029995629892629733,"min":-0.031195455088334923}},{"name":"conv32_3/conv2/conv/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":5.62726418316814e-9,"min":-6.921534945296811e-7}},{"name":"conv32_3/conv2/scale/weights","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0467432975769043,"min":5.362040996551514}},{"name":"conv32_3/conv2/scale/biases","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.010314425300149357,"min":-1.268674311918371}},{"name":"conv64_down/conv1/conv/filters","shape":[3,3,32,64],"dtype":"float32"},{"name":"conv64_down/conv1/conv/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":8.373908033218849e-10,"min":-1.172347124650639e-7}},{"name":"conv64_down/conv1/scale/weights","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0066875364266189875,"min":2.5088400840759277}},{"name":"conv64_down/conv1/scale/biases","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.01691421620986041,"min":-2.0973628100226906}},{"name":"conv64_down/conv2/conv/filters","shape":[3,3,64,64],"dtype":"float32"},{"name":"conv64_down/conv2/conv/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":2.3252014483766877e-9,"min":-2.673981665633191e-7}},{"name":"conv64_down/conv2/scale/weights","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.032557439804077146,"min":2.6351239681243896}},{"name":"conv64_down/conv2/scale/biases","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.015429047509735706,"min":-1.5429047509735707}},{"name":"conv64_1/conv1/conv/filters","shape":[3,3,64,64],"dtype":"float32"},{"name":"conv64_1/conv1/conv/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":1.1319172039756998e-9,"min":-1.4941307092479238e-7}},{"name":"conv64_1/conv1/scale/weights","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.007802607031429515,"min":3.401733160018921}},{"name":"conv64_1/conv1/scale/biases","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.01425027146058924,"min":-0.6982633015688727}},{"name":"conv64_1/conv2/conv/filters","shape":[3,3,64,64],"dtype":"float32"},{"name":"conv64_1/conv2/conv/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":2.5635019893325435e-9,"min":-2.717312108692496e-7}},{"name":"conv64_1/conv2/scale/weights","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.04062801716374416,"min":3.542381525039673}},{"name":"conv64_1/conv2/scale/biases","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.007973166306813557,"min":-0.7415044665336609}},{"name":"conv64_2/conv1/conv/filters","shape":[3,3,64,64],"dtype":"float32"},{"name":"conv64_2/conv1/conv/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":1.2535732661062331e-9,"min":-1.8302169685151004e-7}},{"name":"conv64_2/conv1/scale/weights","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.005631206549850164,"min":2.9051668643951416}},{"name":"conv64_2/conv1/scale/biases","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.01859012585060269,"min":-2.3795361088771445}},{"name":"conv64_2/conv2/conv/filters","shape":[3,3,64,64],"dtype":"float32"},{"name":"conv64_2/conv2/conv/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":2.486726369919351e-9,"min":-3.5311514452854786e-7}},{"name":"conv64_2/conv2/scale/weights","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.03740917467603497,"min":5.571568965911865}},{"name":"conv64_2/conv2/scale/biases","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.006418555858088475,"min":-0.5263215803632549}},{"name":"conv64_3/conv1/conv/filters","shape":[3,3,64,64],"dtype":"float32"},{"name":"conv64_3/conv1/conv/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":7.432564576875473e-10,"min":-8.47312361763804e-8}},{"name":"conv64_3/conv1/scale/weights","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.006400122362024644,"min":2.268010377883911}},{"name":"conv64_3/conv1/scale/biases","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.010945847922680425,"min":-1.3353934465670119}},{"name":"conv64_3/conv2/conv/filters","shape":[3,3,64,64],"dtype":"float32"},{"name":"conv64_3/conv2/conv/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":2.278228722014533e-9,"min":-3.212302498040492e-7}},{"name":"conv64_3/conv2/scale/weights","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.029840927498013366,"min":7.038398265838623}},{"name":"conv64_3/conv2/scale/biases","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.010651412197187834,"min":-1.161003929493474}},{"name":"conv128_down/conv1/conv/filters","shape":[3,3,64,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00020040544662989823,"min":-0.022245004575918704}},{"name":"conv128_down/conv1/conv/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":4.3550543563576545e-10,"min":-4.311503812794078e-8}},{"name":"conv128_down/conv1/scale/weights","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.007448580685783835,"min":2.830846071243286}},{"name":"conv128_down/conv1/scale/biases","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.01211262824488621,"min":-1.6957679542840696}},{"name":"conv128_down/conv2/conv/filters","shape":[3,3,128,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00022380277514457702,"min":-0.02484210804104805}},{"name":"conv128_down/conv2/conv/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":9.031058637304466e-10,"min":-1.1650065642122761e-7}},{"name":"conv128_down/conv2/scale/weights","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.027663578706629135,"min":3.1111555099487305}},{"name":"conv128_down/conv2/scale/biases","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.008878476946961646,"min":-1.029903325847551}},{"name":"conv128_1/conv1/conv/filters","shape":[3,3,128,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00022380667574265425,"min":-0.032899581334170175}},{"name":"conv128_1/conv1/conv/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":4.4147297756478345e-10,"min":-5.253528433020923e-8}},{"name":"conv128_1/conv1/scale/weights","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.013599334978589825,"min":3.634530782699585}},{"name":"conv128_1/conv1/scale/biases","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.014059314073300829,"min":-1.4059314073300828}},{"name":"conv128_1/conv2/conv/filters","shape":[3,3,128,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00021715293474057143,"min":-0.02909849325523657}},{"name":"conv128_1/conv2/conv/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":9.887046963276768e-10,"min":-1.1370104007768284e-7}},{"name":"conv128_1/conv2/scale/weights","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.029993299409454943,"min":3.630716562271118}},{"name":"conv128_1/conv2/scale/biases","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00782704236460667,"min":-0.7200878975438136}},{"name":"conv128_2/conv1/conv/filters","shape":[3,3,128,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00017718105923895743,"min":-0.022324813464108636}},{"name":"conv128_2/conv1/conv/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":3.567012027797675e-10,"min":-5.243507680862582e-8}},{"name":"conv128_2/conv1/scale/weights","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.007940645778880399,"min":4.927767753601074}},{"name":"conv128_2/conv1/scale/biases","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.015933452867994122,"min":-1.5614783810634238}},{"name":"conv128_2/conv2/conv/filters","shape":[3,3,128,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0001451439717236687,"min":-0.01712698866339291}},{"name":"conv128_2/conv2/conv/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":1.0383988570966347e-9,"min":-1.2356946399449953e-7}},{"name":"conv128_2/conv2/scale/weights","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.02892604528688917,"min":4.750600814819336}},{"name":"conv128_2/conv2/scale/biases","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00797275748907351,"min":-0.7414664464838364}},{"name":"conv256_down/conv1/conv/filters","shape":[3,3,128,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0002698827827093648,"min":-0.03994265184098599}},{"name":"conv256_down/conv1/conv/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":5.036909834755123e-10,"min":-6.396875490139006e-8}},{"name":"conv256_down/conv1/scale/weights","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.014870181738161573,"min":4.269900798797607}},{"name":"conv256_down/conv1/scale/biases","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.022031106200872685,"min":-3.1063859743230484}},{"name":"conv256_down/conv2/conv/filters","shape":[3,3,256,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00046430734150549946,"min":-0.03946612402796745}},{"name":"conv256_down/conv2/conv/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":6.693064577513153e-10,"min":-7.630093618364995e-8}},{"name":"conv256_down/conv2/scale/weights","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.03475512242784687,"min":3.608360528945923}},{"name":"conv256_down/conv2/scale/biases","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.01290142021927179,"min":-1.1482263995151893}},{"name":"conv256_1/conv1/conv/filters","shape":[3,3,256,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00037147209924810076,"min":-0.04234781931428348}},{"name":"conv256_1/conv1/conv/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":3.2105515457510146e-10,"min":-3.467395669411096e-8}},{"name":"conv256_1/conv1/scale/weights","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.043242172166412955,"min":5.28542947769165}},{"name":"conv256_1/conv1/scale/biases","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.01643658619300992,"min":-1.3149268954407936}},{"name":"conv256_1/conv2/conv/filters","shape":[3,3,256,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0003289232651392619,"min":-0.041773254672686264}},{"name":"conv256_1/conv2/conv/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":9.13591691187321e-10,"min":-1.2333487831028833e-7}},{"name":"conv256_1/conv2/scale/weights","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0573908618852204,"min":4.360693454742432}},{"name":"conv256_1/conv2/scale/biases","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0164216583850337,"min":-1.3958409627278647}},{"name":"conv256_2/conv1/conv/filters","shape":[3,3,256,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00010476927912118389,"min":-0.015610622589056398}},{"name":"conv256_2/conv1/conv/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":2.418552539068639e-10,"min":-2.539480166022071e-8}},{"name":"conv256_2/conv1/scale/weights","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.06024209564807368,"min":6.598613739013672}},{"name":"conv256_2/conv1/scale/biases","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.01578534350675695,"min":-1.1049740454729864}},{"name":"conv256_2/conv2/conv/filters","shape":[3,3,256,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.00005543030908002573,"min":-0.007427661416723448}},{"name":"conv256_2/conv2/conv/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":1.0822061852320308e-9,"min":-1.515088659324843e-7}},{"name":"conv256_2/conv2/scale/weights","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.04302893993901272,"min":2.2855491638183594}},{"name":"conv256_2/conv2/scale/biases","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.006792667566561232,"min":-0.8083274404207865}},{"name":"conv256_down_out/conv1/conv/filters","shape":[3,3,256,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.000568966465253456,"min":-0.05632768006009214}},{"name":"conv256_down_out/conv1/conv/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":4.5347887884881677e-10,"min":-6.530095855422961e-8}},{"name":"conv256_down_out/conv1/scale/weights","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.017565592597512638,"min":4.594101905822754}},{"name":"conv256_down_out/conv1/scale/biases","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.04850864223405427,"min":-6.306123490427055}},{"name":"conv256_down_out/conv2/conv/filters","shape":[3,3,256,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0003739110687199761,"min":-0.06954745878191555}},{"name":"conv256_down_out/conv2/conv/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":1.2668428328152895e-9,"min":-2.2549802424112154e-7}},{"name":"conv256_down_out/conv2/scale/weights","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.04351314469879749,"min":4.31956672668457}},{"name":"conv256_down_out/conv2/scale/biases","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.021499746921015722,"min":-1.2039858275768804}},{"name":"fc","shape":[256,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.000357687911566566,"min":-0.04578405268052045}}],"paths":["face_recognition_model-shard1","face_recognition_model-shard2"]}]
|
models/face/tiny_face_detector_model-shard1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7503ce7df31039b1c43316a9b865cab6a70dd748cc602d3fa28b551503c3871
|
| 3 |
+
size 193321
|
models/face/tiny_face_detector_model-weights_manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"weights":[{"name":"conv0/filters","shape":[3,3,3,16],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.009007044399485869,"min":-1.2069439495311063}},{"name":"conv0/bias","shape":[16],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.005263455241334205,"min":-0.9211046672334858}},{"name":"conv1/depthwise_filter","shape":[3,3,16,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.004001977630690033,"min":-0.5042491814669441}},{"name":"conv1/pointwise_filter","shape":[1,1,16,32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.013836609615999109,"min":-1.411334180831909}},{"name":"conv1/bias","shape":[32],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0015159862590771096,"min":-0.30926119685173037}},{"name":"conv2/depthwise_filter","shape":[3,3,32,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.002666276225856706,"min":-0.317286870876948}},{"name":"conv2/pointwise_filter","shape":[1,1,32,64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.015265831292844286,"min":-1.6792414422128714}},{"name":"conv2/bias","shape":[64],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0020280554598453,"min":-0.37113414915168985}},{"name":"conv3/depthwise_filter","shape":[3,3,64,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.006100742489683862,"min":-0.8907084034938438}},{"name":"conv3/pointwise_filter","shape":[1,1,64,128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.016276211832083907,"min":-2.0508026908425725}},{"name":"conv3/bias","shape":[128],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.003394414279975143,"min":-0.7637432129944072}},{"name":"conv4/depthwise_filter","shape":[3,3,128,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.006716050119961009,"min":-0.8059260143953211}},{"name":"conv4/pointwise_filter","shape":[1,1,128,256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.021875603993733724,"min":-2.8875797271728514}},{"name":"conv4/bias","shape":[256],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.0041141652009066415,"min":-0.8187188749804216}},{"name":"conv5/depthwise_filter","shape":[3,3,256,1],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.008423839597141042,"min":-0.9013508368940915}},{"name":"conv5/pointwise_filter","shape":[1,1,256,512],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.030007277283014035,"min":-3.8709387695088107}},{"name":"conv5/bias","shape":[512],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.008402082966823203,"min":-1.4871686851277068}},{"name":"conv8/filters","shape":[1,1,512,25],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.028336129469030042,"min":-4.675461362389957}},{"name":"conv8/bias","shape":[25],"dtype":"float32","quantization":{"dtype":"uint8","scale":0.002268134028303857,"min":-0.41053225912299807}}],"paths":["tiny_face_detector_model-shard1"]}]
|
models/gesture_recognizer.task
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97952348cf6a6a4915c2ea1496b4b37ebabc50cbbf80571435643c455f2b0482
|
| 3 |
+
size 8373440
|
packages.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
libgl1
|
| 2 |
+
libglib2.0-0
|
recognizers.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** 三个独立识别任务的模型层,仅处理当前页面内存中的图像。 */
|
| 2 |
+
const caches=new Map();
|
| 3 |
+
export const versions={face:'face-api.js 0.22.2',gesture:'MediaPipe Tasks Vision 0.10.18',ocr:'Tesseract.js 5.1.1 / English LSTM'};
|
| 4 |
+
// 页面和模型层必须属于同一发布版,防止上传旧整包覆盖已修好的代码。
|
| 5 |
+
export const release='20261013-gradio-1';
|
| 6 |
+
async function cached(key,factory){
|
| 7 |
+
// 加载失败清理缓存,允许修复文件或网络后再次尝试。
|
| 8 |
+
if(!caches.has(key))caches.set(key,factory().catch(e=>{caches.delete(key);throw e;}));
|
| 9 |
+
return caches.get(key);
|
| 10 |
+
}
|
| 11 |
+
async function loadVendor(key,src){
|
| 12 |
+
// 首页先呈现和读取样例;大型识别库在首次运行对应任务时再下载,失败后可重试。
|
| 13 |
+
return cached(`vendor:${key}`,()=>new Promise((resolve,reject)=>{
|
| 14 |
+
const script=document.createElement('script');script.src=src;script.async=true;
|
| 15 |
+
script.onload=resolve;
|
| 16 |
+
script.onerror=()=>{script.remove();reject(new Error(`Could not load ${key} library. Check the Space connection and retry.`));};
|
| 17 |
+
document.head.append(script);
|
| 18 |
+
}));
|
| 19 |
+
}
|
| 20 |
+
function requireReadableImage(image){
|
| 21 |
+
// 在进入模型之前检测同源/CORS状态,避免face-api的旧版任务链吞掉异步异常后一直等待。
|
| 22 |
+
if(!(image.naturalWidth||image.width)||!(image.naturalHeight||image.height))throw new Error('The image is not ready. Choose a valid image and retry.');
|
| 23 |
+
const canvas=document.createElement('canvas');canvas.width=canvas.height=1;
|
| 24 |
+
try{const ctx=canvas.getContext('2d');if(!ctx)throw new Error('A 2D canvas is unavailable.');ctx.drawImage(image,0,0,1,1);ctx.getImageData(0,0,1,1);}
|
| 25 |
+
catch(e){
|
| 26 |
+
if(e.name==='SecurityError'||/taint|cross-origin/i.test(e.message))throw new Error('This image cannot be read because it was loaded without CORS permission. Update app.js and reload the page; an external image host must allow CORS.');
|
| 27 |
+
throw e;
|
| 28 |
+
}finally{canvas.width=canvas.height=0;}
|
| 29 |
+
}
|
| 30 |
+
async function describeFace(image,settings,label,progress){
|
| 31 |
+
// 0.22.2的ComposableTask.then不转发拒绝,且链式检测用了不带reject的异步Promise。
|
| 32 |
+
// 使用同一组导出的任务类,并将父阶段结果作为普通Promise传入:保留算法,可靠传递每阶段错误。
|
| 33 |
+
progress(`Detecting the ${label} face…`);
|
| 34 |
+
const detections=await faceapi.detectAllFaces(image,settings).run();
|
| 35 |
+
if(detections.length!==1)throw new Error(`Use exactly one clear face per image. Found ${detections.length} in the ${label} image.`);
|
| 36 |
+
const detected=detections.map(detection=>faceapi.extendWithFaceDetection({},detection));
|
| 37 |
+
progress(`Locating landmarks in the ${label} face…`);
|
| 38 |
+
const landmarks=await new faceapi.DetectAllFaceLandmarksTask(Promise.resolve(detected),image,false).run();
|
| 39 |
+
progress(`Encoding the ${label} face descriptor…`);
|
| 40 |
+
const described=await new faceapi.ComputeAllFaceDescriptorsTask(Promise.resolve(landmarks),image).run();
|
| 41 |
+
return described[0];
|
| 42 |
+
}
|
| 43 |
+
export async function recognizeFace(reference,probe,threshold,progress){
|
| 44 |
+
requireReadableImage(reference);requireReadableImage(probe);
|
| 45 |
+
progress('Loading face detector, landmarks and descriptor model…');
|
| 46 |
+
await loadVendor('face-api.js','./vendor/face-api.min.js');
|
| 47 |
+
await cached('face',async()=>{await Promise.all([faceapi.nets.tinyFaceDetector.loadFromUri('./models/face'),faceapi.nets.faceLandmark68Net.loadFromUri('./models/face'),faceapi.nets.faceRecognitionNet.loadFromUri('./models/face')]);return true;});
|
| 48 |
+
const settings=new faceapi.TinyFaceDetectorOptions({inputSize:416,scoreThreshold:0.35});
|
| 49 |
+
const a=await describeFace(reference,settings,'reference',progress);
|
| 50 |
+
const b=await describeFace(probe,settings,'probe',progress);
|
| 51 |
+
progress('Comparing the two face descriptors…');
|
| 52 |
+
const distance=faceapi.euclideanDistance(a.descriptor,b.descriptor);
|
| 53 |
+
const pack=x=>({box:{x:x.detection.box.x,y:x.detection.box.y,width:x.detection.box.width,height:x.detection.box.height},points:x.landmarks.positions.map(p=>({x:p.x,y:p.y}))});
|
| 54 |
+
return {task:'face',model:versions.face,distance,threshold,decision:distance<threshold?'Match at this threshold':'No match at this threshold',reference:pack(a),probe:pack(b),note:'Distance is not a probability. A match is not proof of identity. Descriptors are not exported.'};
|
| 55 |
+
}
|
| 56 |
+
async function recognizeGestureOnCPU(image,threshold,progress){
|
| 57 |
+
// 网页Tasks无法绕过WebGL上传路径;后端使用相同版本和同一份task权重,不伪装成浏览器CPU。
|
| 58 |
+
progress('Browser graphics unavailable. Recognizing on the Space CPU…');
|
| 59 |
+
const canvas=document.createElement('canvas');
|
| 60 |
+
// 限制兼容路径的传输尺寸并维持比例,归一化关键点仍可叠加在原图上。
|
| 61 |
+
const scale=Math.min(1,1920/Math.max(image.naturalWidth,image.naturalHeight));
|
| 62 |
+
canvas.width=Math.max(1,Math.round(image.naturalWidth*scale));canvas.height=Math.max(1,Math.round(image.naturalHeight*scale));
|
| 63 |
+
const ctx=canvas.getContext('2d');if(!ctx)throw new Error('A 2D canvas is unavailable.');
|
| 64 |
+
ctx.drawImage(image,0,0,canvas.width,canvas.height);
|
| 65 |
+
const blob=await new Promise(resolve=>canvas.toBlob(resolve,'image/png'));canvas.width=canvas.height=0;
|
| 66 |
+
if(!blob)throw new Error('Could not prepare the gesture image. Choose a valid image and retry.');
|
| 67 |
+
const controller=new AbortController();const timer=setTimeout(()=>controller.abort(),120000);
|
| 68 |
+
try{
|
| 69 |
+
const response=await fetch(`./api/gesture?threshold=${encodeURIComponent(threshold)}`,{method:'POST',headers:{'Content-Type':'image/png'},body:blob,signal:controller.signal});
|
| 70 |
+
if(response.status===404||response.status===405)throw new Error('CPU compatibility is not deployed yet. Upload the complete CPU fix package, including README.md, app.py and packages.txt, to this Space and wait for the Gradio build to finish.');
|
| 71 |
+
let data;try{data=await response.json();}catch{throw new Error('The Space CPU did not return a recognition result. Wait for the Space to finish starting and retry.');}
|
| 72 |
+
if(!response.ok)throw new Error(typeof data.detail==='string'?data.detail:'The Space CPU could not complete this run. Retry shortly.');
|
| 73 |
+
if(data.task!=='gesture'||!Array.isArray(data.hands))throw new Error('The Space CPU returned an invalid gesture result.');
|
| 74 |
+
data.inputSize={width:image.naturalWidth,height:image.naturalHeight};return data;
|
| 75 |
+
}catch(e){if(e.name==='AbortError')throw new Error('The Space CPU took too long to respond. Wait a moment and retry.');throw e;}
|
| 76 |
+
finally{clearTimeout(timer);}
|
| 77 |
+
}
|
| 78 |
+
export async function recognizeGesture(image,threshold,progress){
|
| 79 |
+
requireReadableImage(image);
|
| 80 |
+
let model;
|
| 81 |
+
try{
|
| 82 |
+
model=await cached('gesture',async()=>{
|
| 83 |
+
// 独立HTML画布保留可用设备的浏览器推理;无WebGL时由真正的Space CPU接口接手。
|
| 84 |
+
const canvas=document.createElement('canvas');canvas.width=canvas.height=2;
|
| 85 |
+
const gl=canvas.getContext('webgl2');
|
| 86 |
+
if(!gl||gl.isContextLost())throw new Error('WebGL2 is unavailable.');
|
| 87 |
+
progress('Loading hand landmarks and gesture classifier…');
|
| 88 |
+
const {FilesetResolver,GestureRecognizer}=await import('./vendor/vision_bundle.mjs');
|
| 89 |
+
const files=await FilesetResolver.forVisionTasks('./vendor/wasm');
|
| 90 |
+
return GestureRecognizer.createFromOptions(files,{canvas,baseOptions:{modelAssetPath:'./models/gesture_recognizer.task',delegate:'CPU'},runningMode:'IMAGE',numHands:2});
|
| 91 |
+
});
|
| 92 |
+
progress('Recognizing the static hand pose…');
|
| 93 |
+
const raw=model.recognize(image);
|
| 94 |
+
const hands=raw.landmarks.map((points,i)=>{const g=raw.gestures[i]?.[0];const accepted=Boolean(g&&g.categoryName!=='None'&&g.score>=threshold);return {label:accepted?g.categoryName:'Unrecognized',candidate:g?.categoryName||'None',score:g?.score||0,accepted,handedness:raw.handedness[i]?.[0]?.categoryName||'Unknown',points:points.map(p=>({x:p.x,y:p.y,z:p.z}))};});
|
| 95 |
+
return {task:'gesture',model:versions.gesture,backend:'Browser CPU (WebGL image input)',threshold,hands,note:hands.length?'Static gesture categories; not sign-language translation.':'No hand detected. Try a clear, complete hand on a simple background.'};
|
| 96 |
+
}catch(e){
|
| 97 |
+
// 清除坏图形任务;上下文错误自动回退,其他输入/权重错误保持真实失败。
|
| 98 |
+
caches.delete('gesture');try{model?.close();}catch{}
|
| 99 |
+
if(/activeTexture|WebGL|OpenGL|context/i.test(e.message))return recognizeGestureOnCPU(image,threshold,progress);
|
| 100 |
+
throw e;
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
export async function recognizeOCR(image,psm,progress){
|
| 104 |
+
requireReadableImage(image);
|
| 105 |
+
progress('Loading OCR engine…');
|
| 106 |
+
await loadVendor('Tesseract.js','./vendor/tesseract.min.js');
|
| 107 |
+
const worker=await cached('ocr',()=>Tesseract.createWorker('eng',1,{workerPath:'./vendor/worker.min.js',corePath:'./vendor/tesseract-core',langPath:'./models',logger:m=>progress(`${m.status}${Number.isFinite(m.progress)?' '+Math.round(m.progress*100)+'%':''}`)}));
|
| 108 |
+
await worker.setParameters({tessedit_pageseg_mode:String(psm)});
|
| 109 |
+
progress('Reading printed English text…');
|
| 110 |
+
const {data}=await worker.recognize(image);
|
| 111 |
+
return {task:'ocr',model:versions.ocr,psm,text:data.text.trim(),confidence:data.confidence,words:(data.words||[]).map(w=>({text:w.text,confidence:w.confidence,box:w.bbox})),note:'Confidence is a review cue, not measured accuracy. Check every important character against the image.'};
|
| 112 |
+
}
|
| 113 |
+
export const handConnections=[[0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]];
|
requirements.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
# Gradio SDK自动安装;识别使用CPU/浏览器,ZeroGPU只登记按需维护接口。
|
| 3 |
+
gradio==5.49.1
|
| 4 |
+
# 挂载式启动使用SDK的startup协议,固定本次已核查/验证的版本;torch使用平台预装版。
|
| 5 |
+
spaces==0.51.3
|
| 6 |
+
pydantic==2.11.10
|
| 7 |
+
huggingface-hub==0.35.3
|
| 8 |
+
mediapipe==0.10.18
|
| 9 |
+
numpy==1.26.4
|
| 10 |
+
opencv-contrib-python==4.11.0.86
|
| 11 |
+
jax==0.4.35
|
| 12 |
+
jaxlib==0.4.35
|
| 13 |
+
# 两端使用实际验证过的科学计算依赖,避免Linux/Python3.11自动选择更新版本。
|
| 14 |
+
scipy==1.15.3
|
| 15 |
+
matplotlib==3.10.9
|
| 16 |
+
ml-dtypes==0.5.4
|
| 17 |
+
protobuf==4.25.9
|
| 18 |
+
Pillow==11.3.0
|
| 19 |
+
fastapi==0.115.14
|
| 20 |
+
uvicorn==0.34.3
|
sample_catalog.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** 原创样例分组;expected只表示设计参考,预测必须来自模型。 */
|
| 2 |
+
export const sampleCatalog = [{"id":"face_a_turn","task":"face","group":"starter","label":["Same person","同一人物"],"image":"face_a_turn","reference":"face_a","expected":true,"note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRioEAABXRUJQVlA4IB4EAADQEwCdASpKAEoAPoU2lkelIyIhMzZvMKAQiWIAyMvxBznzbeK7h95un6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2PCTm+8RGbyyiWKzvOMVZrNdLKL7lmlSainf6ZuCquh/Y+/4O7jF8vk3zwxTcIppsWWepjFvBN4+OrXyTLMj3rVeVnHUcHG1JOVTc3QiaK5nsPk3trncZ/3b3qwqJPZZxO+zBpXjdlHQOu/7Hgxbq4PjxxZQv8Z7AYzCPRsvUv+iRvVZf3B01Cquxu294nKbBNM3WbZfWw4dwALI/Ysa8B9vvte7JuVqyfdrsjlj+kxNo1BF12FmlfRHv+acwwWQvAAAA"},{"id":"face_b","task":"face","group":"starter","label":["Different person","不同人物"],"image":"face_b","reference":"face_a","expected":false,"note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRuoCAABXRUJQVlA4IN4CAAAwEACdASpKAEoAPok4l0elI6IhMzqsAKARCUAYsUYrosLX5Jbjz41zWsviYEcP/qdrIjpEfZxIh+kEyIsa63I/ngwv2mI0NckONLTMCfS7acji363IHs48MTnMdc7huFWs6/RMwyHm9udt+1xGi3d3Y2q5nIa9j4iTSnmAjhhf10C8CHKR0TYQpEAA/vDiq9qVUv9ZkSc0ilrAbWVQ3617TkXZotU5CRYiSvcQpnXt8XJrn3YTf3C4lw5VlHC/QXBOVV76IR4IiClV6pX8a1Nfn4fWcz2AQfLUFPsmut2i3JrgDsfS6wx+AOOmK/xdsgBVVaGPghdsUjaDnyKBLjoFlZA2lo7OSnuegfK0IYpcOfa87R0a+9XmbfMQFBTkkn6+ofnRHF3drr9yl07JHbAvoRRkWC1X1pcM+7++7h/qUA8+ob9hCQ/8n9hZKxDj5sKbdj2v3NaZQ7aXKHAzfeDE0FA7h1jQGf6k/GK4pa3MbrJcUmaWY9kZ4YkyBMv9AWC+0O+bsOa7S6IVbn4gW5uVQO7+V4KcxMfS70ESLs6niZ/H1o0qP2XPqwSDTSOZgGlJmxsJMw1rMBxWhpo55bQjVW6p14dccRQe3u/FO25mdSzseeiJAnwAW1vXsZ9NtK4vZCN0AL4bQiZS9N0Wc9V1gufAH+jyg7IuR7aKjjtD8cYaQJ2hR4d6RMvC9ZRJZ9NlJE+tYG1UdDqQxuCa/rYQ7wre94lFErQUH6/K7iTndkjOBQJs6KvXp4QSUhc+8OUSwrXYOQejuaV6q+dJG4DCtKIOq1CbNlx0ECvvG1jyx7ZVA/UrrpvDNOwxygculbIsR9ofbDjmBOXTBjY2dbM55XAkbWgdymhplTdUpbQjNGzRvH+IYt17MwwzEQcD5mxfjXeDoL36LQRsPt0CCIxMQd/1vpgcm0gcu2I0+qvp+AWHsYQ2p0bgmK4lVTlc84AkArAywTS9l43i3gAAAA=="},{"id":"face_c_same","task":"face","group":"variation","label":["Portrait C: changed pose","人物C:姿态变化"],"image":"rev_face_c_turn","reference":"rev_face_c","expected":true,"note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRigDAABXRUJQVlA4IBwDAACQEACdASpKAEoAPpE+mEelo6KhLNmdULASCWUAzUs2uKHaMQMcMXDC8J5znsXcLttTat0dEE/NIFeXb7amj8QJ68gmWkdrhgfqf+XBdRGQ+zDtMfwbqb66/P0/BzntC6pCTGJFw3OjXf//yoKIIE/a2jzWMDcjrbkMMb9gsQ2pDk+PFb3vlnaMmXn1AmAA/vOAvFcHwiYGRYMLrKph8pFIGJQPy+vyTRZ+hYRdQjF6M1PJodC0NJrZ0Oq0zfX/2HLz2cZTcCQCDUs/t+uDK5WsudUi6V9/K8YXGJERpxWbe0M03wgXeLACFxkzXjIRRaIusiQnTlseew2rS+LeZFW4X7qOeHbDK/gYYS4lURKmcWIrZZ3j07AK2y8Wio1y8Al4PHW7K/lmi3JPP0UgP0RUD7TnalUAwhCDZ4fYMCkWYP/iuJaVGJIfxpJu6dbblHiBkneQs/oqR0k+KSpxcR9bIqFNGbnoos2iGIIjk9CwT3QlGf+pE2fEPMVy9ZUPNHd1Mu4M0CmMwssNNOuPPopnzZQcR1rbe9Y6H/3D6Z5tB8SAPXdrDtvfxoeWJbxg6dUbxgFuAWb6usSSgNtwm8YCtoralxHbKncjlRnMVgrjHqV4iajr5Lip88IDn5tYcM6eweJbYcC7ebynpw4BI19rV8Vv7n2ofxVlOlseqkHvUAl94ur+F9E5dDmwVg0Wls6P0kZoXts+3GV+6YgYd021egiTkp4hb23fgDEd3WwXjlK23fo0Y3Dy/yzXwrNTWEuxFtEr9bK8S2nD5l6xrE/IZQNY+mTMpUkKe3pLdSLvXf9CG9S2jnTQvduyGsQFG1kqG63ClahLIE5zAiwTmmFGLnJ5FWNIk85Ux6P8DbasU4fmItyLfHDrx8wHCJgdAcAIlv4gRERFARBcdrJ3ATZduoQNmubvZ3ZuRM3Wu6MzjcPEMe24hQSvrFBTYafu0OnPIdjzLQX697Zcpn0S/gNOG/h61Do7btLGXHcFdXgNh063jCeIPw48E1Ww1Pely2RJ3TKGUokTWKeyVWGHWOwPrz3wpP6yNCKpPKgA"},{"id":"face_c_mask","task":"face","group":"difficult","label":["Portrait C: mask","人物C:口罩遮挡"],"image":"rev_face_c_mask","reference":"rev_face_c","expected":true,"note":["Occlusion may affect detection or the comparison. Record what happens.","遮挡可能影响检测或比较,应记录实际结果。"],"preview":"data:image/webp;base64,UklGRiIDAABXRUJQVlA4IBYDAACwEACdASpKAEoAPpE+mEelo6KhK5Vd+LASCWUAzlnIBE26DWeuCNrCIp9Wrlbn8VBsLV/23/ssls/PBwgPyUFQZCvJfwHY6upAq30r9+sucwp4l22Cq5lnhWmlkTHTZQNmZbwbrSZ85QpY3v1QLosWy4VHlIe/kulSkLQAigr6FjxTBZZVY8Kioudki5ngAP7zhbBa0uuBjE/P1FZlk1IdG8IOLaO2XAVZujFJC1gDoBtCe4Fuh8ACexYI7vuqtGWRvDaMRtSVWo07dccIZG6lzlh5276Y3i2m2qhUBLecOhMlFEYXbFwoCHEYUeOTI0SNR1PKvZ7IaFBoVHOt7QO9/p3I9bqyuQtXbxhZnPbqOUI4eWUiGoC2kketvrm0NyhKrMWitl5JNkOJaBl/j8r4sACwz8/BkQU4sUPqmFgo3glxS2E25PeSg+P0E+V409Ge+TtkQsSdZVH9/OjasrIkB3FZWzJ3vYH7Td8rmKWRYHj1AAvv29T9JyWQfNd09VWbTNWTAckvzRz13YS55b7l0lVHCTFwYo7IoHaQHMQSVJaoqq2gmowbmR9WgmzyzGkeOqqcmFwWwU17W3BQvZDWHfw3gXeOmhd/dXeQoBL/hGiqpru56OETFKHCFl4FqN+tcttjps2Wjw+CYuIXrDyLqG5bB+prBP1ZZjryjnhMBuaKNvfVGuSpyhBWRGcmTbonGetlBrgkmVrRVvgcyFyrkjhI+LfqLlhB96/1+TgJTKjhHF14NPP/BHAULYfUsWd02BEPVo+oedSbBOC74H04oNV0af9Qq7r7nhBblvahI1O6tA3XPMy6brPt9mjWRzPWDojpoUQDg/dZM2WP1cSLfOCSu2agOBIoPBY2mOw3kvQkDL+j0lJs7qG72n3YtLuaVSCwZsqHL9wVcxMUxk6PaO0yidg3SY8XrsHDnwmXWE7MLxacj5f5LHtYiaN0UiAtsffhQcSn5S9jnUU/Ue+stOabCMSSaqVLE2J3yHUtWQdxRojmutDRKmtplu2UmGED6ttiLgnicaRFIyDGjCsKGIbccAAA"},{"id":"face_c_different","task":"face","group":"variation","label":["C versus D","人物C与D"],"image":"rev_face_d","reference":"rev_face_c","expected":false,"note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRkADAABXRUJQVlA4IDQDAABwEQCdASpKAEoAPpFCm0ilpCKhLNM6qLASCUzVKzU+teOLQrhYUgXnOMD2ldoQp6MZhcoW5iy9zCJ+v3bDtEOYVoINi9ThkcIwquKmQwpKd44/tH7QHvgXIxdGJIbCrWP7yGloUe4E77YJSOYKiezsAFlJGLuvfG/nyjve2RzZmeO0A1ztzECwGO/MMbTq5SrJiqZQAP0RL403ae6T7m5r5rqb5JYUYT71HadHy9hbnI4Fg47KND9s2b8E9CLCPUi+/KaYpj50IciEfPuff6RvqW6Or0zXboEHE+FRsyl/YEja0Vg+KtSd5fCVijFVyr7WYTLz1DMUWU2ReB1+wCgHmxSPoU6/NbiWHq3BBuxRaGRo2tu6bvuXovNnW2E3Vd/brFY6IlLB7JG2WMKHwYlkEl74DGt2KHMcAnHlkb2itrOl8GSntqXVp2Bf3n+mfmhVwMfGTbHYSjlnxOjvS6gmX43L9ufyoucpJOlsF14kp/zoIkr7t+V5BpnvzGFqWMo62VkpzjUyexBAXxbuWpvrDmwTqwxPmx/axhPNfo95peObBQGviyQqJwd9jRevxsAIgH9sJ8k3xY2bqnBYbUiF+xS7OcHzS7PbGov4AP42EoThcvJiVk8DrlLwb1carCRX8jTzXlwxrKo6dkLxZyQ9GK6CcIPt0lXwoYlEeQjcmn/bATw7lxtX7iSQ5WgVXrR8PaRACR/jP/f/Iv4MLw+MyonV+FGQ4QJFeP7oLAeqYJp/1VpkcFWiAXsCsylUEv9poAMXkmr91c+vYnsqZZiJybtVtqjyD3e3I9Y3sLFAtZqB5KZru5TMTEiTGBUExfcox5t7Nj6nPa6CrWPTnROxOHMmeaxBgT8Et3nhWsTr82tae6HwQtQxQIHTJ8RKRaRFKeI8THPtbh0tEBtbZLFnZH8N99xrMvMPYVJSD9lxa5TS+NvWnryHxyVQvSC1hH/5C8Giw6nvHY5ZeA5bwUbx1JOyvJF4q9sVPEI3EUCpxPSnU4kUbnLSbKEaJA0xJ5wP545lxxzhHTKcBWePJl7tYYbLd/4VfKhlmfVQylC0ubIUUX09I0wWmf/tmSw8atyt8AAA"},{"id":"face_group","task":"face","group":"difficult","label":["Two faces in one image","同图两张脸"],"image":"rev_face_group","reference":"rev_face_c","expected":"reject_multiple_faces","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRvAEAABXRUJQVlA4IOQEAAAwGACdASpkAEMAPpE8mUelo6KhLbZsYLASCUAXwImSERzn0tvrd1UDFBJzl5deoKagU+/shyPDMuQqMcn0EWBqb7bMzY/YohhDXlu1g442KXQL4U9hPo00Bpa+22NKS9k7k/MtOEwBquu207Nk8zrG6DccReMBwoAoxblTCCdlYxLXo+Bad5Xr0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6DHevHZ3eY75VSnaBR/Wfov/fTUQAckqiixKYutgc0+HIJHhYFaxfzYz5yBFL78PDBWGz1/EwaNDDSYaUK9yAxwxD5YCQRwYpUG61Ji+dISj4mfpabQxnr8HmhJMYF27gwSSd5lI54J1J73Vt3e32Hz54kvsL5HFJSGsy8QZGB5zNm/vW39LSoOk9Kr+iTZWpUXSxIaMbmFykJr4YnrX9VVqANxil2uPErY9521b6H60ejZrlQ9lO0GL6XnFjbmiKIM+VDD2xWoI8IzPGAqoB32IEVruzLP/b63//mi2gwT59hKbm6czfV3FBFjqAcMQZ8EC75fZJtCcVGjLDpxC7xEvKPg1W/mL7CrAd6tMrcCGKLps4VFdcfwCl35bOmMf6GVYsG/NGIAA"},{"id":"face_missing","task":"face","group":"difficult","label":["No face: desk","无人脸:桌面"],"image":"rev_nohand","reference":"rev_face_c","expected":"reject_no_face","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRgQEAABXRUJQVlA4IPgDAACQFQCdASpKAEoAPpE6mUiloyKhLNM92LASCWgAwzITWL5sfkeXf6dNCoRG288wH7Qekz6md5O3mosDnhrUqewidDUQ4MwE31lHW+1E6fUAn1lOzGOJ1k8iM478grFASaABJD2CftuA/MHrhxdNQmz3Ap5C505Wl28GbSvYo+723jXmGYy+juagt0U3/NEAf+uoN+HAxJNaBNyxsIhu8hsY7UYgbCaafVqyMYmkMU5lFzyISTgAAP7qg+iXpONlzfWCK0+pBdvsVtpR8vzukwlk7TSmWXxnE9LkdZ+DdezryFPXDpnPrgUPc+he8nWK+14DP0zDBiJm8iK+usYQPFWNoNdc+efHY3YCudW5Pw/7OJwgbQvhFc/pLcMlf3pOkMqBrixQWahNqDtPDIbSrP9aWQJMnhPDiXb03Zs74Vu4BqcDqug0y84xbFR6J2+hTZoJX3gEyzy9v2YQ6RuVT7f0E/pStfDN4klhs3BgSrFWcXK0N2vyHaMV/+55iG+uqj92lL04R15/XrTlzxVvKEwaYqwxOHc7isDE5R5/ppRU1AHVzhq7MdBFTz9WoiUOWfofNh7y9PQcE9tkSlsjXJlFzCEhQ6tOEU97rHdq3RDxV2C1xbQ/3VQuwwJlHlrczJq+I1EPgU5s8AuCstM6nISzvgQ95OF1IcJkBwaLeVAOycHxy5cZeJsEDB7uVxk/m4q7tXCfeO3ylFvZgvS0fJ1cvfFZ13mTnC+VNbyoJMv6YWHZRUdyutZpJzXNcsihRsAp30lcNmNhEeN3vf9m7rduDdyp1+wrEwMMHN7NqnTFd+Zv1GQD98IVS3424boefeaJZAQPhG0Er6uTzznQRzxj/RedeACGL5pIOvV4Kco8Z+fRYIw3WLGrssuDeLzc7rh37lzsEGlOv8ev9hQ4TfUF0rFS59tMHimO5rqS+xbe+f6lCjVu1Y++HzrBe2M6D/zKTMdGmWgnR44Cfefz4SuqKQbFUuWEOqNqkM9qmAD1xqx26KpRpy8wPxtfETl1B2hZphRSNE98a69LJ0/hpAC2p1snSD+pmktm2SzzxaphKkGCcvy+vEJ9H1M4jojkyHSKW0ZdRz+v56hsD/LI7UkoVQiXAON+xJQ3zjK+F4/C0xh4FuaP8RmeBXD2n8DyM4HvWbHk5tjX+h3km5S3Q1SWi1X1N0IhlhkI4ZxvxbTUI/a7f1HPzpvyDGCorFFA7tzpqQ6TJXhaRpInyJhJSyGVNn7kUTyc0muXCeG1tSv25mDULgh8G/tpNpOqbKHiTLCX6wNIJDyQfRsI6e9Vu9mX1MchWcqQhCQdtB/+xbnNqH9h7Tn+ogwaNYB9reRPUeyAmG6BeJuAAA=="},{"id":"hand_palm","task":"gesture","group":"starter","label":["Open palm","张掌"],"image":"hand_palm","reference":null,"expected":"Open_Palm","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRoQCAABXRUJQVlA4IHgCAACQDgCdASpKAEoAPpE+mkmloyIhLNGruLASCUAZr5SxCjk0Enob22d3SeiqrPLGp4VLm2cc2Mo39xemdBbdfSk5FHygId0MZVO3GjQBY9a+5f+Pio2irgmDIxht0G0pn7iExQAoEyga7tKWi0+E/WZmGGT+Be+QRDwUa09SCAD+9ArYxtA/sDnR+mlTb/SKFvURZVgzHfxDA1ZLq+9cafJTZofcZh7eBV8etd6sIZpDTZFqoLn7E5QyWZ+TUx7C5uxiI0D2+WyOEseHgClMUqg9dD3xcpTnyrX5Y/KLvt/V8lR0beEgXOa4RBPA1fg81LoOjBdf1TXZJmu6/rGjTbYIYnpfGJGk/eReqA7uWc01Aog6KC91zcxGHrzEGy1AmKb0j/3De4woAgaI2OwriRmqjiKyrENjLD/GEx47gDUNjTvWkiey4uNZn9voIrH4mP5CP07zaWhihMOD8kRPumEqQjLjEQUATyLQaiUfJpX57yRZzd7pjaX8B64iOFAY9o8hiilSWrseBhJxb+XwsVe8CNRYD+kWDZ6nmNW9n/xZUo5qlD07fUdLunHzCOUyhDU8AoB/qGc5gvPkUAVecifJ3hC/bO2Qm7nQKQ8X1Aplz/1cl5FDsj5dmiz3dXjPld+BbgceUeungZ5T5y2LriL/0wAldxNhwLR4k8jQOXQrTAzAkx5huIqU0QK3fsi/zm/DF/q5BvTRvgb/XChJtvmwt6Ax9hJsauJsnfl01RIsRfoOkJk7Yb3//FMTCTGqEL7a1WHVt0y/18xM/dedZvA0KS+9kkxrqJVhHzOPwRDTAdUpIWjkiiGxKj83Jer+bfyb2GSRQAAAAA=="},{"id":"hand_victory","task":"gesture","group":"starter","label":["Victory","胜利"],"image":"hand_victory","reference":null,"expected":"Victory","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRhACAABXRUJQVlA4IAQCAACQDACdASpKAEoAPpE+mUiloyKhLhXa2LASCWMAybhacW/Rj/wy49HztzMYX1BAlNh70vOZLGy7oBJReOG7HwQTgJAP0RcLQ9vkzBh15qy+csMKYCX40iomlvG+07YI33jsz33aoIZSVNsigIfQAP706Bh2BhneiJri6Pw9oTIukuay4KqR8LzH0r2sMRThhtmC/ZGvaddmmx5HsopN0jhZ4mYEyfVxeam6/N/2NFf3jtEj/bLoGG0QEi9oKHpVrK0zzI3j4J7wHZpSKxSqUqTM9YDaoXU2fiPturxkI785csD85Zc3/TlqMa8nC8Kg0bYV9BD/OcYM6HrE3mq4zVc5TD5zaSPNWb/W9lCDhZ5RcsSL45BRSikpGOy7M5h844nezQgY1KDzft5ATXNNO0PK7+DV0hhOivGeVp9ZwNi6m58IkjjQtK1kYgENmkeb+d7jIDDcXFJCf9lBNUGTdWuHZxv1HFzPdji8R+60YLLizwKoeverSId992gxzLONcGkVbZWClGZZ+zBrgvRyVoD3nv11bmz8OEUNElj34ZbwatUCMMeub9JvPoac5EesvKUd3b+rY/T2XYhqR/Sf7tgawzL83IGjCKGTdzMwCMfIEvphKhiFVislqNSuX9BbJ9oekh0nw4XgqZX169u97RUIjpE7gdJE1pPrVtUbmabgwVBQAAA="},{"id":"hand_fist","task":"gesture","group":"starter","label":["Fist","握拳"],"image":"hand_fist","reference":null,"expected":"Closed_Fist","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRigCAABXRUJQVlA4IBwCAACQDQCdASpKAEoAPpE+m0kloyKhK5cagLASCWMAzb4wqY+3GA7eeXyUitUtY3Ydl+VNb+vr7j04HhFzTD6VFwbrWYaoXMmpTjfbJK1kJgYk+kloW4Zhbrs1Hsj3SdcJTBYYzhPg51/mdgoDvoEtBjrrcW0vIEAA/vJR/jW7yCArRCTh8kyAYAGXpVoRDXH8cz1vyYi0WH4Z3QJsDDtvuxOqNWZnbAK3v9m2WH4JdOGFP4OrERfx3RU5iNRXud7bIr3RaK4I3S39ObLcmxQi0xjKweCernS2OoCRJcwhyEIX3q7OYm0lkNR634rTlhyORQI+SuWzyzYLV+KG96Dv2Uqr2F3yvkHeLMtDElM0GSMTmZpgtM8lG1rhGLq7XJfCLZ/lwCTBetZhIzvzXc5MZ00C9eK69wJvC+HEtQvtbRMaG7oEsPdPBldUt55Hwr6CsahABIL7KKZdpwtaVSqHoPebGV4agxfkV1kvyin8zM/2W7gNh9gfRdk/a9CHDhpjr7oR7n6GSeXDXtPjfEWXIiBtL5wez/MULiIV6XuZWxy7CaroXw0eEv8bWkXJ7HwbgC3cT2wa/5WUXPDZIVGsHKszoAtVk72NLWGCovwLqSyKruVcX3ZV/GcWO3u5njU5LxBny1gS0eZgBxA1IN4fOQOX6DngOOBVyEDiYHirv8Npo+gPp1y0Un6kg4eaQz9ZlsG4iysJGoTyZX+AAAA="},{"id":"hand_thumb","task":"gesture","group":"starter","label":["Thumb up","点赞"],"image":"hand_thumb","reference":null,"expected":"Thumb_Up","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRgACAABXRUJQVlA4IPQBAADwDACdASpKAEoAPpE+mkilo6KhL1apOLASCUAaLxJ46xq3gNs6lPhQlATq27U3OafXhttjKKbLUp2jCEhfX+AiQ4mrIYCvj1kquUpu35iI8HMtoJmwJsRSmovNodu0yDqZcwdenBRTf7aXyddJzagAAP71Gz9kZk+rDrrA6IvTdY0JXL9keVe/nVcmJ5rNHWe/AyGzV1LOqlF9KShTJKKMBVmA3kdIxf0/wg8k7X8Z8W58JBdFNw7TR6tYiHlAvNZdz6r4d9ui52VzcFdDkdYGI3NbFt5BRKdOzhs/eN6AmWPfjfiCGcp+gVrtqYcQd51EN6x7IOjN1j9UDvYIYnI9PGizBMka2qAtxdXqRJUhDXCXBPeeqB1BUxUiKcXtkkrMRzToXKxuaBMkDfAnEUPzoWEfoHjIz9YlHOMbmvTsV1rsEbeENHeak1FGrY0KtrZ3NFF1fYA28Tv6dhzxibxpap8etcDJ0HyceekaVeHUOFP480EoFnni98BGCP93W/ufNuJU2rSsGkPvarNSS53iiYD+0dzRJ/+XFO0Ai+v5Rw3zbrqTe9s8BzuhqZFZB+xUfT9dOJTP8wvJpRsa8E08NOS53t66015ecD/T4qRWHa1j6OlxWd7w60EACYs5TnoZc8DdxwLU0hbVHDJTAdewaAAAAA=="},{"id":"rev_hand_palm","task":"gesture","group":"supported","label":["Open palm: room","张掌:室内"],"image":"rev_hand_palm","reference":null,"expected":"Open_Palm","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRlAEAABXRUJQVlA4IEQEAACwFQCdASpKAEoAPpFAmkolo6IhqlQLwLASCWgAnTOOiESVLe2gY8cL7yxejjd28C4/JmkGBji9uFjpuz2xU3ic8pn4fULpL2a7B+OZ/6rgUlH5lbp8K4wXM9F/GYdodh4yUQpVNaaYfIm1jbgr6HqlKjLFfJU1gU4pivtDXrVAhM9dF1Hu+fg3LZIikrc7J54dwJ1kri4GFvGp9YTuhvw6mR0A9P638WTI0MaXBkUXQwEKs/i56AD+9aiqA9HBaXrP6MfGAcB5f1cojGAyJsDEjxlFROtJ3Wg2tSJT9u1UozYkmm24hr6phRNeIl+7BMxv8boiMywID6IKcWH0hqadyCylHXmuT8o8x2025UGVJFshRU1Duud/lWZHlDTniOxF7GeCZkplIHxROa2jxieYpuYOg54oBAsdx3oUomnf6HO2hIB+8EHU/ZsfqFt45yBoIJgMHexygH9PP/VafjkFGaMfo8oFu9YKOtAwA/K9wxF608XhpXbVG8++6NnjzeU5EI462GvtdB0f1ui/H+tCz9g3rOD+ri+SSd87Q30R1UQ+Olm9DP8/zoM1iI05su6fjKlEy4Vun0529f4BK5NvI/GZ31UYKiRnsDT8YiFN/vkqvYmKgdYPfJ4iieghOBg78RgBqg8c8tS4Ci9ohhRpDR1Ruj7/A/AkMM5CndEqswWj8rAkLLnjAXiSM8UGkB1xu9VnlIBJ5Eki74GyeFbSF6G9cN1mjDttdRgpflffmFc6xsBflF9jZw+vBj/7yCHL90CL2syRRZxJUuNi7N4FvBLFx+SmGZ13GdkEvSPEk93SAGy7wfy7AT7PupXcuw8z4m35DPYNvUVrumV4EyLD6bnULlNdGvI9Nf79ssVjZNP34wTqXPeQSJOoozRrCR/fLu+/GofYxlct4LUcEy4X6pH8nIt4ufspaPX3f5ziC/kWHAF5jOUGcR+s7qjWjScTtll8EgGm0TTm4tGOuLhu3uFbr3+p8Npfk5lqZ4EMkb/ZoHxyISVErlsirRGn+SlyRPUhhvO2NRCJbcAqGwYlUkB00Zh2I57W+M/vFYBYIirrK1oRgZ3GIij/ZLXkLEPW8SFAWs2LGmHnLDpcB3MXMVLrEN+vjn/NsRR+tos1WA1431oLgKBIKAv2b2eMXCE09oyhgu/auTMY1Qo6hUa1uN4pdE9eMn5FutJ1TEo+GsUNbGi+gcbEPSXxgYFID7nNVSuv0DS65gErPwOVr3LWl22gU9RYy8VFkXG7H8O70x9YBo12OgbP1JNZRMtqavQucUtMe3lasl5OOLY9Tvpt5HOZAmzaHjoVtDilF2Xr0sNDCELUj6cN+GKzcGL2JmAv3N3Z0sEuEH2bEGcKr+ofs132AsP+IV17qX9ODnQtHCBAtLJBJR2oyX3NPUwlIZ0WJUcqfshLR3GU1MDkPJV2t5nWQW49ZegAKtF3lpxOA0AAAAA="},{"id":"rev_hand_fist","task":"gesture","group":"supported","label":["Closed fist","握拳"],"image":"rev_hand_fist","reference":null,"expected":"Closed_Fist","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRvgCAABXRUJQVlA4IOwCAABwDwCdASpKAEoAPpE8mUgloyKhLhdLaLASCUAZXH+F7o7G4IN5bvasSIv/e3auZpZ6qyaRJIP446ymzNH140CjWylOR+2xAez5f2uiThlVdRDSzQKxjgb1Mt5PVCqbuohKzwNGqxcglF+jVTZZ0lwFcOtArJj/IFL3xntNy9SSp4GYtTAA/vmzgCrO9BKKbS5aIGbgs+6NymgvYIVY9vsAqMlS60Glmx+yqH/o3nvCKrDNyaUP2u2Y9TPSfRBfCw6oX0vemiETceIf2KA1IbNBh7kCWT8iWKqa36KhA1e4mqnRPnPnnLOggT5N8xQ0eroW32jX1RbhRX071XN96ja/+Kv/crYKnddYdeZtGGzzU5dnV5N3iNJhNCYNp5FXLhx8TaziTrJIXv380jYjvAPnMJ68cIICfAMHXbd7XhUj7VSnRY//MaFV52DemSzAYGmqJdbL06IrFrAZhRMZPmHtAA7QXNPL1ZXZ6Abnrhp1mgOKtfDZ9jNUz0mHXFlmO4laDM3XFEfaHr2vmbeYyaHc0mTbOD78sqqNKSWDkYAHn1RWErMXUrf3bUaNkcJPzC5ygfLpGUxknmDjqSu12mGya3V4A15jrj7+IYC4K5VBKjcexHHE81lj2FO/tzlBgn50+Iq1Ku0lwyHEzr+RzxFT8ofk8hB/hWsbv8bMIeML6Pk4mMszKhUkhsLD1fA4CccDg+2Q6Jy0SNHas1zeX9OWWTdTAzRpNiORWGnqaMOB4HQdXLTzpiddYBrNSo1eJ+3ZGWlJB3y/KvEn2qGJa5u3J/skm4s2RtQ5hvLT3TkAU1A/bxlA4h3/GnxJTuqAMFGyHV++fJiuhvU+vAp7IW3ttCB819Zvp3fS+wHos3ZW4+85YtHOvgkxrquqpwprtZieEaBLFj3P6JccWh1SMJIAbXulla+bOC+UsfZHfUViawlucj4FPQUM4nlnUer04j5hRsll7nbcxQlIBQF6W4W+Ai5QNJKJf/lpgAAA"},{"id":"rev_hand_victory","task":"gesture","group":"supported","label":["Victory: left hand","胜利:左手"],"image":"rev_hand_victory","reference":null,"expected":"Victory","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRuQBAABXRUJQVlA4INgBAABQCwCdASpKAEoAPpFEnUolo6Khp7VaiLASCWUAx5qk8b6JRBdtrrXrByyvnTjLUivTp4BvdHNfkBKSkVwYhYV4tiHvcp2sXtiBWI26yayCeQfDZY7+lg8Uug+4JfdC6nNAAvAA/vUOX+IehWif6h+bJyTFYhu7P7ioSBSTJus3Jeiq1eyVqG1g0uAyirRjGvagDmg0VFuO+3PoNXKVGXAzXTEnTt8+A+z3FBbbFJUXe+45Jpx29G3fRf/vaa1bx/7j8HE+EudKDG26llGHTXNTcU+Iq8dCFuctmBJb8Y+LyMdLRRrdjcsFZvYUwUXdJjezIZvSJwT5vn8/fffjz4mSvxzCslSaKjZt0BGCYnsWNICvWCt62dmPq6k+0oT/j+Tg2PQuAIoJYhZ82kP4a2BRsTGsPZXRiLGvZc9JzbWoEbInSfDg45V9LiYprB6pLpqaNqoPRdq9a5RNtBXSjgrMHiOOqe2MrwXZarfrwUNCTbMVs7siZB5GbfnYdMhkpZHCh4LQkFMXw1IiPDlP5kH17/dYBqSA9ikRybhZgDhAB24A28LnxnYCnyh25poY3xAXE+BcLwBSX7o/IV4/1qN9PTW+0tlWZPIj/KtJV2i7+fObqJ2QgIAA"},{"id":"rev_hand_thumb_up","task":"gesture","group":"supported","label":["Thumb up: workshop","点赞:工作间"],"image":"rev_hand_thumb_up","reference":null,"expected":"Thumb_Up","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRqQFAABXRUJQVlA4IJgFAAAQGgCdASpKAEoAPpE6lkelo6IhMzM8yLASCUAXuQj5cZQNp7cAbOxJ6s9u/5gPNi05uUz+1f854P+XwLe0PqY8DZeTCbUAtWIe01mffaMjZV4xCzxg8KSHpChPiNAJKsiC624pu84FIOX+T72W6K4AfzSLB1kNyZOmNQ/HVos9HFTp34gnlop3OW3aV2UaYTWn4On9008t9RatF1oAGXiyP7GTmDOwP1FMZfGSP2JH8Z9kMvvJzKFaHttJp42ZEKbMhTbxu+cOYXDAGBDLua4dEI9gZ8lLa6NAAP7oWcijXt6kOTOfcHrIhRxfI1u1zOS7YHmcvltXNLXcFlIlfQzQY7RZyVB9f/StVJJX29UuEzu9KQRSsThbbn3Gd6nJ6SOjJv0dH9TSmjg6Pk0Z096y+JoEro6yUzMg3EKWphr/m0GLjogUwa9w0RU5jOzL6fcbLBC1u7kK7ADKqYO4ePoCrpx8opWv8FqV+3fyXZrsNJVUgv1knXRElY1uymMOCPlrslXmHJwiZCex8B/1oVDzAZxU+sMn/0fRZIt3457fnnwaQbi2X+8zQKSZ9gYmF0/EBMM45vHG5x1fSBPYSJDLVUn8QmJ/cIci8VfhIEQW18tUjIaGbsR1B9yyFNkH7MaKgauFX9A5RWebMI6fz/NIZQEjBy71soilR1mHDvV2ZhKAj6+1MFQ7nmi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Q7kCObOi9NRT3deDwuXgj7BJxO0/1xVXgW7Y58yd4Te4jgOuaePDPMGtSlT3fKXrfIod2m6L0lReqAv0hhiQUw7wCt2Au29VIQ75qYKAqN6+Zt3Zr4HHofgbxRKu9MzX/jCMAAA"},{"id":"rev_hand_thumb_down","task":"gesture","group":"supported","label":["Thumb down","向下拇指"],"image":"rev_hand_thumb_down","reference":null,"expected":"Thumb_Down","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRoICAABXRUJQVlA4IHYCAADwDgCdASpKAEoAPpE+mkiloyKhLNgKILASCUAaeg25Px3HgNsvzvGnIKC2xFt/8XFb5W0rqzVHWR1bK+5i72Hfx//RH+xB2Xr5xeuM3qB4n0S7s+Gy070ozCW6eHKyE7/IpvptgUoxYQ1aI47kx7nFwMQYjgaF7Z7F6GN7yWdvAAD+9vnv+ojEDLp7J3uuj1BRK21fsOMLPpDTMMzORgnvM+GLUAHI0cGJeBxHYje3FZeg3m3MVYSO9X0Pnp5jlzaRRN0CaDlwyLV3wYhq5FdHXhqvlpx4jI6/P/fmsJntugcO9TdxvaCt1TH32KOqA/GahGzr3U9P3B8Y7vJk2fB549AlOVfAUd8XZ1Aol+MCd4g4S4ST6VtrEjcKBAATSm60LV3kiboW6P01N5LEUB4lbJxgCbo3SL7Y5H0LRkzX/4iZ02AnApRyiiq2IfpgRxXVgyB0BS2+SP1IieipDC0H6kzZOooqPg/PgNRpOn6O2mYHXs2tJGdMy2Uy7PxWLPksRBNXvuOt8IGKrY0I3CZiMf+IQ2yg+C3EBrCkGV7ivNYvqVDJLdHUHLSDOT72bcXDQf7EUJRw4dAJwebCJWqNU29MwFSy6um44QgMYW4HDdne2ZxIxmH1gbFus2uAzMJNoM/pQIlvYzXlcbRiv53ZwummnKpQdLcmkzFGpKlHjcdR6QJ2I7eFD2LwtCLbJw+bbxGi48XySAhkl1+P9Ukmjd2S6lize7kkYva91MfwTLofN/yYPfOgz5CLied/NjnnBPCgkJxm+HZMIam8o8i+4DK9cDjiiL9FXb/sC6koKwaBN4Tauze9dcjPxUmwExc1YXAAAAA="},{"id":"rev_hand_pointing","task":"gesture","group":"supported","label":["Pointing up","指向上"],"image":"rev_hand_pointing","reference":null,"expected":"Pointing_Up","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRhgCAABXRUJQVlA4IAwCAAAQCwCdASpKAEoAPpFGnUqlpCKkpTQLaLASCWUAzNQP7apGcLQ0syCzv1ii4gO1z5seLEa2Axh1oWIHDISUxXr/Un//urk3wvtTDOmIfcEgVtDveEUIhffS1clfmWWQxs4AAP74Msv6FfJn3XL3lXq8yBYUTPuuT684ddHGv8nqXJcpecVKYLZFQdz/HVB/sLC9BMUpaV9hl9CUA4JrFfddQx1ztK4SBS54XNfPJlHdGEfQxolBH1+9bGX1LFKkIW1eB3q1V4CEOVTtoKckzQhlM1Mpy3EwlJkhIWt4UMK59XrxBh+U5xoclG0t8s24E8/YyV20woH4Y0XTOmE3xR7OlG1kB0Z+IwB+wAAtnBSCr4sjd4BWh73Y01uNn1UGWh2MKrq1jVXWbEcV4H/M6CmNCv1fFvocoSkeNjhAjkzvHCU4RnF59I2JKJKsWV8lJPCY4ApxGjZlp2sp+ybr6eRny0Ws5URSRbA9OSHCJaeHxAGoIZdbP79xTPEApTc+ZgxrAfF5hyDKmt12i9LnFZxBnijWfra2hyArnNN2+VdMJTSeHWOL7T1GSLiYEZiwnEVP74A0mHKJk565O/1xvcL3a/LEIWDWQJvK6R2vXfx7nZpEM2amDZ2MiXsJAgiNnlf9gx8HVNFUr0iCOTep3cdQYPz5ubbBQbPDyK8xvj+GcOxuELguLtTrhY2gAA=="},{"id":"rev_hand_iloveyou","task":"gesture","group":"supported","label":["I Love You","我爱你"],"image":"rev_hand_iloveyou","reference":null,"expected":"ILoveYou","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRp4CAABXRUJQVlA4IJICAAAQDQCdASpKAEoAPpE+nEmloyKhK5HLALASCWQAyIxaibs6XbgeYDzZvRBvM286A0Hjm8qlv8kdMdv+ANgLJ1Yfx+EnneMWCWyJ9MpdbQ2I5Pwxwg4qdghnoWgi6ujV/ZktrOJYjlyx0MP/rLvYDiPugAD+8glTwSssi/9bea/W2eSCPgKzioZOAOvdetXP6EXiIQk2e56JAp9i+3BY+TCgh7xK9l5fgcmW06NRye2TEpCAQJX7TBzz4Rfb/s3ZSKwB1NgjHMK6GoQfE9NBgcoJV9FX1E8tL+B0pKDfpZV/97n2+dPoazJZf50xJPCo9TB4r8XSEnfqMMrqTvBW1N3BLonW+YLk+0fQcJ/mzpBeDu/fJ6GLE5oeWxxdn4yXPuT+X50bm4eSLN8YWqqeYKE2DToiu/s+KPrqfn/zpPu8xilgechXgBvc3nVamC6FdSm89dd//EwO5p/Y8cybDddcRMAuxeBCFdur9iORsZh2PqLGD7t/rQKVy5aB1DXG5p2bSC8HMFpJvkHhLB2olkJnVLOf27y8swhcGTAfeSnBt2Cd45S/8jXuHpImXnGrm9jil+WJVBeTaxphrpfXLRfI4jr65KQhXZnDXE9pfR3GuOXhwdJuXZ2Jg/T/eFhZLlYTqE9TrMkJokmjbtR4sut0IDIAtflhxR5MYx0nDL/D705rnbzoqkszgKfUboENecG2A/IEe5TzOW7mSu0jJ/30HdY9er4gtoNJY4PKbXC5Z4mEGaeG68ppaavov1mZdRWl5+vVcOPD2mZWUWeh04U17x34KTy6aOpWs8C+LQHjSfLm/vY/RYyFxU2RF7kPVnl19lvGwpTPa2ZOHKSUIzAX0xrdM7Q9pftuIRgxgMH6AAAA"},{"id":"rev_hand_ok","task":"gesture","group":"boundary","label":["OK sign: outside vocabulary","OK:词表外"],"image":"rev_hand_ok","reference":null,"expected":"None","note":["This intended pose is outside the seven named categories. Inspect the actual candidate.","此设计姿势不在七个命名类别中,应检查真实候选。"],"preview":"data:image/webp;base64,UklGRqwCAABXRUJQVlA4IKACAAAQDwCdASpRAEoAPpFAnEolo6Khp5bbILASCWUA0evOz0cMSrpnebk1Yg3zubwTYZYblPFOZup5DqHu2Nj05XRTV+QxrXiu8qaMyqZMNuVFhUr9WbB83BahaxSve4xkxMGWj4ILvEpn2NvThZaTCWqeNXV6O0kIlGBOchQp909MtAAA/vd1V/zavobo/5G2sHQyrGdbchRgxby2n6NhNJNhr6DM2/G3YMt7/MbQsiBxvuE4emdCnRK18o/cebVVPu6nbOVQTkdKkVi+Rs9z92VTdJZqCaN3ZOER4+2aPHU62os+mprna9vhsFXVX+5IwyGRssljbiogdiVbfYxSCLGaszGbI+fU/VO6MMzjXKc/KGaM9CKj+biax25vbm6U1hh4RbC5EW3g+32k+7xlEgsUzAMX2twPoy1U+iI+ooiw9MoTFR0TbmzaMYAlLmHnS22+fa99K01L+rKUlpIpH/+pRqD/PGFQFEV2bfCcEqkkLANF62m1uLB+7KjvceUAO+76aRAxrj0xAaRI35vSeky+06iM4G+hcns9XUyZgHjlgAR4g6ENMotbEA6Th7pvhH0yxp82JMfTismpGvQR5TSnAinLL6zOJr+vIOhi7xKVuR4bE/j8GSo7g+fOzAgX8OLwLLW202FRbC6NpSMrNXfezHB1ygV95tqBXhl/T9NF/9CL4ti4rpC7XjhgoIqIv1ylCMgNaEt62+Jps+4tfLWWeyF5jmP/kC1aPWHaP/0XmCerMjAUIHAPNx15eji0qaKBhTqvNCY8fhze89iyvMsVHOnvdi+3d6W/wP6x1juaY8GbDWzLpRWPCe+l1g7QzdUfZUvrts5cNLShV7Owtd+9znP7DoPpNM15URXOzdGkYcz8edLaA+q8/kgFMHmwAAA="},{"id":"rev_hand_pinch","task":"gesture","group":"boundary","label":["Pinch: outside vocabulary","捏合:词表外"],"image":"rev_hand_pinch","reference":null,"expected":"None","note":["This intended pose is outside the seven named categories. Inspect the actual candidate.","此设计姿势不在七个命名类别中,应检查真实候选。"],"preview":"data:image/webp;base64,UklGRiACAABXRUJQVlA4IBQCAAAQDgCdASpkAEMAPpFCnEslo6KhpnJKALASCWUG+OUB0WMm4c0G7ern/xbSs3EgwVgy1nbprEAAxZqlewboeJzrMta1RBoy9dIGYzwZhRW8a3PRV35lCIYsuOWnk6LnY5OPiaTeq0Kgp40X7xxTVYKKlYGQuwKckVqAAP7w1B3Ni0I2IoVfBjOiVM5sULPl1erNrVmhjN+kTCkcBYE2CLnC6r/sdZGEWCKpiWbGrMhEYR6yQYcvyglre0IW3veZoRtHVCMlHNYjlWCnLPvjOHB8MtnKSqaGMXXRARmIAQVIN1gF0oJxfogpRwP+VcxYVU2z1cFC/7HhvEV94OuSJ/a2GfuUuvPXe+GchcTqcuAC/nGf1cihUzUiyL4XQylObpd3le+8NZAO8hDn183Rf/0MyYd5LSHDKhFFseHkCP0T7Lb5KBF7Qtqn9j/RAsbZdU1D25JtkJbdwmP/3m+5cnSRurtZTkR5nF97E03H4ewT/TpErMYh5zxfqe7J/Z1AQVOtXT8UJvdmxsCeHQHWxrZ3fcbupqUtam9OpUfaSpCSU4BM0v/aCY3bNWdhI6iBu/fja9EAanh9aTXRcQAcO3QVjQPYiI24nXNNtXH2WqbJ/yYN4wOJ+WHmNM/sz+7YhcdxGdxOFKWRWu5hjh0s82mfUjAYNzhhnRCsfxl4kzLyJOxPePB7twzSUBUxMcQtqoAiAAAA"},{"id":"rev_hand_twohands","task":"gesture","group":"variation","label":["Two hands, two poses","两手两种姿势"],"image":"rev_hand_twohands","reference":null,"expected":["Open_Palm","Victory"],"note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRuADAABXRUJQVlA4INQDAADwFQCdASpkAEMAPpE6mUelqaKhMHgLSTASCWYAyrIBXR5XUmMdZEt0z0U+Ur6f/QBuJt6A/p/qLdMywJR6cvHT9tSnlIC8MhOSN5gmEUqEMYo/uGwEjDQt1yQi654Qlf2TTGT6SQzqnPlSIYFEAOgsx8j50wpPwgkJWZJvXxfrPTvRnb+H5pWydJXX2xLN5TTYinmUJuQDxoAf8gyFIC3o9aPW23ijVVTgrXNhioiW6CMt4pZ7lgCAAP7Y/3LM930Hg96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","group":"variation","label":["Gesture at a laptop","电脑前的手势"],"image":"rev_gesture_scene","reference":null,"expected":"Victory","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRrAGAABXRUJQVlA4IKQGAAAQHACdASpkAEMAPpE+mEgloyIhK/YtyLASCWMAxQxoWLAMKX+vfcB88/eX/rFT7LnxE+OJ+0OPRl08dlLBygrl72vrsYZVlnAl65H4Wp/+0dzD3w7w/IERbhinNT/6aPMplIW8p6u9xQN61Rtw2dLNozROJ3W6idE1PSC3OMrKWqcw5i9Gd84FPgG7TRtKxuFUa5a0n4EWYDTNGmUq1pvZFpatzUx87DtRVmT/moZS+PaXBb0QgM5WO2mxZUv6ZxirS3I3m1JiSSCY6v5owr1DqpsdLhKp9nAVYCNnPI6Jfztmmadm8sO13AD+8Gz6DjC+Z4LKLiodIAHxmaJ8jCRImz/LnOk8NvjiNZ+LEblscNGPQdKG1Zf6eTt3EC1GY30ooYOrdtkNZKljlmLINNl0YjQKdmLHQI7wpfNb8xVlPQMQ6XLLLWH93hUFcxpseG48e1CwjCnxMqtnX9jhsbeQm3h5gqkvXImq6gB05jRcFPe3CfzhHLa2F0xZt0Bh3naDUMDEdW+1qtJKb1VhKC9m9RON7C467GeOEg4/mwAE8ViWgW34OsRK9FQT8UiBVDvEfnYWCiJGIT9oE08pZeHlzd59xIeGvSMZ5vKwWtJr0gmWzDiuzXFzIAFGjhAohd7AjkIdFFWJw4Jaxnu8RXDi4Ildh6fXc70MC0jmxuGl9UXx245Vn95RvK0pJNR4M5ob0tp+uOqXVF/VvwhOeqt9He7Wr4ziaz2C1lq2QSjXB4F4uexnQuDy8Oi6wFv5xw26dvbxw7NUDA0JtBtwRI5kFsqMGBVESzjep6cqNIMMIzyVn//8JhkDhIGkvVLLc18+qi8lmI81IV1aNR/+LbZJyltcsneEIz6Px/zFUSQa+xxKlpqSn2I7QSbk+OjqbcR4VsHA/2Cu2/M8de8VyzCq7O9hpqy9AoaMaDI3jxIu/7i2e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DtYu/gVep5D6MjSXFvlg3uZFDBtxN6MFwlJh1oO7L6KcI9ja6lkRi9A0ORsD7cC5sdw7bT1eFz8QIkhn/Tsb1mPtAKIhe2l2xM1GtGIkM4psLLh8r2G/vKTLfLx/fY0hBiXjc0tYSc+eZWCLlLBXckpkkRvAJ4yxPK/CBO0lE3/ppjOrgu1ZlEHsQPkQx3DOElUQJHPtxAKr7+bQXDf/L1cyGQGLUljbpwgCnT4GKzTZOldqbIAAAA=="},{"id":"rev_hand_occluded","task":"gesture","group":"difficult","label":["Hand behind a cup","手被杯子遮挡"],"image":"rev_hand_occluded","reference":null,"expected":"review","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRpIEAABXRUJQVlA4IIYEAACQGQCdASpjAEoAPpFEmkmlpCKhJ1YMcLASCUAZGYz5I7u0Afpp23nO0kY7yYmefwjCYDbGqs7qcW3lcFFoEdDlY0Cy4ikZ+OTPKUvrfey+19UREB31RzCUGQP0Ka9jAmZIla1Bo3jbqVjqBOsZJprpK8tNpw+z+ale4Av1iUoggvrwEk47fQFBQyrLEqcPyEYaCEjo/gp48ia9MV3npKvOl8qmpmY9twR9xgrYT/VrkHX2m+UEOpMJap+tW/epKXSorufW0ZCn1Qs1ef9keEsOPPMpKQAA/vPxVlfKMqBp5L/6fpdfOMLpGZZO3wk0i8aR6x62qXU2nAs4lHTJPSVwO+QPC0ybZ7QlcFv7/Yl/EFcpmCbqwj+9+ixKIM5Rl1To2joK2KkVVD6O7rWeKJAzRMtsBm1yupaJxImH3hdEYsRHdFGNMAgo2nrhNC6TMVbXPq7t+aqWn1Z3vjhR4vvcWg0UJy1pFBe5x37NwGRtGResXqTIOy46DAaZ0swBTZc/2OZ2lHdXbKhZbUEdDvvi02XtHkV+XzVjitrxpz5iGiObMmOrDV7w8FeNEHUQpKS25/XU5r8SpIFhZUxsLSvnzAd+R0um+G6jd0u5U+9pUge9C/Y+V8KxvqElg81ilu1eX14aHFFm0bAM1Vf6kYhfNcOmW1amRcRgm7VtIOeRfmnRAzqjMNieJW1K5c34Uy+S0S2RwMBwqNpTVv5Jsip0Gva1XNQmZiD0BybCErQBOHTSwWvlBTK1biDDadFWp7ZvN/3KotapTOsP7oc2QM8Wt7PrdK8luN1vCVUL11TolRSNRB7QN9yVYy1Z/kI8mB9YY7YbIfh8JopD9cP1BCcXKllGVu0luIghChsSxXhAOkldn2Xyqjy7CQKFEoKi+ZVUk9fJRGLdgTFlXfoBpxhGuCy78cZwBITzsX4+sPdbT4Tkmc8+3NR+9SYTvB96GszwNgjOiKTYEizt50JeI8umhcYuURbylXftbR7BehrnwmhO50hfbpToedRZucKs8W2umAglRvjFLRFyNZ1HxSVDRdGSGXMLMYxr/9JtLbcgHRdFX6m8o8sRdNFhG6XV4llVOaeMBu7HRXjIZVsyxaCYYuQ+7Pca+1oVTifhshkyOwEGsUjtdS5RWL5zHziKmdoNdL/861WyITGNP0cNzarFYDtZQRN3oG0dLEF2+FkixDKTj74OqYSs3qMbXUFVhc2U0LeaPZn2NJKpOWRQJb17CSeNxNTONp3TSrlXlgFeFn9HTrQPXP5CIU3Ea5wTMyPPAqt3yvJU7YozZRERgmpN+dx72am3rYG8YuCa9eHYx1yJPirpBeSnSyy02r64FiKNfRaxmi/tKYUFVTpWvHHtjDlDH4l3UiIl/GLmqgfuXisQGkVxX2TSpRENBhcqu9m7Bc8f0ykGi5f1MWqCamwLuoglQ8/1yWoO7Dcdywcjj/VjYVRjLWFK5HcM2hOjisNrZwB97fEqBGj72RIYcOkxOIePEsykZem+OETr4pn0ado+55SfQrAijhfotUhQWD4sD/AAAAA="},{"id":"rev_hand_tiny","task":"gesture","group":"difficult","label":["Small distant hand","远处小手"],"image":"rev_hand_tiny","reference":null,"expected":"review","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRrwEAABXRUJQVlA4ILAEAABQGgCdASpkAEMAPpE8mUkloyIhKhF+qLASCWUAwgBWMAg8vWfTZ/usS9Zt3kWPNw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PQ1CAiEB00YrqiSmVFZ1RB6G1fMNGlMr4627c0HO8pPakK5Pk51jz2f6jqQhoXofbOBptkaA3UX0k/objxShUs7E5JDkQiTRbCSAly4RXXuTM6aBlOdr5N7NSuUD2R0zEuZwXPLodFRo1g1tRlkx6q/39x2mSZRMIUiqtrvBgbxKEM3a7n7Dc9uOMV87BmchRAfNDNwsFl64Go1pBkgZBbBhuLKE75yOeJbQIVbj9grDYY7xf6W351fLu4X6xMPeC4PF65gOdvew4+H2dCxPYn93oib3eieMNuNDkTZVlPE1OrC0Z5ngBZzYvVHQBaVOF+4XoUSgcC+J5o0Fjt/L27IibA5cT92cXq4egessGj0ABiZ/yByofmXA20wZ5vMR37qVHHJs1hM6NSYFVAJ97007tvKm/cjbmhfKyRHYII1cOl/kPmcs5IrA+C6eAAAA="},{"id":"rev_nohand","task":"gesture","group":"difficult","label":["No hand: desk","无手:桌面"],"image":"rev_nohand","reference":null,"expected":[],"note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRgQEAABXRUJQVlA4IPgDAACQFQCdASpKAEoAPpE6mUiloyKhLNM92LASCWgAwzITWL5sfkeXf6dNCoRG288wH7Qekz6md5O3mosDnhrUqewidDUQ4MwE31lHW+1E6fUAn1lOzGOJ1k8iM478grFASaABJD2CftuA/MHrhxdNQmz3Ap5C505Wl28GbSvYo+723jXmGYy+juagt0U3/NEAf+uoN+HAxJNaBNyxsIhu8hsY7UYgbCaafVqyMYmkMU5lFzyISTgAAP7qg+iXpONlzfWCK0+pBdvsVtpR8vzukwlk7TSmWXxnE9LkdZ+DdezryFPXDpnPrgUPc+he8nWK+14DP0zDBiJm8iK+usYQPFWNoNdc+efHY3YCudW5Pw/7OJwgbQvhFc/pLcMlf3pOkMqBrixQWahNqDtPDIbSrP9aWQJMnhPDiXb03Zs74Vu4BqcDqug0y84xbFR6J2+hTZoJX3gEyzy9v2YQ6RuVT7f0E/pStfDN4klhs3BgSrFWcXK0N2vyHaMV/+55iG+uqj92lL04R15/XrTlzxVvKEwaYqwxOHc7isDE5R5/ppRU1AHVzhq7MdBFTz9WoiUOWfofNh7y9PQcE9tkSlsjXJlFzCEhQ6tOEU97rHdq3RDxV2C1xbQ/3VQuwwJlHlrczJq+I1EPgU5s8AuCstM6nISzvgQ95OF1IcJkBwaLeVAOycHxy5cZeJsEDB7uVxk/m4q7tXCfeO3ylFvZgvS0fJ1cvfFZ13mTnC+VNbyoJMv6YWHZRUdyutZpJzXNcsihRsAp30lcNmNhEeN3vf9m7rduDdyp1+wrEwMMHN7NqnTFd+Zv1GQD98IVS3424boefeaJZAQPhG0Er6uTzznQRzxj/RedeACGL5pIOvV4Kco8Z+fRYIw3WLGrssuDeLzc7rh37lzsEGlOv8ev9hQ4TfUF0rFS59tMHimO5rqS+xbe+f6lCjVu1Y++HzrBe2M6D/zKTMdGmWgnR44Cfefz4SuqKQbFUuWEOqNqkM9qmAD1xqx26KpRpy8wPxtfETl1B2hZphRSNE98a69LJ0/hpAC2p1snSD+pmktm2SzzxaphKkGCcvy+vEJ9H1M4jojkyHSKW0ZdRz+v56hsD/LI7UkoVQiXAON+xJQ3zjK+F4/C0xh4FuaP8RmeBXD2n8DyM4HvWbHk5tjX+h3km5S3Q1SWi1X1N0IhlhkI4ZxvxbTUI/a7f1HPzpvyDGCorFFA7tzpqQ6TJXhaRpInyJhJSyGVNn7kUTyc0muXCeG1tSv25mDULgh8G/tpNpOqbKHiTLCX6wNIJDyQfRsI6e9Vu9mX1MchWcqQhCQdtB/+xbnNqH9h7Tn+ogwaNYB9reRPUeyAmG6BeJuAAA=="},{"id":"ocr_card","task":"ocr","group":"starter","label":["Lab card","实验卡"],"image":"ocr_card","reference":null,"expected":null,"note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRrIBAABXRUJQVlA4IKYBAACwCgCdASpkAEYAPpFGoUslo6OhpZVZGLASCWkA1jMu7gZpAmZxb7WIilDZnUrvdbLo8HQZfRaiazgUVCcXfp2LpTTwLAm1UiHYv93XraU7rkprivgzJkmovgdzJegAAP78d4i/uAWlsPqSQfIz9J1nXTzBwtBqutj1M3Ia/yJ7MREnCsFGVfyz9V1RJfsE/lI/6NWhcfX+rf8VPBtlb7tiKppoqnXK23ym+/yB603M9um9Cyd7AaxEZOf3IRYAHGKytoWQCum9WlIOrKbulmF0cg7iJOe3cXfc+nm/HilYxq4ASH12BOYjBxAcQjaGcaO/m54R3iyPvtJwh29DW1rAEsInxY5LLJ3dg6xrk+aSlAYN1crog39QTB+unzCvpV0immy8g+2lsbGFYiSpX2LVT/sCOhHspiiyl7K9PRseS6oNfBh6Q5AhGNlr00BiKBhi+hGPr7LY1aBPgV2LueXmRNv5z7pS3YH1CgyyMHxEiEXwm5+ebmavkMIRVzJ9DLnRWEpHIyImLldaACd+w3J2K4YdeR3Pw2pLlmjHjqULaOeIAAAAAA=="},{"id":"ocr_receipt","task":"ocr","group":"starter","label":["Receipt","票据"],"image":"ocr_receipt","reference":null,"expected":null,"note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRjgBAABXRUJQVlA4ICwBAADwCQCdASpkAEYAPpFIn0slpSKhpZqoSLASCWkKHnHsDKB4FaXdoQFi1n2hQX79TFwcv4OZYZqrDNRRIpneSyhhZ2ekPVYSjB2DedJkgwJnrAXu3OO5x3GAAP77owBQgMLI74gUUb8J0U6NItPGFUYuSEryiEL1DdcA5Mo60iPE8o+4uqH1pisLIOef6L5vJ44aJ7sAv+PFSAETllUvPdoH1S57QwJiBwfQqjJd03pRjI7z/iEghwcrrdg0hzR6CzGURdx4kWu50SLEjKBpXQxaCJFs/4GPXtSiVZbiUAk3aQdx7zC0fvBlhxOeMi874O9NTf2aNcZpeigzfsLWkEoxlyPbyXie/ura2dDN0Jf1MQPwjL0TaIoT74gXj+gkcrNFbA19LIGUt2gAAAA="},{"id":"ocr_sparse","task":"ocr","group":"starter","label":["Sparse labels","稀疏标签"],"image":"ocr_sparse","reference":null,"expected":null,"note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRogBAABXRUJQVlA4IHwBAABQCwCdASpkAEYAPpFInUqlpKKhqTTYoLASCWkA1jisdOf0CthlmaQJmz0AARvMwUSfZLMFikLz4IpZdcx3VDZD9xIlX8iFLsblnThxphyxDuOeKBWrbnsvxBSA0O2bceT87IAA/v78r6vldTw9gV3UZlZgIwbf0Tc3MjzHll/DfbTlvDA5fl3dEra7sUuSRTiDjeIYRZbUsiEbSNm3SbyyREy+BAKP96PFwY/qYc8oo3j+amHpbfJSEef4VXq+Vh8bJ814FCtrAKHR85zULLZ0DFd61pH12CMiHeVdj54F9SBY+1KO0+Yp7ZnPiu7iWMCY2LY0Z0xZPiIBacKI1QxszVTfqYvb70s+TDf+tMkuS5tO5hbzySLBLt/NZUi6PdNV43aYfTaFjQiu2nKvpvMHd1MYyOGSQVr8T0iFMEbpO9kEayGVrGKGidhIyQV8NWPnY+ZwNi4IcJvM0DSTChtVKj8DKwiKikM69J4p05eqqkXY90KK9lzcAAAAAA=="},{"id":"ocr_hard","task":"ocr","group":"starter","label":["Hard case","困难样例"],"image":"ocr_hard","reference":null,"expected":null,"note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRmYBAABXRUJQVlA4IFoBAACQCQCdASpkADIAPpFGoEslo6MhpdM5CLASCWkNwsW+nXXyhhtWgDHxM3i6R8YtTYWPl/hLtfHttW/8OKRYglPCX17laLTriPTg6IJAI/Lgzbd5FKf4AP781GJgdBbCvUnM16rDOz7Rv8vcLVWBh4l40dZK9F5k/tdzxTPq95kywZZpDLeExyb/PSvoTxX0tQF5zeHIETYN60tg8yaqQtNBjnv1Z9edv/p5NZ47Au8R5gb2hPpo+UEzdqV5cqBkFFvkV7oZ9g44ETNElxpQIqOymCmyRPTcS2TIHluQvPCEZhYunhDx8kC+83J4I4XiC62HowBcRStnx6Zs1MRegjvbH918K+H+xxKgwnuMc/7Mp/c9nJNKDIfat15D7+QUElYJ0A3NCmCPFSXLBnefs6fQtXcQU6q0rto8mRk0STPhUCpp+WwEfnjxs96oo1CV7Tt04RVkZQBCIAAA"},{"id":"rev_ocr_menu","task":"ocr","group":"variation","label":["Menu","菜单"],"image":"rev_ocr_menu","reference":null,"expected":"COFFEE BAR\nEspresso 2.50\nTea 3.00\nSandwich 5.20\nOPEN 09:00","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRoICAABXRUJQVlA4IHYCAADQDQCdASpTAEoAPpFIn0slpKKhpXZpSLASCWkA0rB5Rk7tMbzLAji17waPH0JM5qoJ0mQ2+mKD7Hh5BQZzqMoC6fjhoo2erg6EfXqWFKn4musz4/mKIU2RYoyu4mvjI+9Wz0QybsZvnQALeCVEdzsCEYOHsIfgAAD++0UELS8qd0q5AckQ+rCpxvApy6KaT79uTEkTkYPLPNsg6Uz/jLEpzj8ojdzLbNbuaFhkmMr4ZqDQ/JPYB8pAdxojSTbhjoVUhzOBhnKtsvZ1zC7AATHuKgNEiG1RSBjiSCxwZmaZ78h8ClkMQqutEkaHp6hQRaKwYPd4Az0zTd2IGeFeC19NL+psdMVKr1axwWS3Zm8vvCobxBx2UBLITDsrBgUnRLSyBqISCIJQu3SN4r4502g6CYm95caBMZPFGBDGhs5hwYJFvqxQZtp5eTc3S+SMOAb/+vDBdryFiVPz2UfhVLZPAr6ApjHn8D+vUxCEbgpEZM7yMeaGbEpy1kfej5CLAy4kUV8NC5pcKTJ4VXIMCgdLneBo164W/oDsvv0xzVWjWu4HjhteHzbzu/glhLPKPnivro6eYVCqfDeBiM1eU5RPqpZbGgsEFlloAUMOMYAf/pH3e0i1OJ1EzojKADnxz2+tvThkz5eJ9JZxXmUQk8T7OGEn9TvjYJeXbTASSdUyTQqM6AFfr5STI2QcHL8KIevTVBksIqQyIePTZicmSeiojhKOdqZEHDTi+PQb8vqEODGlE30cMpSbHsqbweL+KnGkXhnDQNegtHkUNZpMBtK0KrSTMt8H4g/jl3I8K8p6XOdZ8gCMkJTvtwJQJei4tUhVoyAAAAA="},{"id":"rev_ocr_notice","task":"ocr","group":"variation","label":["Library notice","图书馆告示"],"image":"rev_ocr_notice","reference":null,"expected":"LIBRARY NOTICE\nROOM 406\nOPEN 09:00-17:00\nRETURN BOOKS","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRroCAABXRUJQVlA4IK4CAACwDwCdASpkAEQAPpFGnkslo6KhpZVZqLASCWkA0Fq6GFqVKPHXHaoJ4950PQqzlagvSuDWVH4McUcvum0BP7+sLuQGbVFuWAxd0JvbEH7EpxakX0G3lJaKvspim/Q5pn7M4wkSF6bq3b6bJFqbEuxGial7Zc+wj90curCEbKhMUVukeg8AAAD++7w+ywXWqpf+nPsXPZoUzBwy8+CK2VH5hBwuRmO3wOJ3HsGBzxM5IKHv9amlcR3Vrhaq8o011H+/iVuElc7yawGab7PmmP7F6FfLWVYrJUUkahwq0y17hXMUMveGtVYWwHa6ZDsGWt4ASSvG6hnDH3u/Sbmq3YXdmV3mv73dOgOxspIsoQ2Io1zHj+/CaVyI0VkVZ7Ih/+P4AUIgpGUMyLbd+EQpzLBzMpnennLr/0OlK8QY7k3JqeCjqMuePDhh9w5NSqxO3SlSgNb3hyYlhsZHXlc4kw+N+yGjYO8BLjOUQATLSQ5iZ2IXQ+oHq5oatFeyGozTCUpCZsEj+vQ/+SbccSR2L1ESRZADanUVjBB57PnMTez2bPHG04zgW9Lhxp5p2X1G/PFUklKAMwDNXPVUw9kfuIIT+Ss3XF82z/ZZu2E32vhY0gEY375/vGse+4stdJliz02+sjx/RGariiysFdOJ63CNaDGT1UBATWe6EamZ8oH59G3LP99fo306O5xZ+b95yeb8d+PwNjFFCsApfbgC7745umtgHao6y2iQxK4C/T8vs2/lGRGWTnvAaZbtEKCPmObUU3QPfjpaQvLGTODWNj/cDVbROoSLjkWeT2zxnYOOz2FY1WhU/yjmAe2kpEbWhj+/6gbbS4Rix900qdCqfPFVaG4O1m/NeqPH12GchXApD2CiugHD2gZF4l+efxdQg2IQhZ1KlKsaCgAFbvgAAA=="},{"id":"rev_ocr_line","task":"ocr","group":"variation","label":["Single line","单行文字"],"image":"rev_ocr_line","reference":null,"expected":"ROOM 406 CHECK IN","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRpIBAABXRUJQVlA4IIYBAABQCQCdASpkABcAPpFCm0klpCKhK2gAsBIJaQDParAQx3mA/nPaA517M286ewB0QBOWSnzQtv9qtnfJFfB/PreIwg5MVi0i+iCudBhYah7JN2/4gAD++6ND36YSxLnN/IspnsX6lEY3Mk0qYhjGRj7nc8SwbmJ0ckrP6N/+XGbsxieZFeDtQM3gzHThGv0wC4SK0zMSmvT/wgz86vP0rz55xtCTmP77L13REdhaXdNf7NZ35wKlZBy/y5Op9PDo79A0932284hO8vZHNLU4JN667wdMUOdRHbjnhf9oiWRzxdWxCdRnnTj9I+VEhX1hZyJDomAXKhdZVTpcjvYtWY7WqQMLfWHiWtPHTtzFYhDTkm19qo2BXS3vz/YSg5oeKzOSqR+CQvgDLoU9gyVXlVjVeZ2C+zfCVTSn9j15+/sT4NbhfW81NLjCat2fVYOYnfZWtZD/Xc0JxfsKyrmlD3dvPlgfcQkB4RU/axPy3GTZF5UrDPmSm7WqAAv0F2KMq4WON+AAAAA="},{"id":"rev_ocr_tiny","task":"ocr","group":"difficult","label":["Tiny print","细小文字"],"image":"rev_ocr_tiny","reference":null,"expected":"SMALL TEXT 406\nCHECK DETAILS","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRlQAAABXRUJQVlA4IEgAAABQBQCdASpkAEMAPpFIoUylpCMiIOgAsBIJaQoecAD0QSpeWkv06dOnTp06dOnTp06dN8AA/vujQxBHSn7+jFQAc1gAAAAAAAA="},{"id":"rev_ocr_faint","task":"ocr","group":"difficult","label":["Low contrast","低对比文字"],"image":"rev_ocr_faint","reference":null,"expected":"ROOM 406\nCHECK THE LABEL","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRnQAAABXRUJQVlA4IGgAAACQBgCdASpkADkAPpFInkylpCKiISl4sBIJaQAABqgDXJfa5kRLDatHgreCLwvAb5eWmb0yc4T4uADoFH4AAP77ozXkG2Uufo5sDtbMHvgzp4Abs5xrgDsOLZD0wPmdTSB3oHQAAAAAAA=="},{"id":"rev_ocr_identifier","task":"ocr","group":"difficult","label":["Similar identifiers","相似字符编号"],"image":"rev_ocr_identifier","reference":null,"expected":"ROOM 10O2\nID B8O0I1\nCHECK A7Z2","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRloCAABXRUJQVlA4IE4CAACQDgCdASpkAEEAPpFEnUslo6Khp1II4LASCWkA1jis1r1VjWmowTiXxSayDvkYm/9G/QDyBo8fPK+g/NB9BewF5Yfr59EQPPWgdpbDNpcOPEGQum+/xZIyJoTnLGVROjs9jJbKhUOZMIkIH6g+boOQN3J1/lcKRuizpJNWoAD+/ype9dcGeKtSNExtRBFGLabt0089OAYwDDvh2EpfK4cP3/9eq7wG92brt+Ft0m0HIwstwcquSNqapmhJGPQ16X/m93J2PukBiDgiG8vSaN+0o8S7DC4HNjpAiIjO+otPnrbstLDii6HyI7ssD2KNmf/9iFnHcanQkzwFrB+sqavlsOKazFv2cQ5VUj/q3WgHgnW9/ftLlrvbe0sO1xGZgFnsTZmoZgeEcv4o+PhdsrCiB4YxuD1FhI9O0Up2xGn1W8qvKMQpl4wRdMQgrq36g9A5kqNIBE6OoHPkizgRwlhwWfSc0nXWF0RPzaUtbEJoUX8zeJmuYgZ9n/isys0HoIq+PoBxGUv55NKKZVjmZJ5a04q4zcKHF62HfdT5nBTc3sFKnKkA6Owc+94JunWC3E4/uoR449HFTa63ji2iS4bApCwOSDqIfVcJhAlv8ygQjo9A6qjNUo9ulYk2gOKbf9QHUiV+90FrO9jCQP5GWMO3Dh5GpBMUV2zs7XyFlXyisC2Lopp9fKz036TtMSSdu+iFqXYBRLLC/UmC+PfwMUOYVv0oyUwI0n+Unc9r3HesXpFyUy0ED4/nDghSd5pMl1vkDc7VrltUAt1EgAAAAA=="},{"id":"rev_ocr_screen","task":"ocr","group":"variation","label":["Screen text","截图文字"],"image":"rev_ocr_screen","reference":null,"expected":"UPLOAD COMPLETE\nFile: sample_07.png\nStatus: Ready\nImage size: 1000 pixels","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRswBAABXRUJQVlA4IMABAABQDACdASpkAEYAPpFInUulpCKhotVaALASCWkA0sdHdoA1tnKzvBlOsE+KjvZ8Dq7Us7lYRJGZBx7daAAgzZg7iqbsbOLcbOchFYP5vprBT/x5L52F1dktOeBBjWopsOaUYHAUa958C2tQAAD+/7ZujwGpkgeZR15iut3mliuWpikHYSamR8HCFDkL+GtEhoi++f93coXSB4jLUPQnZrSN2Xp8Lyohxsf5E3QSAD7FNP4PkXYF8mW6cTIOShIGIsRBNgzxFdk5weiaibrigeykXMI+mYM6x2/pbLqiw2qFsGIIHar3imwgCMWF8xN1w2zCyX9R/XT+C5jsSEWkldoD4BJKnNFRmW0yfILO5TxHzNJIpQNPhhSPnSAzpYw+oIWqVwinaNtW6rXYn+2Y+kUuJFnwnVoNPzT6IcT/Uezg98kFTTlIKEYpHWXhANKc3P9FGlDHBDPRPRbXYyE6oEwuENWEt59YkJqdiLYgwTiQpXC5imYrqaH6Nout/vSsSDh7+NUkK9WPf88yNWEudZIhQSO7X45WS9uQGGAudBrPSz2FcuWuqlZ5Vm3YhoUTRFKxNErBg0blvNa15wCG3SgA"},{"id":"rev_ocr_book","task":"ocr","group":"variation","label":["Book paragraph","书页段落"],"image":"rev_ocr_book","reference":null,"expected":"READING VISUAL PATTERNS\nA model receives image pixels.\nUseful features support a task.\nCheck every returned word.","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRq4BAABXRUJQVlA4IKIBAABQCgCdASpkADYAPpFEn0qlo6MhqB24YLASCWkRQARXNQtsBlOg77Pn+OClH01ienaa+e3dhkIYPQks7qY0WkCOku3tQoV5b6Fq7a7BV9E6JGDoyFSQ9keCdnEEAP77KW/knzZO1LOnCIcuyFc8XA9dwvY7Voi78A44nBpdZp76lDD8JL5WoUbf/WdRSt9rCKN6DefkC5RObzLsGPTirqgcmO3vl5reb5FgLFLHUgfDpNN/bPVqFJJWJdpz75vfikkpZfwEmAsEk43ncnDcQOkKOgydNZZr0TfGen2+c4JREPKJdesWg9JbsmVfWRD3bk3tgTLYLVhQ+cHOOnYyK0NCj6RRK85yeyKCVV4RRmUzR0Vzi/k5zALuHBYEZVkDw7PyaaJsgJiqagokezZem9TScFpxQBn7DiK3yEtSzSC8fSqnl+1vJIZWFc8UY2BYspsf6fd1IAW7WS5+TcM31x0+3anHJs9oClMqaZ0cwRuIwksnD0Sx2/mzI+xJaUr/Q4xpKLNAwSQQbANWf3rOuABYAZ2D8YHptjoibrY+P7aZAQAA"},{"id":"rev_ocr_sparse","task":"ocr","group":"variation","label":["Scattered labels","分散标签"],"image":"rev_ocr_sparse","reference":null,"expected":"ROOM 406\nOPEN 9 AM\nBOOK DESK\nRETURN HERE","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRngBAABXRUJQVlA4IGwBAACwCgCdASpkAD8APpFEnEklpCMhLJooALASCWkA1nSr7oBFgWQI4FcBKghnXjdIN/HHJkMd+u77FzGfXf4h87/qWnoWyI0cYmhIfiwW+XxqzdsSehxObmFhmvGLyz6AAP7ytYenhcyiEnP9YdlLPmsHlmXh79CcAke8MfeOtsOMPvPZQ0pOMQBv3/ZA2ADLk+Dw4PR7VP5RHMvJ40/QMU+mHedo5yFPEYQezyoqfzRtZUtUJgNVBWTUVvVS4LH3YBAmXE79U7OavDJPHRPVMHS0u4p8c9AVcdg44UhXC4mNJoALHf/ZNuQnuWulopavS5flYUdf8xVK+m0jb/YunNwiuWD8tI/nzIJ/11+XwAlP27Td41FGBAezbuhfJWbacBKZPK4NZ4mdazal8IZcddBI97PTw6qa7UB+vs5Gr57RjtVK5f5CfYsw+i9v/MOqt1RTRBZhhzozIHFYqb+/nZIjuZqEQZgVIkAAAAAA"},{"id":"rev_ocr_columns","task":"ocr","group":"variation","label":["Two columns","两栏文字"],"image":"rev_ocr_columns","reference":null,"expected":"ITEM\nCODE\nBook\nA10\nLamp\nB20\nChair\nC30","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRogBAABXRUJQVlA4IHwBAADQCwCdASpkAD8APpFEnkolo6MhqlOZQLASCWkA1rBACxfqx/3nwBNEyqL3p0JGcOswCHeyxlGNwH1ztlyf36f1BDPr5ziRytLFVMppBUNUaVA71ZgSqV7Ws4LBdSaYfjejmBO1NesAAP7phyFEBe9Am5wbbwJu0ctmBGrR7vR7bwMRFBuyrEJKVZl4GQHGX2Nj2dK1Lbne/6i/OUi7bNDJAUDifVdAzYso75yDjTw1Z6rLTnViJlIq8wW4vP2tbebFufXrSxhUvJ6z0ULo1flv7s96Ce7zT3JeekGRsKBTpuEV6kXDHB1nQYlnBl7m4WCiqcpC6oO/dizd3De9G0Bhl/SpL6ap9EZDlfE5U3hoW2v71AWtxmEGmKUO+LabJJD7uZxwxbROYIp1kOOfZ3JPUiOrGE9XhLGTpZk9dIhWZwizqDuqxBEnA7unn+0GKgJCdnGz/BYAqFApUV5ce9tm/vd1jO4zcWwn+tCEqFmlDb5WK2q1SJyYwAAAAA=="},{"id":"rev_ocr_wide","task":"ocr","group":"variation","label":["Label in a wide view","宽视野标签"],"image":"rev_ocr_wide","reference":null,"expected":"EQUIPMENT STORE\nROOM 406\nRETURN HERE","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRugAAABXRUJQVlA4INwAAACwBwCdASpkAEMAPpFIo0wlpCOiI7v4QLASCWkACBpYgBG2vlpidw+Ayk8WP0KScj8ZPRonHQhMzJKBJ/tFAmDEgJASAjAAAP74E+iSOUWHlBnLKygtenuLGPFb3Mzv0+UwF6DeYEerSZT29fZhepQIUtpUugP5TxgcBbYs8eiybd1kHWc10xH4j9Ucqvn8H0PW9/mWIS8EQFsiR8cyrRCvDQ8xiKbhsyKREIXcr55KNfBJop45iT8jC34J28pYZK9exLHgw5itjqHKH4hWvHXFYJPvXho8YLIAAAAA"},{"id":"rev_ocr_focus","task":"ocr","group":"variation","label":["Label in a close view","近视野标签"],"image":"rev_ocr_focus","reference":null,"expected":"EQUIPMENT STORE\nROOM 406\nRETURN HERE","note":["Run and check the actual output.","运行并核对实际输出。"],"preview":"data:image/webp;base64,UklGRgIDAABXRUJQVlA4IPYCAAAwEACdASpkADoAPpFCl0klpCGhLbVZgLASCWkAz+OAeMzGPt2abdnm1Ao+/KQjf/Tn2GM8L1J7AnStII+M3AHLrMCiNhdkFa+gNTgmAkY5A6hU2FMJf+r126DrvPcuBu18g/o1jbDQHoWept48kV1qCbl4OOCy2lnDAe2EcE8Rr0uS/Ot3mCwwsAAA/vx6rMuUMz/rvgKl5N7/DbY3gNWn1ANcjf1Q/yOukACoWZnZJR7Hx4YaWTzY05xJkq9GiFiUkO2hqhw/6ZEwkg7ip7465nF+pwWyYb82TUgSf8Krxrf1B57i5h/+UdOmgSxwq26VtHLSy4bzvU6Vmk/Z4rCaqf6O1G7Beqo30Mx5Tkx6GFBui4W+ESNUYlP4WAtQ9Mjhf6yHzjK2gW0bCcOrxx7mmSk5sosIq8jeRy7T3WSAWUAYdNvHf0+vyejOkHLr+uR7rqWuAlqj5vJvnJUGKc1DGzIrGRhrai84tow/qYpLJ+dDggJMi1PFBPpvLpn7GA3aETaoW+erYAvT5EE7xQ7D8ONN8jpETyhlhjUSeqC3XxazCw3iE/bfhZRTEqILXmfzBiX4cTy6CjbkxuPaMapInStFfZ4XeJqV3kgqtvP51mcmSi/DvcAnAGNh2NU2ILSTKLY6Xqzf32rzH6u6trzJd51b2lqPmAbotioO9xQMJmLfHXenj6zPGu5ZnCMK5MVlGbiFTI7M4VXYwul7hbUyjMdCtSvelCZjQ7GT9H7/7NIdlMD3P6Hh7X5cgkILgYo71dVZ2W05/PyxdVlaHwsG/pYY3X2dsUxQO4ob19XOpLpUbGFoRvEq6SGRG0/7daUHaW/BC1X9CymzAsbfdK+T5hmREHH9i1iY9r8NYr/0HJOHjpTVcNHajwmt9vsocoK1Rx/D1HiUz9oDtGFJ9KwILuhqV3VUZe2Nj/wDaz8/cIv/z87QOpvu6WdY4Mt818yNpgcODKBEwb/VdIZb2B+AeguaGO50xnzJPOavXRNSIaS8nzWQAA=="},{"id":"rev_ocr_handwriting","task":"ocr","group":"boundary","label":["Handwritten note","手写便条"],"image":"rev_ocr_handwriting","reference":null,"expected":"Meet at 5 PM","note":["The course model targets printed English; record handwriting results rather than assuming success or failure.","课程模型面向英文印刷体;手写结果需实测,不预设成功或失败。"],"preview":"data:image/webp;base64,UklGRkoCAABXRUJQVlA4ID4CAABQDgCdASpKAEoAPpFCl0ilpCIhLNZrMLASCWdotlzJUt09MEwR69/b/QnMH7dC0X4f9ZGXSU0MhQ8MjQYCaJDP1QZZZ00/uf2WWaziIYC2yAWPNLkh2PznL7vNzfs/M2cHyWL88cMdl94uJ8p9vjYUV2ju1A5Q5qtBAAAA/uwdDxNgIxVVZgQ9ekOFkFK7G/ApP7lfnGdtmZDP9me9Lmvk5oK+4YQJe+6DxuC+e66RmXDpyobd/VBB1mYnr9pUMtfk+/mH45flsjCP9php5yLW8u+VRWhoAq74XddZWoXt8tRa6VuLr1JUUgNLcEY45k2IRgaqDjwzl/11E7ql5wqTyJPxZWrYltjivgLnO9FKHATwi1bSSQrRpafELCyDaX0HP+R2T7W/1i+8xKhDR/P3ESZUQSHJ4HzjT1ZbbWyRUl6yHp4MqqY36mIqZ7ZjcrYdmS/M2EYbQDychA6bacoOHzu8k4z3GyJMnrSkhzJhqLXlY+Kst1Dl8dXZK2E/bR1gF+nXcuUidVGa8d/zc+WKuvoqy9Wv6ZCrfcMwh0LguijUamOjRj2HkYgX2duJEQnOij04Z9kdeKaHdSL8m/D/uC09YXH78fsxuetMk9r4fVcNrWFzX0CeE0LJHWdefOCB8rCU8UgZb/p4S7Dbwwqm7lUCggRNm9eDjb/37YfOjHJmFk/ZBscyJzfuIGgusuhx0omRhlKU6gXMAh1wyyIRnx3XICn7fdyiayDwVoXNc/wmIWFJRqMKS4nWgAAA"},{"id":"rev_ocr_scene","task":"ocr","group":"variation","label":["Box label and camera view","箱体标签与相机视图"],"image":"rev_ocr_scene","reference":null,"expected":null,"note":["Two text surfaces are visible. Check the box label and phone preview separately.","有两处文字表面,请分别核对箱体与手机预览。"],"preview":"data:image/webp;base64,UklGRiwHAABXRUJQVlA4ICAHAADwHgCdASpjAEoAPpE6mEelo6KhLrYN4LASCWQAw6O0k9ylby3dJCdjX1sbfnzLecfpy+7sWrs131jGOGY/Pegmcu8sD7Hzi05zTQOrYWz4nNWIdO55zNWv4EbYxBWDBE2DLj7nRezNPOm3hIqbuRuwh1sZzMJwMhSt9s4XWhil3QfQPmvqZcxZ2mZQFjWz4FzzokCogXGnzK6+anZdtxdnyqfzYoWaENYUvo4CrCXlh2E526Zy+8Cabh/ttJe6hfxIzfnCcHpqY5yj2HQCzSFZVoEuZ5eq1dtp3RtLSNXVrR03dJh9SEdd3qaCemKoIjiU9mM4ra4XCWdMQc4OFSl4AP61Xs0nrP6cz2GnNaXpedBfYtMmh41DDGr7D1qmESpEJ4pWzThywNSG7FcmrRwjDgropZ9q7S6XmS6bbNDisT0d4fSn77lx+9V3GN9WQN/iuJG8LnLFQPO8i9NCfzVOjPdOgj2Jo2PKEf7rS09WZdfVAlwG6qH366X5J44KYDIUIpMWwbBXzUGfQeyjDNe8DtmygVxLmlZGG5NaI1hbXl19i3TouRTdSp4wrsH6+HcVTimRaf5Nc+AYwvznNFCeSZLK8Z6VCVYWc5tkfC/dr7HCeDrMYpqiQmZVaR84suCo/7eHnlu8Q+GxAplqHmIywE84eDyxPQaeGtPwvwhvnpBYrCRgW5XLw+15Exu8eLb6zBG54Xskjj8CTMNrBfnJCXVC9JoIG3G6L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DcS9+g07iYRuSo9wlwCJm6ViG+sfRrIy3ZKbyVLYoe48qWoAs91Eq34emSLSNuQpDarKYmRXwRIrE0BW1toD7uPOYNvngkF50SQX7e7/+HRt66b7xsZdq8fCDoOqsPD6QXsb5D/QHGIca0NX2dCmWTu9UTUWQ8dW3Un5z02fWsnt24qb4IYEFyYQvBa5j9rwqQBB9qcFTmMQ3PBpIce32DVzVG8YMf4TTxHdBw1c8xDz6/1BMjFcYRX9Zb/COD3nm9N2gwRvBg0OLwnD10BPqYLoPX1ihoHahyRvceOiXkCFxkr8fWf5O2LD4pRZtpRpelnftCX9Be7vjeD5qgY2Ui+S7cQ5VDlkuPawXuJBcpbfMaONNSG7D8PPEAYV8GeuArgBwxeOprWAAOpxIICn21dOdrdpV4l2lCGUzoQ8oH2UUL/7K/Vd6vz4L0IXGAhsuXbegU2HrUmDnuFs8tv+vVp68ow8gHLQ37UGZ05SE4TKNSSeOl1PZwUiKWl2FIw/jwVjeTflnmrTBZJND1ptYzdqZDu7ITB8578JsvniwhYtmKOFYH6C85uFGuT3MBHS2SR6sTxbXGIYsSpMpvOy0eBDiDh4f+N/lY2AA="}];
|
| 3 |
+
export const sampleGroups = {"starter": ["Starter examples", "起步样例"], "supported": ["All seven poses", "全部七种姿势"], "variation": ["Input variations", "输入变化"], "difficult": ["Difficult and negative", "困难与负输入"], "boundary": ["Vocabulary / model boundary", "词表与模型边界"]};
|
samples/face_a.png
ADDED
|
Git LFS Details
|
samples/face_a_turn.png
ADDED
|
Git LFS Details
|
samples/face_b.png
ADDED
|
Git LFS Details
|
samples/ground_truth.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ocr_card": "VISION LAB\nImage Recognition\nFace - Gesture - OCR\nBuild. Test. Explain.",
|
| 3 |
+
"ocr_receipt": "CAMPUS CAFE\nOrder 1042\nTea 3.50\nSandwich 6.00\nTotal 9.50\nThank you",
|
| 4 |
+
"ocr_sparse": "ROOM 204\nOPEN\n09:00 - 17:00\nSCAN HERE",
|
| 5 |
+
"ocr_hard": "I1l O0 B8\nOrder 10O2\nTotal 9.5O\nCheck every character"
|
| 6 |
+
}
|
samples/hand_fist.png
ADDED
|
Git LFS Details
|
samples/hand_palm.png
ADDED
|
Git LFS Details
|
samples/hand_thumb.png
ADDED
|
|
Git LFS Details
|
samples/hand_victory.png
ADDED
|
Git LFS Details
|
samples/library_manifest.json
ADDED
|
@@ -0,0 +1,700 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"revision": "20261014-course-3",
|
| 3 |
+
"all_inputs_synthetic": true,
|
| 4 |
+
"expected_labels_are_design_references": true,
|
| 5 |
+
"photo_count": 21,
|
| 6 |
+
"native_text_count": 12,
|
| 7 |
+
"cases": [
|
| 8 |
+
{
|
| 9 |
+
"id": "face_a_turn",
|
| 10 |
+
"task": "face",
|
| 11 |
+
"group": "starter",
|
| 12 |
+
"label": [
|
| 13 |
+
"Same person",
|
| 14 |
+
"同一人物"
|
| 15 |
+
],
|
| 16 |
+
"image": "face_a_turn",
|
| 17 |
+
"reference": "face_a",
|
| 18 |
+
"expected": true,
|
| 19 |
+
"note": [
|
| 20 |
+
"Run and check the actual output.",
|
| 21 |
+
"运行并核对实际输出。"
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"id": "face_b",
|
| 26 |
+
"task": "face",
|
| 27 |
+
"group": "starter",
|
| 28 |
+
"label": [
|
| 29 |
+
"Different person",
|
| 30 |
+
"不同人物"
|
| 31 |
+
],
|
| 32 |
+
"image": "face_b",
|
| 33 |
+
"reference": "face_a",
|
| 34 |
+
"expected": false,
|
| 35 |
+
"note": [
|
| 36 |
+
"Run and check the actual output.",
|
| 37 |
+
"运行并核对实际输出。"
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"id": "face_c_same",
|
| 42 |
+
"task": "face",
|
| 43 |
+
"group": "variation",
|
| 44 |
+
"label": [
|
| 45 |
+
"Portrait C: changed pose",
|
| 46 |
+
"人物C:姿态变化"
|
| 47 |
+
],
|
| 48 |
+
"image": "rev_face_c_turn",
|
| 49 |
+
"reference": "rev_face_c",
|
| 50 |
+
"expected": true,
|
| 51 |
+
"note": [
|
| 52 |
+
"Run and check the actual output.",
|
| 53 |
+
"运行并核对实际输出。"
|
| 54 |
+
]
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"id": "face_c_mask",
|
| 58 |
+
"task": "face",
|
| 59 |
+
"group": "difficult",
|
| 60 |
+
"label": [
|
| 61 |
+
"Portrait C: mask",
|
| 62 |
+
"人物C:口罩遮挡"
|
| 63 |
+
],
|
| 64 |
+
"image": "rev_face_c_mask",
|
| 65 |
+
"reference": "rev_face_c",
|
| 66 |
+
"expected": true,
|
| 67 |
+
"note": [
|
| 68 |
+
"Occlusion may affect detection or the comparison. Record what happens.",
|
| 69 |
+
"遮挡可能影响检测或比较,应记录实际结果。"
|
| 70 |
+
]
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"id": "face_c_different",
|
| 74 |
+
"task": "face",
|
| 75 |
+
"group": "variation",
|
| 76 |
+
"label": [
|
| 77 |
+
"C versus D",
|
| 78 |
+
"人物C与D"
|
| 79 |
+
],
|
| 80 |
+
"image": "rev_face_d",
|
| 81 |
+
"reference": "rev_face_c",
|
| 82 |
+
"expected": false,
|
| 83 |
+
"note": [
|
| 84 |
+
"Run and check the actual output.",
|
| 85 |
+
"运行并核对实际输出。"
|
| 86 |
+
]
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"id": "face_group",
|
| 90 |
+
"task": "face",
|
| 91 |
+
"group": "difficult",
|
| 92 |
+
"label": [
|
| 93 |
+
"Two faces in one image",
|
| 94 |
+
"同图两张脸"
|
| 95 |
+
],
|
| 96 |
+
"image": "rev_face_group",
|
| 97 |
+
"reference": "rev_face_c",
|
| 98 |
+
"expected": "reject_multiple_faces",
|
| 99 |
+
"note": [
|
| 100 |
+
"Run and check the actual output.",
|
| 101 |
+
"运行并核对实际输出。"
|
| 102 |
+
]
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"id": "face_missing",
|
| 106 |
+
"task": "face",
|
| 107 |
+
"group": "difficult",
|
| 108 |
+
"label": [
|
| 109 |
+
"No face: desk",
|
| 110 |
+
"无人脸:桌面"
|
| 111 |
+
],
|
| 112 |
+
"image": "rev_nohand",
|
| 113 |
+
"reference": "rev_face_c",
|
| 114 |
+
"expected": "reject_no_face",
|
| 115 |
+
"note": [
|
| 116 |
+
"Run and check the actual output.",
|
| 117 |
+
"运行并核对实际输出。"
|
| 118 |
+
]
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"id": "hand_palm",
|
| 122 |
+
"task": "gesture",
|
| 123 |
+
"group": "starter",
|
| 124 |
+
"label": [
|
| 125 |
+
"Open palm",
|
| 126 |
+
"张掌"
|
| 127 |
+
],
|
| 128 |
+
"image": "hand_palm",
|
| 129 |
+
"reference": null,
|
| 130 |
+
"expected": "Open_Palm",
|
| 131 |
+
"note": [
|
| 132 |
+
"Run and check the actual output.",
|
| 133 |
+
"运行并核对实际输出。"
|
| 134 |
+
]
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"id": "hand_victory",
|
| 138 |
+
"task": "gesture",
|
| 139 |
+
"group": "starter",
|
| 140 |
+
"label": [
|
| 141 |
+
"Victory",
|
| 142 |
+
"胜利"
|
| 143 |
+
],
|
| 144 |
+
"image": "hand_victory",
|
| 145 |
+
"reference": null,
|
| 146 |
+
"expected": "Victory",
|
| 147 |
+
"note": [
|
| 148 |
+
"Run and check the actual output.",
|
| 149 |
+
"运行并核对实际输出。"
|
| 150 |
+
]
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"id": "hand_fist",
|
| 154 |
+
"task": "gesture",
|
| 155 |
+
"group": "starter",
|
| 156 |
+
"label": [
|
| 157 |
+
"Fist",
|
| 158 |
+
"握拳"
|
| 159 |
+
],
|
| 160 |
+
"image": "hand_fist",
|
| 161 |
+
"reference": null,
|
| 162 |
+
"expected": "Closed_Fist",
|
| 163 |
+
"note": [
|
| 164 |
+
"Run and check the actual output.",
|
| 165 |
+
"运行并核对实际输出。"
|
| 166 |
+
]
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"id": "hand_thumb",
|
| 170 |
+
"task": "gesture",
|
| 171 |
+
"group": "starter",
|
| 172 |
+
"label": [
|
| 173 |
+
"Thumb up",
|
| 174 |
+
"点赞"
|
| 175 |
+
],
|
| 176 |
+
"image": "hand_thumb",
|
| 177 |
+
"reference": null,
|
| 178 |
+
"expected": "Thumb_Up",
|
| 179 |
+
"note": [
|
| 180 |
+
"Run and check the actual output.",
|
| 181 |
+
"运行并核对实际输出。"
|
| 182 |
+
]
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"id": "rev_hand_palm",
|
| 186 |
+
"task": "gesture",
|
| 187 |
+
"group": "supported",
|
| 188 |
+
"label": [
|
| 189 |
+
"Open palm: room",
|
| 190 |
+
"张掌:室内"
|
| 191 |
+
],
|
| 192 |
+
"image": "rev_hand_palm",
|
| 193 |
+
"reference": null,
|
| 194 |
+
"expected": "Open_Palm",
|
| 195 |
+
"note": [
|
| 196 |
+
"Run and check the actual output.",
|
| 197 |
+
"运行并核对实际输出。"
|
| 198 |
+
]
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"id": "rev_hand_fist",
|
| 202 |
+
"task": "gesture",
|
| 203 |
+
"group": "supported",
|
| 204 |
+
"label": [
|
| 205 |
+
"Closed fist",
|
| 206 |
+
"握拳"
|
| 207 |
+
],
|
| 208 |
+
"image": "rev_hand_fist",
|
| 209 |
+
"reference": null,
|
| 210 |
+
"expected": "Closed_Fist",
|
| 211 |
+
"note": [
|
| 212 |
+
"Run and check the actual output.",
|
| 213 |
+
"运行并核对实际输出。"
|
| 214 |
+
]
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"id": "rev_hand_victory",
|
| 218 |
+
"task": "gesture",
|
| 219 |
+
"group": "supported",
|
| 220 |
+
"label": [
|
| 221 |
+
"Victory: left hand",
|
| 222 |
+
"胜利:左手"
|
| 223 |
+
],
|
| 224 |
+
"image": "rev_hand_victory",
|
| 225 |
+
"reference": null,
|
| 226 |
+
"expected": "Victory",
|
| 227 |
+
"note": [
|
| 228 |
+
"Run and check the actual output.",
|
| 229 |
+
"运行并核对实际输出。"
|
| 230 |
+
]
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"id": "rev_hand_thumb_up",
|
| 234 |
+
"task": "gesture",
|
| 235 |
+
"group": "supported",
|
| 236 |
+
"label": [
|
| 237 |
+
"Thumb up: workshop",
|
| 238 |
+
"点赞:工作间"
|
| 239 |
+
],
|
| 240 |
+
"image": "rev_hand_thumb_up",
|
| 241 |
+
"reference": null,
|
| 242 |
+
"expected": "Thumb_Up",
|
| 243 |
+
"note": [
|
| 244 |
+
"Run and check the actual output.",
|
| 245 |
+
"运行并核对实际输出。"
|
| 246 |
+
]
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"id": "rev_hand_thumb_down",
|
| 250 |
+
"task": "gesture",
|
| 251 |
+
"group": "supported",
|
| 252 |
+
"label": [
|
| 253 |
+
"Thumb down",
|
| 254 |
+
"向下拇指"
|
| 255 |
+
],
|
| 256 |
+
"image": "rev_hand_thumb_down",
|
| 257 |
+
"reference": null,
|
| 258 |
+
"expected": "Thumb_Down",
|
| 259 |
+
"note": [
|
| 260 |
+
"Run and check the actual output.",
|
| 261 |
+
"运行并核对实际输出。"
|
| 262 |
+
]
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"id": "rev_hand_pointing",
|
| 266 |
+
"task": "gesture",
|
| 267 |
+
"group": "supported",
|
| 268 |
+
"label": [
|
| 269 |
+
"Pointing up",
|
| 270 |
+
"指向上"
|
| 271 |
+
],
|
| 272 |
+
"image": "rev_hand_pointing",
|
| 273 |
+
"reference": null,
|
| 274 |
+
"expected": "Pointing_Up",
|
| 275 |
+
"note": [
|
| 276 |
+
"Run and check the actual output.",
|
| 277 |
+
"运行并核对实际输出。"
|
| 278 |
+
]
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"id": "rev_hand_iloveyou",
|
| 282 |
+
"task": "gesture",
|
| 283 |
+
"group": "supported",
|
| 284 |
+
"label": [
|
| 285 |
+
"I Love You",
|
| 286 |
+
"我爱你"
|
| 287 |
+
],
|
| 288 |
+
"image": "rev_hand_iloveyou",
|
| 289 |
+
"reference": null,
|
| 290 |
+
"expected": "ILoveYou",
|
| 291 |
+
"note": [
|
| 292 |
+
"Run and check the actual output.",
|
| 293 |
+
"运行并核对实际输出。"
|
| 294 |
+
]
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"id": "rev_hand_ok",
|
| 298 |
+
"task": "gesture",
|
| 299 |
+
"group": "boundary",
|
| 300 |
+
"label": [
|
| 301 |
+
"OK sign: outside vocabulary",
|
| 302 |
+
"OK:词表外"
|
| 303 |
+
],
|
| 304 |
+
"image": "rev_hand_ok",
|
| 305 |
+
"reference": null,
|
| 306 |
+
"expected": "None",
|
| 307 |
+
"note": [
|
| 308 |
+
"This intended pose is outside the seven named categories. Inspect the actual candidate.",
|
| 309 |
+
"此设计姿势不在七个命名类别中,应检查真实候选。"
|
| 310 |
+
]
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"id": "rev_hand_pinch",
|
| 314 |
+
"task": "gesture",
|
| 315 |
+
"group": "boundary",
|
| 316 |
+
"label": [
|
| 317 |
+
"Pinch: outside vocabulary",
|
| 318 |
+
"捏合:词表外"
|
| 319 |
+
],
|
| 320 |
+
"image": "rev_hand_pinch",
|
| 321 |
+
"reference": null,
|
| 322 |
+
"expected": "None",
|
| 323 |
+
"note": [
|
| 324 |
+
"This intended pose is outside the seven named categories. Inspect the actual candidate.",
|
| 325 |
+
"此设计姿势不在七个命名类别中,应检查真实候选。"
|
| 326 |
+
]
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"id": "rev_hand_twohands",
|
| 330 |
+
"task": "gesture",
|
| 331 |
+
"group": "variation",
|
| 332 |
+
"label": [
|
| 333 |
+
"Two hands, two poses",
|
| 334 |
+
"两手两种姿势"
|
| 335 |
+
],
|
| 336 |
+
"image": "rev_hand_twohands",
|
| 337 |
+
"reference": null,
|
| 338 |
+
"expected": [
|
| 339 |
+
"Open_Palm",
|
| 340 |
+
"Victory"
|
| 341 |
+
],
|
| 342 |
+
"note": [
|
| 343 |
+
"Run and check the actual output.",
|
| 344 |
+
"运行并核对实际输出。"
|
| 345 |
+
]
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"id": "rev_gesture_scene",
|
| 349 |
+
"task": "gesture",
|
| 350 |
+
"group": "variation",
|
| 351 |
+
"label": [
|
| 352 |
+
"Gesture at a laptop",
|
| 353 |
+
"电脑前的手势"
|
| 354 |
+
],
|
| 355 |
+
"image": "rev_gesture_scene",
|
| 356 |
+
"reference": null,
|
| 357 |
+
"expected": "Victory",
|
| 358 |
+
"note": [
|
| 359 |
+
"Run and check the actual output.",
|
| 360 |
+
"运行并核对实际输出。"
|
| 361 |
+
]
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"id": "rev_hand_occluded",
|
| 365 |
+
"task": "gesture",
|
| 366 |
+
"group": "difficult",
|
| 367 |
+
"label": [
|
| 368 |
+
"Hand behind a cup",
|
| 369 |
+
"手被杯子遮挡"
|
| 370 |
+
],
|
| 371 |
+
"image": "rev_hand_occluded",
|
| 372 |
+
"reference": null,
|
| 373 |
+
"expected": "review",
|
| 374 |
+
"note": [
|
| 375 |
+
"Run and check the actual output.",
|
| 376 |
+
"运行并核对实际输出。"
|
| 377 |
+
]
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"id": "rev_hand_tiny",
|
| 381 |
+
"task": "gesture",
|
| 382 |
+
"group": "difficult",
|
| 383 |
+
"label": [
|
| 384 |
+
"Small distant hand",
|
| 385 |
+
"远处小手"
|
| 386 |
+
],
|
| 387 |
+
"image": "rev_hand_tiny",
|
| 388 |
+
"reference": null,
|
| 389 |
+
"expected": "review",
|
| 390 |
+
"note": [
|
| 391 |
+
"Run and check the actual output.",
|
| 392 |
+
"运行并核对实际输出。"
|
| 393 |
+
]
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"id": "rev_nohand",
|
| 397 |
+
"task": "gesture",
|
| 398 |
+
"group": "difficult",
|
| 399 |
+
"label": [
|
| 400 |
+
"No hand: desk",
|
| 401 |
+
"无手:桌面"
|
| 402 |
+
],
|
| 403 |
+
"image": "rev_nohand",
|
| 404 |
+
"reference": null,
|
| 405 |
+
"expected": [],
|
| 406 |
+
"note": [
|
| 407 |
+
"Run and check the actual output.",
|
| 408 |
+
"运行并核对实际输出。"
|
| 409 |
+
]
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"id": "ocr_card",
|
| 413 |
+
"task": "ocr",
|
| 414 |
+
"group": "starter",
|
| 415 |
+
"label": [
|
| 416 |
+
"Lab card",
|
| 417 |
+
"实验卡"
|
| 418 |
+
],
|
| 419 |
+
"image": "ocr_card",
|
| 420 |
+
"reference": null,
|
| 421 |
+
"expected": null,
|
| 422 |
+
"note": [
|
| 423 |
+
"Run and check the actual output.",
|
| 424 |
+
"运行并核对实际输出。"
|
| 425 |
+
]
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"id": "ocr_receipt",
|
| 429 |
+
"task": "ocr",
|
| 430 |
+
"group": "starter",
|
| 431 |
+
"label": [
|
| 432 |
+
"Receipt",
|
| 433 |
+
"票据"
|
| 434 |
+
],
|
| 435 |
+
"image": "ocr_receipt",
|
| 436 |
+
"reference": null,
|
| 437 |
+
"expected": null,
|
| 438 |
+
"note": [
|
| 439 |
+
"Run and check the actual output.",
|
| 440 |
+
"运行并核对实际输出。"
|
| 441 |
+
]
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"id": "ocr_sparse",
|
| 445 |
+
"task": "ocr",
|
| 446 |
+
"group": "starter",
|
| 447 |
+
"label": [
|
| 448 |
+
"Sparse labels",
|
| 449 |
+
"稀疏标签"
|
| 450 |
+
],
|
| 451 |
+
"image": "ocr_sparse",
|
| 452 |
+
"reference": null,
|
| 453 |
+
"expected": null,
|
| 454 |
+
"note": [
|
| 455 |
+
"Run and check the actual output.",
|
| 456 |
+
"运行并核对实际输出。"
|
| 457 |
+
]
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"id": "ocr_hard",
|
| 461 |
+
"task": "ocr",
|
| 462 |
+
"group": "starter",
|
| 463 |
+
"label": [
|
| 464 |
+
"Hard case",
|
| 465 |
+
"困难样例"
|
| 466 |
+
],
|
| 467 |
+
"image": "ocr_hard",
|
| 468 |
+
"reference": null,
|
| 469 |
+
"expected": null,
|
| 470 |
+
"note": [
|
| 471 |
+
"Run and check the actual output.",
|
| 472 |
+
"运行并核对实际输出。"
|
| 473 |
+
]
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"id": "rev_ocr_menu",
|
| 477 |
+
"task": "ocr",
|
| 478 |
+
"group": "variation",
|
| 479 |
+
"label": [
|
| 480 |
+
"Menu",
|
| 481 |
+
"菜单"
|
| 482 |
+
],
|
| 483 |
+
"image": "rev_ocr_menu",
|
| 484 |
+
"reference": null,
|
| 485 |
+
"expected": "COFFEE BAR\nEspresso 2.50\nTea 3.00\nSandwich 5.20\nOPEN 09:00",
|
| 486 |
+
"note": [
|
| 487 |
+
"Run and check the actual output.",
|
| 488 |
+
"运行并核对实际输出。"
|
| 489 |
+
]
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"id": "rev_ocr_notice",
|
| 493 |
+
"task": "ocr",
|
| 494 |
+
"group": "variation",
|
| 495 |
+
"label": [
|
| 496 |
+
"Library notice",
|
| 497 |
+
"图书馆告示"
|
| 498 |
+
],
|
| 499 |
+
"image": "rev_ocr_notice",
|
| 500 |
+
"reference": null,
|
| 501 |
+
"expected": "LIBRARY NOTICE\nROOM 406\nOPEN 09:00-17:00\nRETURN BOOKS",
|
| 502 |
+
"note": [
|
| 503 |
+
"Run and check the actual output.",
|
| 504 |
+
"运行并核对实际输出。"
|
| 505 |
+
]
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"id": "rev_ocr_line",
|
| 509 |
+
"task": "ocr",
|
| 510 |
+
"group": "variation",
|
| 511 |
+
"label": [
|
| 512 |
+
"Single line",
|
| 513 |
+
"单行文字"
|
| 514 |
+
],
|
| 515 |
+
"image": "rev_ocr_line",
|
| 516 |
+
"reference": null,
|
| 517 |
+
"expected": "ROOM 406 CHECK IN",
|
| 518 |
+
"note": [
|
| 519 |
+
"Run and check the actual output.",
|
| 520 |
+
"运行并核对实际输出。"
|
| 521 |
+
]
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"id": "rev_ocr_tiny",
|
| 525 |
+
"task": "ocr",
|
| 526 |
+
"group": "difficult",
|
| 527 |
+
"label": [
|
| 528 |
+
"Tiny print",
|
| 529 |
+
"细小文字"
|
| 530 |
+
],
|
| 531 |
+
"image": "rev_ocr_tiny",
|
| 532 |
+
"reference": null,
|
| 533 |
+
"expected": "SMALL TEXT 406\nCHECK DETAILS",
|
| 534 |
+
"note": [
|
| 535 |
+
"Run and check the actual output.",
|
| 536 |
+
"运行并核对实际输出。"
|
| 537 |
+
]
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"id": "rev_ocr_faint",
|
| 541 |
+
"task": "ocr",
|
| 542 |
+
"group": "difficult",
|
| 543 |
+
"label": [
|
| 544 |
+
"Low contrast",
|
| 545 |
+
"低对比文字"
|
| 546 |
+
],
|
| 547 |
+
"image": "rev_ocr_faint",
|
| 548 |
+
"reference": null,
|
| 549 |
+
"expected": "ROOM 406\nCHECK THE LABEL",
|
| 550 |
+
"note": [
|
| 551 |
+
"Run and check the actual output.",
|
| 552 |
+
"运行并核对实际输出。"
|
| 553 |
+
]
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"id": "rev_ocr_identifier",
|
| 557 |
+
"task": "ocr",
|
| 558 |
+
"group": "difficult",
|
| 559 |
+
"label": [
|
| 560 |
+
"Similar identifiers",
|
| 561 |
+
"相似字符编号"
|
| 562 |
+
],
|
| 563 |
+
"image": "rev_ocr_identifier",
|
| 564 |
+
"reference": null,
|
| 565 |
+
"expected": "ROOM 10O2\nID B8O0I1\nCHECK A7Z2",
|
| 566 |
+
"note": [
|
| 567 |
+
"Run and check the actual output.",
|
| 568 |
+
"运行并核对实际输出。"
|
| 569 |
+
]
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"id": "rev_ocr_screen",
|
| 573 |
+
"task": "ocr",
|
| 574 |
+
"group": "variation",
|
| 575 |
+
"label": [
|
| 576 |
+
"Screen text",
|
| 577 |
+
"截图文字"
|
| 578 |
+
],
|
| 579 |
+
"image": "rev_ocr_screen",
|
| 580 |
+
"reference": null,
|
| 581 |
+
"expected": "UPLOAD COMPLETE\nFile: sample_07.png\nStatus: Ready\nImage size: 1000 pixels",
|
| 582 |
+
"note": [
|
| 583 |
+
"Run and check the actual output.",
|
| 584 |
+
"运行并核对实际输出。"
|
| 585 |
+
]
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"id": "rev_ocr_book",
|
| 589 |
+
"task": "ocr",
|
| 590 |
+
"group": "variation",
|
| 591 |
+
"label": [
|
| 592 |
+
"Book paragraph",
|
| 593 |
+
"书页段落"
|
| 594 |
+
],
|
| 595 |
+
"image": "rev_ocr_book",
|
| 596 |
+
"reference": null,
|
| 597 |
+
"expected": "READING VISUAL PATTERNS\nA model receives image pixels.\nUseful features support a task.\nCheck every returned word.",
|
| 598 |
+
"note": [
|
| 599 |
+
"Run and check the actual output.",
|
| 600 |
+
"运行并核对实际输出。"
|
| 601 |
+
]
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"id": "rev_ocr_sparse",
|
| 605 |
+
"task": "ocr",
|
| 606 |
+
"group": "variation",
|
| 607 |
+
"label": [
|
| 608 |
+
"Scattered labels",
|
| 609 |
+
"分散标签"
|
| 610 |
+
],
|
| 611 |
+
"image": "rev_ocr_sparse",
|
| 612 |
+
"reference": null,
|
| 613 |
+
"expected": "ROOM 406\nOPEN 9 AM\nBOOK DESK\nRETURN HERE",
|
| 614 |
+
"note": [
|
| 615 |
+
"Run and check the actual output.",
|
| 616 |
+
"运行并核对实际输出。"
|
| 617 |
+
]
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"id": "rev_ocr_columns",
|
| 621 |
+
"task": "ocr",
|
| 622 |
+
"group": "variation",
|
| 623 |
+
"label": [
|
| 624 |
+
"Two columns",
|
| 625 |
+
"两栏文字"
|
| 626 |
+
],
|
| 627 |
+
"image": "rev_ocr_columns",
|
| 628 |
+
"reference": null,
|
| 629 |
+
"expected": "ITEM\nCODE\nBook\nA10\nLamp\nB20\nChair\nC30",
|
| 630 |
+
"note": [
|
| 631 |
+
"Run and check the actual output.",
|
| 632 |
+
"运行并核对实际输出。"
|
| 633 |
+
]
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"id": "rev_ocr_wide",
|
| 637 |
+
"task": "ocr",
|
| 638 |
+
"group": "variation",
|
| 639 |
+
"label": [
|
| 640 |
+
"Label in a wide view",
|
| 641 |
+
"宽视野标签"
|
| 642 |
+
],
|
| 643 |
+
"image": "rev_ocr_wide",
|
| 644 |
+
"reference": null,
|
| 645 |
+
"expected": "EQUIPMENT STORE\nROOM 406\nRETURN HERE",
|
| 646 |
+
"note": [
|
| 647 |
+
"Run and check the actual output.",
|
| 648 |
+
"运行并核对实际输出。"
|
| 649 |
+
]
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"id": "rev_ocr_focus",
|
| 653 |
+
"task": "ocr",
|
| 654 |
+
"group": "variation",
|
| 655 |
+
"label": [
|
| 656 |
+
"Label in a close view",
|
| 657 |
+
"近视野标签"
|
| 658 |
+
],
|
| 659 |
+
"image": "rev_ocr_focus",
|
| 660 |
+
"reference": null,
|
| 661 |
+
"expected": "EQUIPMENT STORE\nROOM 406\nRETURN HERE",
|
| 662 |
+
"note": [
|
| 663 |
+
"Run and check the actual output.",
|
| 664 |
+
"运行并核对实际输出。"
|
| 665 |
+
]
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"id": "rev_ocr_handwriting",
|
| 669 |
+
"task": "ocr",
|
| 670 |
+
"group": "boundary",
|
| 671 |
+
"label": [
|
| 672 |
+
"Handwritten note",
|
| 673 |
+
"手写便条"
|
| 674 |
+
],
|
| 675 |
+
"image": "rev_ocr_handwriting",
|
| 676 |
+
"reference": null,
|
| 677 |
+
"expected": "Meet at 5 PM",
|
| 678 |
+
"note": [
|
| 679 |
+
"The course model targets printed English; record handwriting results rather than assuming success or failure.",
|
| 680 |
+
"课程模型面向英文印刷体;手写结果需实测,不预设成功或失败。"
|
| 681 |
+
]
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"id": "rev_ocr_scene",
|
| 685 |
+
"task": "ocr",
|
| 686 |
+
"group": "variation",
|
| 687 |
+
"label": [
|
| 688 |
+
"Box label and camera view",
|
| 689 |
+
"箱体标签与相机视图"
|
| 690 |
+
],
|
| 691 |
+
"image": "rev_ocr_scene",
|
| 692 |
+
"reference": null,
|
| 693 |
+
"expected": null,
|
| 694 |
+
"note": [
|
| 695 |
+
"Two text surfaces are visible. Check the box label and phone preview separately.",
|
| 696 |
+
"有两处文字表面,请分别核对箱体与手机预览。"
|
| 697 |
+
]
|
| 698 |
+
}
|
| 699 |
+
]
|
| 700 |
+
}
|
samples/ocr_card.png
ADDED
|
samples/ocr_hard.png
ADDED
|
samples/ocr_receipt.png
ADDED
|
samples/ocr_sparse.png
ADDED
|
samples/rev_face_c.png
ADDED
|
Git LFS Details
|
samples/rev_face_c_mask.png
ADDED
|
Git LFS Details
|
samples/rev_face_c_turn.png
ADDED
|
Git LFS Details
|
samples/rev_face_d.png
ADDED
|
Git LFS Details
|
samples/rev_face_group.png
ADDED
|
Git LFS Details
|
samples/rev_gesture_scene.png
ADDED
|
Git LFS Details
|
samples/rev_hand_fist.png
ADDED
|
Git LFS Details
|