Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions backend/app/database/face_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,19 +299,20 @@ def db_get_images_by_cluster_id(
bbox_json,
) = row

import json

metadata_dict = json.loads(metadata) if metadata else None
# Parse bbox JSON if it exists
bbox = None
if bbox_json:
import json

bbox = json.loads(bbox_json)

images.append(
{
"image_id": image_id,
"image_path": image_path,
"thumbnail_path": thumbnail_path,
"metadata": metadata,
"metadata": metadata_dict,
Comment thread
tushar1977 marked this conversation as resolved.
"face_id": face_id,
"confidence": confidence,
"bbox": bbox,
Expand Down
Loading