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
// | |
// FlipperView.swift | |
// Myanmar Lens | |
// | |
// Created by Aung Ko Min on 12/1/20. | |
// Copyright © 2020 Aung Ko Min. All rights reserved. | |
// | |
import SwiftUI |
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
// | |
// WeaveTextModifier.swift | |
// Myanmar Lens | |
// | |
// Created by Aung Ko Min on 12/1/20. | |
// Copyright © 2020 Aung Ko Min. All rights reserved. | |
// | |
import SwiftUI |
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
// | |
// ClockSUIView.swift | |
// Myanmar Lens | |
// | |
// Created by Aung Ko Min on 11/1/20. | |
// Copyright © 2020 Aung Ko Min. All rights reserved. | |
// | |
import SwiftUI |
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
// | |
// CornorRectView.swift | |
// Myanmar Lens | |
// | |
// Created by Aung Ko Min on 17/1/20. | |
// Copyright © 2020 Aung Ko Min. All rights reserved. | |
// | |
import UIKit | |
class CornorRectView: UIView { |
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
// | |
// Quadrilateral.swift | |
// Myanmar Lens | |
// | |
// Created by Aung Ko Min on 14/1/20. | |
// Copyright © 2020 Aung Ko Min. All rights reserved. | |
// | |
// | |
// Quadrilateral.swift |
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
import Foundation | |
private let smoothingParameter = 1.0 | |
enum Category: String { | |
case Question, Normal | |
} | |
class TextClassifier { | |
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
import Foundation | |
struct BagOfWords: Codable { | |
let sortedArrayOfWords: [String] | |
init(setOfWords: Set<String>) { | |
sortedArrayOfWords = Array(setOfWords).sorted() | |
} | |
internal func binarySearch(_ word: String) -> Int? { |
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
// | |
// Log.swift | |
// BurmeseNotepad | |
// | |
// Created by Aung Ko Min on 19/7/19. | |
// Copyright © 2019 Aung Ko Min. All rights reserved. | |
// | |
import Foundation |
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
import AVFoundation | |
class VideoManager: AVManager { | |
private let sessionQueue: DispatchQueue | |
private let mediaType: AVMediaType | |
private let videoOrientation: AVCaptureVideoOrientation | |
private let cameraPosition: AVCaptureDevice.Position | |
private(set) var previewLayer: AVCaptureVideoPreviewLayer |
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
import AVFoundation | |
struct ImageProcessor { | |
private var ciContext: CIContext | |
init(ciContext: CIContext = CIContext()) { | |
self.ciContext = ciContext | |
} | |
} |