Skip to content

Conversation

@soyeonLee126
Copy link
Collaborator

@soyeonLee126 soyeonLee126 commented Jan 30, 2026

변경 내용

  • 커스텀 이미지 피커 추가
  • 오늘 날짜 사진만 MediaStore로 조회 후, 음식 분류 결과만 그리드에 표시
  • 음식인지 여부 판단 후 결과 메모리 캐시 + URI 키 정규화
  • 동일 URI 재호출 시 캐시에서 결과 반환하는지 검증로직 추가

체크리스트

  • 빌드 정상 동작
  • 불필요한 파일 없음

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

color scheme이름은 일단 아무거나 끼워뒀습니다! 추후 맞춰 변경 예정입니다

Copy link
Collaborator

@Hoseong-Ryu Hoseong-Ryu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clearCache를 언제할지 정해야될 것 같기는한데 MVP 나오고 실기기로 테스트해보면서 OOM 직접 터뜨려보면서 정해볼까요..?
수고하셨습니다~!


private data class PhotoWithClassification(
val uriString: String,
val result: com.nexters.fooddiary.domain.model.ClassificationResult?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p5. AI 사용하고 저도 자주하는 실수... import 부탁드리겠습니다..!

lifecycleViewmodelCompose = "2.8.7"
activityCompose = "1.9.3"
composeBom = "2025.12.01"
composeBom = "2024.11.00"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p4. 버전을 변경했어야하는 이유가 있었나요?

Comment on lines +25 to +27
val uriString = mediaItem.uri
val result = classificationRepository.classifyImage(uriString)
PhotoWithClassification(uriString, result)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p2. async await으로 처리하면 비동기 처리를 더 효율적으로 사용할 수 있을 것 같아요

val result = runCatching {
classifyImageUseCase(uri.toString())
}.getOrNull()
val idx = index
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p5. 여기 idx 변수 선언 사용하지 않아도 괜찮을 것 같아요

import com.nexters.fooddiary.domain.model.ClassificationResult

data class ClassifiedImageItem(
val bitmap: Bitmap,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p3. Bitmap을 상태로 저장하는 것보다는 URI를 저장하는게 메모리 사용량을 줄일 수 있을 것 같아요.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants