feat: Face JSON v2 schema - add schema_version, bbox x2/y2/center, keep embeddings, update clustering

This commit is contained in:
Accusys
2026-11-02 14:34:02 +08:00
parent 2fca49b120
commit 5d18183d82
566 changed files with 321788 additions and 1662 deletions
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: Auth API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: auth -->
<!-- description: Authentication — login, logout, JWT, session cookie, API key -->
<!-- depends: -->
@@ -391,6 +398,24 @@ curl<span class="w"> </span>-s<span class="w"> </span>-o<span class="w"> </span>
</ul>
<hr />
<p><em>Updated: 2026-05-19 12:49:24</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: health API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: health -->
<!-- description: Health check endpoints -->
<!-- depends: 01_auth -->
@@ -341,6 +348,24 @@ a { color: #0066cc; }
</table>
<hr />
<p><em>Updated: 2026-05-19 12:49:24</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: register API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: register -->
<!-- description: File registration — register, scan -->
<!-- depends: 01_auth -->
@@ -448,6 +455,24 @@ curl<span class="w"> </span>-s<span class="w"> </span><span class="s2">&quot;</s
</table>
<hr />
<p><em>Updated: 2026-05-19 12:49:24</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: lookup API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: lookup -->
<!-- description: File listing, lookup by name, file detail, faces, identities, JSON download, unregistration -->
<!-- depends: 01_auth, 03_register -->
@@ -825,6 +832,24 @@ curl<span class="w"> </span>-s<span class="w"> </span>-X<span class="w"> </span>
</table>
<hr />
<p><em>Updated: 2026-06-20 — Added file listing, file detail, file identities, file faces, and JSON download endpoints</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+31 -23
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: process API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: process -->
<!-- description: Processing pipeline — trigger, probe, progress, jobs -->
<!-- depends: 01_auth, 03_register -->
@@ -84,11 +91,8 @@ curl<span class="w"> </span>-s<span class="w"> </span>-X<span class="w"> </span>
<h4>Response (200)</h4>
<div class="codehilite"><pre><span></span><code><span class="p">{</span>
<span class="w"> </span><span class="nt">&quot;success&quot;</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="p">,</span>
<span class="w"> </span><span class="nt">&quot;job_id&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">42</span><span class="p">,</span>
<span class="w"> </span><span class="nt">&quot;file_uuid&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;3a6c1865...&quot;</span><span class="p">,</span>
<span class="w"> </span><span class="nt">&quot;status&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;processing&quot;</span><span class="p">,</span>
<span class="w"> </span><span class="nt">&quot;pids&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="mi">12346</span><span class="p">],</span>
<span class="w"> </span><span class="nt">&quot;message&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Processing triggered for video.mp4&quot;</span>
<span class="w"> </span><span class="nt">&quot;message&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Processing triggered&quot;</span><span class="p">,</span>
<span class="w"> </span><span class="nt">&quot;file_uuid&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;3a6c1865...&quot;</span>
<span class="p">}</span>
</code></pre></div>
@@ -107,32 +111,18 @@ curl<span class="w"> </span>-s<span class="w"> </span>-X<span class="w"> </span>
<td>Always true on 200</td>
</tr>
<tr>
<td><code>job_id</code></td>
<td>integer</td>
<td>Monitor job ID (for job tracking)</td>
<td><code>message</code></td>
<td>string</td>
<td>Human-readable status message</td>
</tr>
<tr>
<td><code>file_uuid</code></td>
<td>string</td>
<td>32-char hex UUID of the file</td>
</tr>
<tr>
<td><code>status</code></td>
<td>string</td>
<td><code>"queued"</code> — file enters the FIFO queue</td>
</tr>
<tr>
<td><code>pids</code></td>
<td>integer[]</td>
<td>Process IDs of started processors (empty for queued)</td>
</tr>
<tr>
<td><code>message</code></td>
<td>string</td>
<td>Human-readable status</td>
</tr>
</tbody>
</table>
<p><strong>Note</strong>: Processing runs asynchronously in the background. Use <code>/api/v1/job/:uuid</code> to track job status and <code>/api/v1/progress/:file_uuid</code> for real-time progress.</p>
<h4>Error Responses</h4>
<table class="table">
<thead>
@@ -897,6 +887,24 @@ curl<span class="w"> </span>-s<span class="w"> </span>-X<span class="w"> </span>
<p>Phase 1 (<code>/phase1</code>) combines store-asrx + rule1 + vectorize into one call.</p>
<hr />
<p><em>Updated: 2026-06-23 — Added queued status, FIFO queue order, queue_position in job detail, frontend status mapping table</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: search API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: search -->
<!-- description: Vector search, BM25, smart search, universal search, LLM reranked search, frame search -->
<!-- depends: 01_auth -->
@@ -706,6 +713,24 @@ curl<span class="w"> </span>-s<span class="w"> </span>-X<span class="w"> </span>
</table>
<hr />
<p><em>Updated: 2026-06-20 — Added llm-smart search, completed frames search documentation, marked visual search as planned</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: identity API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: identity -->
<!-- description: Global identities — CRUD, detail, files, faces, bind, unbind, search -->
<!-- depends: 01_auth -->
@@ -1753,6 +1760,24 @@ curl<span class="w"> </span>-s<span class="w"> </span>-X<span class="w"> </span>
<p><em>Updated: 2026-08-12 — identity traces include capture_quality fields (avg_capture_quality, best_capture_quality)</em>
<em>Updated: 2026-07-21 — Fixed bind/unbind TKG update to match both trace_N and face_track_N external_id formats</em>
<em>Updated: 2026-06-20 — Added identity files, chunks, faces, status, and JSON endpoints</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: identity agent API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: identity_agent -->
<!-- description: Identity agent — match from photo, match from trace -->
<!-- depends: 01_auth, 07_identity -->
@@ -190,6 +197,24 @@ a { color: #0066cc; }
</ol>
<hr />
<p><em>Updated: 2026-06-26 00:30:00</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: Media API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: media -->
<!-- description: Video streaming & frame extraction -->
<!-- depends: 01_auth -->
@@ -884,6 +891,24 @@ curl<span class="w"> </span>-s<span class="w"> </span><span class="s2">&quot;</s
<hr />
<hr />
<p><em>Updated: 2026-06-20 — Added stranger endpoints, chunk thumbnail, and media proxy</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: tmdb API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: tmdb -->
<!-- description: TMDb enrichment endpoints — prefetch, probe, resource, check -->
<!-- depends: 01_auth, 03_register -->
@@ -243,6 +250,24 @@ If local files exist, no external API call is made. Internet is only needed for
<p>No manual API call needed if auto-match is enabled.</p>
<hr />
<p><em>Updated: 2026-06-20 — Added tmdb/fetch and tmdb/match endpoints</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: pipeline API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: pipeline -->
<!-- description: Pipeline processors, ingestion status, stats endpoints -->
<!-- depends: 01_auth -->
@@ -348,6 +355,24 @@ a { color: #0066cc; }
</table>
<hr />
<p><em>Updated: 2026-05-19 23:21:51</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: agent API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<h1>Agent Endpoints</h1>
<p>Agent endpoints provide AI-powered capabilities including translation, identity analysis, and 5W1H extraction.</p>
<h2>POST /api/v1/agents/translate</h2>
@@ -394,6 +401,24 @@ Round 2: POST /agents/search { query: &quot;奧黛麗赫本&quot;, conversation_
</table>
<hr />
<p><em>Updated: 2026-05-22</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
+25
View File
@@ -31,6 +31,13 @@ a { color: #0066cc; }
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
</div>
<hr />
<p>title: config API
version: 1.0
date: 2026-10-24
author: Core Team
status: Active</p>
<hr />
<!-- module: config -->
<!-- description: System configuration — cache, auto-pipeline, watcher-auto-register toggles -->
<!-- depends: 01_auth -->
@@ -141,6 +148,24 @@ curl<span class="w"> </span>-s<span class="w"> </span>-X<span class="w"> </span>
<hr />
<p><em>Updated: 2026-05-19 12:49:24</em></p>
<hr />
<h2>Version History</h2>
<table class="table">
<thead>
<tr>
<th>Version</th>
<th>Date</th>
<th>Changes</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.0</td>
<td>2026-10-24</td>
<td>Initial documentation</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>