Skip to content

Instantly share code, notes, and snippets.

View jonahaung's full-sized avatar

Aung Ko Min jonahaung

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