-
Notifications
You must be signed in to change notification settings - Fork 593
[Feat] Implemented the search feature by uploading a image - 2nd PR #523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughRemoves multiple GitHub templates/workflows and .gitignore entries. Adds backend face search: config constant, DB embeddings fetch, updated detector signature, and a new POST /face-clusters/face-search route with models. Updates OpenAPI. Frontend adds search slice, API call, dialog, hook, and integrates search results into Home and MediaView (prop change). Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant N as Navbar / FaceSearchDialog
participant FE as Frontend API
participant BE as /face-clusters/face-search
participant FD as FaceDetector
participant FN as FaceNet
participant DB as DB (faces+images)
U->>N: Open Face Search dialog and pick image path
N->>FE: fetchSearchedFaces({ path })
FE->>BE: POST /face-search (path)
BE->>FD: detect_faces(image_id, path, forSearch=true)
FD->>FN: Generate embedding(s)
FD-->>BE: First face embedding or none
BE->>DB: get_all_face_embeddings()
DB-->>BE: Stored embeddings + metadata
BE->>BE: Cosine similarity vs threshold
BE-->>FE: 200 OK { data: matching images }
FE-->>N: Results
N->>N: Dispatch setResults / clearSearch
Note over N,U: UI updates to show results grid in Home/MediaView
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (31)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This PR implements a new API route to search a tagged face and deleting the old file of routes/facetagging.py
Summary by CodeRabbit