Skip to content

Commit

Permalink
Merge pull request #91 from DeveloperAcademy-POSTECH/fix/90-screensho…
Browse files Browse the repository at this point in the history
…t-bug-solve

[#90] 스크린샷 이슈 해결 (~11/12)
  • Loading branch information
dbqls200 authored Nov 13, 2024
2 parents 7f9e043 + a94088f commit 5c0c97e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion TMT/TMT/BusJourneyExtractor/BusInfoEnum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ enum BusColor: String, CaseIterable {
case general = "General"
case express = "Express"
case green = "Green"
case town = "Town"

static var allColors: [String] {
return BusColor.allCases.map { $0.rawValue }
Expand Down
2 changes: 1 addition & 1 deletion TMT/TMT/BusJourneyExtractor/BusJourneyExtractor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BusJourneyExtractor {
BusNumber.allNumbers.contains(where: { element.contains($0) }) && !element.contains("")
}
ocrProcessor.getBusNumber(sortOfBusNumber: sortOfBusNumber)

// MARK: - 버스 경로 생김새에 따라 분기처리합니다.
if let firstColorIndex = filteredArray.firstIndex(where: { element in
sortOfBuses.contains(where: { busType in element.contains(busType) })
Expand Down
3 changes: 2 additions & 1 deletion TMT/TMT/BusJourneyExtractor/OCRProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ class OCRProcessor {
}
if firstIndex < secondIndex {
let result = Array(filteredArray[(firstIndex + 1)..<secondIndex].dropLast())
endStop = stringArrayToStirng(stringArray: result)
let filteredResult = result.filter { $0 != "ETA" }
endStop = stringArrayToStirng(stringArray: filteredResult)
}
} else {
print("Failed to extract busStopToGetOff.")
Expand Down

0 comments on commit 5c0c97e

Please sign in to comment.