[AI] feat: 닮은동물AI 베이스 코드 추가 #3
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔗 Connected Issue
Closes #1
📅 Development Period
2026.01.09 ~ 2026.01.09
📢 Description
얼굴 이미지 업로드 기반 닮은 동물상 분석 API를 구현했습니다.
InsightFace를 활용해 얼굴 검출 및 임베딩을 추출했습니다.
전체 임베딩 KNN 방식으로 성별별 동물상 유사도를 계산하도록 구성했습니다.
🧪 How to Run / Test
의존성 설치
pip install -r requirements.txt
서버 실행
uvicorn main:app --reload
API 테스트
POST /analyze
form-data
gender: 남자 | 여자
file: 얼굴 이미지
응답 예시
animal_type: 강아지
det_score: 0.82
✔️ PR Checklist
MR이 아래 사항을 충족하는지 확인해주세요: