feat: ASRX hybrid pipeline, identity history, worker fixes, checkpoint system
This commit is contained in:
@@ -220,8 +220,8 @@ async fn list_identities(
|
||||
.await
|
||||
.unwrap_or(0);
|
||||
let auto_identities: i64 = sqlx::query_scalar(&format!(
|
||||
"SELECT COUNT(*) FROM {} WHERE source = 'auto'",
|
||||
identities_table
|
||||
"SELECT COUNT(*) FROM {} WHERE file_uuid IS NOT NULL",
|
||||
crate::core::db::schema::table_name("strangers")
|
||||
))
|
||||
.fetch_one(db.pool())
|
||||
.await
|
||||
@@ -258,7 +258,7 @@ pub struct FaceCandidate {
|
||||
pub id: i32,
|
||||
pub face_id: Option<String>,
|
||||
pub file_uuid: String,
|
||||
pub frame_number: i32,
|
||||
pub frame_number: i64,
|
||||
pub confidence: f32,
|
||||
pub bbox: Option<serde_json::Value>,
|
||||
pub attributes: Option<serde_json::Value>,
|
||||
@@ -352,7 +352,7 @@ async fn list_face_candidates(
|
||||
|
||||
let rows = if let Some(file_uuid) = &query.file_uuid {
|
||||
let sql = format!(
|
||||
"SELECT id, face_id, file_uuid, frame_number::int, confidence::float4,
|
||||
"SELECT id, face_id, file_uuid, frame_number::bigint, confidence::float4,
|
||||
jsonb_build_object('x', x, 'y', y, 'width', width, 'height', height) as bbox,
|
||||
NULL::jsonb as attributes
|
||||
FROM {}
|
||||
@@ -367,7 +367,7 @@ async fn list_face_candidates(
|
||||
i32,
|
||||
Option<String>,
|
||||
String,
|
||||
i32,
|
||||
i64,
|
||||
f32,
|
||||
Option<serde_json::Value>,
|
||||
Option<serde_json::Value>,
|
||||
@@ -390,7 +390,7 @@ async fn list_face_candidates(
|
||||
}
|
||||
} else {
|
||||
let sql = format!(
|
||||
"SELECT id, face_id, file_uuid, frame_number::int, confidence::float4,
|
||||
"SELECT id, face_id, file_uuid, frame_number::bigint, confidence::float4,
|
||||
jsonb_build_object('x', x, 'y', y, 'width', width, 'height', height) as bbox,
|
||||
NULL::jsonb as attributes
|
||||
FROM {}
|
||||
@@ -405,7 +405,7 @@ async fn list_face_candidates(
|
||||
i32,
|
||||
Option<String>,
|
||||
String,
|
||||
i32,
|
||||
i64,
|
||||
f32,
|
||||
Option<serde_json::Value>,
|
||||
Option<serde_json::Value>,
|
||||
|
||||
Reference in New Issue
Block a user