Skip to content

Instantly share code, notes, and snippets.

View jonahaung's full-sized avatar

Aung Ko Min jonahaung

View GitHub Profile
@jonahaung
jonahaung / ObjectDetector.swift
Last active March 19, 2020 00:41
All-in-one vision framework detectors
//
// SaliencyDetector.swift
// Myanmar Lens
//
// Created by Aung Ko Min on 15/3/20.
// Copyright © 2020 Aung Ko Min. All rights reserved.
//
import Foundation
import Vision
//
// SaliencyDetector.swift
// Myanmar Lens
//
// Created by Aung Ko Min on 15/3/20.
// Copyright © 2020 Aung Ko Min. All rights reserved.
//
import Foundation
import Vision
@jonahaung
jonahaung / CButton.swift
Created February 24, 2020 14:32
SwiftUI Custom Button
//
// CButton.swift
// Myanmar Lens
//
// Created by Aung Ko Min on 24/2/20.
// Copyright © 2020 Aung Ko Min. All rights reserved.
//
import SwiftUI
@jonahaung
jonahaung / SpinningView.swift
Last active February 24, 2020 14:33
SwiftUI Activity Indicator
//
// SpinningView.swift
// BalarSarYwat
//
// Created by Aung Ko Min on 10/2/20.
// Copyright © 2020 Aung Ko Min. All rights reserved.
//
import UIKit
//
// SwiftyTesseract.swift
// Myanmar Lens
//
// Created by Aung Ko Min on 20/11/19.
// Copyright © 2019 Aung Ko Min. All rights reserved.
//
struct RecognitionQueue<T: Hashable> {
//
// StringTracker.swift
// Myanmar Lens
//
// Created by Aung Ko Min on 24/11/19.
// Copyright © 2019 Aung Ko Min. All rights reserved.
//
import Foundation
class Tools {
private class func min(numbers: Int...) -> Int {
return numbers.reduce(numbers[0]) {$0 < $1 ? $0 : $1}
}
class Array2D {
var cols:Int, rows:Int
var matrix: [Int]
//
// UIImageColors.swift
// Myanmar Lens
//
// Created by Aung Ko Min on 13/1/20.
// Copyright © 2020 Aung Ko Min. All rights reserved.
//
#if os(OSX)
import AppKit
//
// DroupDownMessageBar.swift
// Myanmar Lens
//
// Created by Aung Ko Min on 19/12/19.
// Copyright © 2019 Aung Ko Min. All rights reserved.
//
import UIKit
//
// SwiftUIView.swift
// Myanmar Lens
//
// Created by Aung Ko Min on 13/1/20.
// Copyright © 2020 Aung Ko Min. All rights reserved.
//
import SwiftUI