Repository navigation
fix(analysis): 화살표 검출 원본 해상도 사용 + 구속·궤적 진단 보강 - #44
Merged
Merged
Conversation
실기기 1회차 성공 로그에서 landmark_speed_kmh=null로 랜드마크 코어가 죽고 legacy 32.7km/h가 채택됐다. 실패 원인이 "검출 0개"인지 "선 구성 실패"인지 구분되지 않아 튜닝 방향을 정할 수 없었다. [analysis_pipeline] - run()에 landmarkFrame 옵션 추가. 분석 프레임은 폭 480 + jpeg q5로 뽑혀 화살표가 뭉개진다. 화살표는 레인 고정 마킹이라 어느 프레임이든 무방하므로 호출부가 이미 원본 해상도로 뽑아둔 첫 프레임을 넘긴다 - [Arrow] 로그 — 입력 해상도, 검출 개수, 각 좌표, 선 성립 여부 - [Trajectory] 리본 끝점 로그 — 리본 f범위와 ny 범위, 마지막 관측 프레임, 핀존 ny를 한 줄에 모아 "선이 BP에서 끝난다"가 연장 실패인지 원근 압축인지 판정 가능하게 함 [analysis_trim_page] - 레인 확인용으로 이미 디코딩해둔 원본 프레임을 landmarkFrame으로 전달 - metrics에 trajectory 첫/끝 프레임과 ny 추가 — SQL만으로 리본 도달 여부 판정
devpark435
marked this pull request as ready for review
July 30, 2026 09:07
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.
실기기 1회차 결과 (1.3.0+45)
분석 성공. 진단 로그로 두 문제의 원인이 좁혀짐.
구속이 높은 이유
landmark_speed_kmh = null— 화살표 검출 실패로 랜드마크 코어가 죽고 legacy 폴백. legacy는 원근 압축에 취약해 재설계 대상이었던 그 코어다.legacy 내부에서도 두 추정이 어긋난다:
게다가 파울라인 통과가 f=63.6인데 릴리즈는 f=66~67 — 공이 릴리즈보다 3.4프레임 먼저 파울라인을 넘었다는 모순. 호모그래피 레인 y가 신뢰할 수 없다는 직접 증거.
궤적이 BP에서 끝나 보이는 건
코드상 리본은 f66
f124 59개 단면 전부 생성됨(관측 37 + 모델 연장 22). 끊기지 않는다. 남은 가능성은 연장 구간이 소실점 근처라 픽셀 이동이 거의 없는 것 — 판정하려면 리본 끝점 ny를 핀존 ny(이번 회차 0.340.41)와 비교해야 한다.변경
1. 화살표 검출 입력 교체 (실질 수정)
분석 프레임은
scale=480:-1 -q:v 5로 뽑힌다. 화살표는 이 해상도/압축에서 뭉개진다. 화살표는 레인에 고정된 마킹이라 어느 프레임을 써도 무방하므로, 레인 확인용으로 이미 원본 해상도(-q:v 3, 스케일 없음)로 디코딩해둔 첫 프레임을run(landmarkFrame:)으로 넘긴다. ffmpeg 추가 호출 없음.2. 진단
[Arrow]— 입력 해상도, 검출 개수, 각 좌표, 선 성립 여부. 실패가 "0개 검출"인지 "선 구성 실패"인지 구분[Trajectory]리본 끝점 — 리본 f범위·ny범위, 마지막 관측, 핀존 ny를 한 줄에metrics에trajectory_first/last_frame,trajectory_first/last_ny— SQL만으로 도달 판정검증
flutter analyze lib/features/analysis/— 신규 이슈 0 (기존 info 2건은 homography_solver 네이밍)flutter test test/features/analysis— 210 passed