-
Notifications
You must be signed in to change notification settings - Fork 0
/
Debug.swift
54 lines (40 loc) · 1.29 KB
/
Debug.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// Debug.swift
// MobileLighting
//
// Created by Nicholas Mosier on 5/28/18.
//
import Foundation
import AVFoundation
var processingMode = false // skip communication with the iPhone, with the robot server, and with the external displays
var emulateRobot = true // skip communication with the robot server.
var verboseConnection = false // print detailed messages regarding iPhone/Mac connection.
let shouldSaveOriginals = false
let shouldSendThreshImgs = false
// thresholding parameters
let threshold_val = 0.035
// refinement parameters
let maxdiff0: Float = 1.0
let maxdiff1: Float = 0.1
// rectification
enum RectificationMode {
case ON_PHONE, ON_MAC, NONE
}
let rectificationMode: RectificationMode = .NONE
let stereoPosition = 1 // change laters // what does that even mean?!?!
// photo capture
let defaultResolution = "high"
// robot control
let robotAcceleration: Float = 0.15
let robotVelocity: Float = 0.15
let robotDelay: Float = 5.0
// calibration detection
let minDetectedObjs: Int = 5
// orientation
//let cameraOrientation: CameraOrientation = .Portrait
let cameraOrientation: AVCaptureVideoOrientation = .landscapeLeft
// torch mode
let torchModeLevel: Float = 1.0 // max
let torchModeFrequency: Double = 5.0 // in flashes / sec
// jpeg quality
let jpegQuality: NSNumber = 1.0