From b98fc048814a24c18ef58e5ac984377c3eae9a18 Mon Sep 17 00:00:00 2001 From: Minkyeong-Choi Date: Wed, 13 Nov 2024 12:38:52 +0900 Subject: [PATCH] fix: #90 screenshot error solved --- TMT/TMT/BusJourneyScanned/Models/BusInfoEnum.swift | 1 - TMT/TMT/Utils/BusJourneyExtractor.swift | 2 +- TMT/TMT/Utils/OCRProcessor.swift | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TMT/TMT/BusJourneyScanned/Models/BusInfoEnum.swift b/TMT/TMT/BusJourneyScanned/Models/BusInfoEnum.swift index 7b4a479..dcc5830 100644 --- a/TMT/TMT/BusJourneyScanned/Models/BusInfoEnum.swift +++ b/TMT/TMT/BusJourneyScanned/Models/BusInfoEnum.swift @@ -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 } diff --git a/TMT/TMT/Utils/BusJourneyExtractor.swift b/TMT/TMT/Utils/BusJourneyExtractor.swift index 8b4095d..04f04f2 100644 --- a/TMT/TMT/Utils/BusJourneyExtractor.swift +++ b/TMT/TMT/Utils/BusJourneyExtractor.swift @@ -33,7 +33,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) }) diff --git a/TMT/TMT/Utils/OCRProcessor.swift b/TMT/TMT/Utils/OCRProcessor.swift index 3e2e4ae..a62bc3b 100644 --- a/TMT/TMT/Utils/OCRProcessor.swift +++ b/TMT/TMT/Utils/OCRProcessor.swift @@ -66,7 +66,8 @@ final class OCRProcessor { } if firstIndex < secondIndex { let result = Array(filteredArray[(firstIndex + 1)..