Repository navigation
[fix] 얼굴 인식 세션 후보를 고른 층 학생으로 제한하고 OTHER_FLOOR 제거 - #257
Merged
Merged
Conversation
minwoo-3
requested review from
Fresh-Banana,
Ims2oha and
kimseongchan0914
as code owners
October 27, 2026 09:25
Ims2oha
approved these changes
Oct 27, 2026
This was referenced Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
✨ 작업 내용
floor층 호실(예: 3층은 300~399호) 출석 대상 학생의 템플릿으로만 제한했습니다.FaceTemplateRepository.findAllEligibleInRooms(firstRoom, lastRoom)을 추가했고, 이제 쓰지 않는 전 층 조회findAllEligible()은 제거했습니다.OTHER_FLOOR판정을 없앴습니다. 다른 층 학생은 처음부터 후보에 없으므로 AI가 맞히지 못하고UNKNOWN실패가 됩니다.UNKNOWN으로 처리합니다. 층 도입 전 세션(floornull)은 지금처럼 층을 따지지 않습니다.qrRecommended를 켜면 다른 층 학생이어도 그대로 내려주고 최근 인식에 실패로 남깁니다. 기존에는OTHER_FLOOR일 때 꺼졌습니다.recognition.status허용 값과qrRecommended설명에서OTHER_FLOOR를 뺐습니다.floor와 응답floor필드는 그대로 둡니다.🔍 리뷰 시 참고사항
Student.getDormitoryFloor()(호실 / 100)와 같고, 쿼리는RoomService.getFloor처럼BETWEEN호실 범위를 씁니다.maxCandidates(기본 200)는 바꾸지 않았습니다. 이제 상한이 층별 후보 수에 적용되므로 전 층 기준일 때보다 여유가 생깁니다. 한 층 학생이 200명을 넘을 일은 없다고 보았습니다.OTHER_FLOOR도UNKNOWN으로 읽으므로 배포 순서와 상관없이 동작합니다(Client#361)../gradlew build를 실행해 통과했습니다. 실제 AI 서버와 카메라로 직접 확인하지는 않았습니다.✅ 체크리스트
.env.example등) 변경이 필요한 경우 작성 또는 수정했나요?📎 관련 이슈(선택)