-
Notifications
You must be signed in to change notification settings - Fork 6
/
Globals.py
121 lines (107 loc) · 3.34 KB
/
Globals.py
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Globals.py
# Copyright 2018 Bill Williams <github.com/Billwilliams1952>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#
'''
class Globals:
# [Preferences]
defaultphotodir = '/home/pi/Pictures'
defaultvideodir = '/home/pi/Videos'
defaulttimelapsephotodir = '/home/pi/Pictures'
defaulttimelapsevideodir = '/home/pi/Videos'
defaultfilesdir = '/home/pi/Documents'
defaultphotoname = 'Image_'
defaultphotoformat = 'jpg'
defaultvideoname = 'Video_'
defaultvideoformat = 'h264'
# In the INI file replace % with @, then replace back when reading
defaulttimestampformat = '%m%d%y-%H%M%S'
phototimestamp = False
videotimestamp = False
defaultLanguage = 'English'
# [Camera]
cameraPresent = True # Not sure if this will be used
defaultBrightness = 50
defaultContrast = 0
defaultSaturation = 0
defaultSharpness = 0
defaultResolution = 18 # 1920 x 1080 (HD)
# Newly added
useVideoPort = False
imageDenoise = True
videoDenoise = True
videoStabilization = True
exposureCompensation = 0 # -25 to 25
meteringMode = 0 # 'average' = 0
drcStrength = 0 #
# 10/1/2018
flipHorizontal = False
flipVertical = False
rotateValue = 0
# [Video]
defaultVideoTimeout = 30 # a value of 0 is NO timeout
defaultFrameRate = 30
# [Annotation]
defaultAnnotateTextsize = 40
timestampEnabled = False
framerateEnabled = False
transparantBackgroundEnabled = True
annotateBackgroundColor = 50
annotateForegroundColor = 100
# [Preview]
defaultAlpha = 240
# [Network]
enableHTTPServer = False # ALWAYS START AS FALSE
enableVideoStreaming = False
headingLevel1 = 'microVIEW'
headingLevel2 = 'Streaming Live Video from Station 1'
# [Timelapse]
defaultTakePictureCount = 5
defaultTakePictureCountType = 0 # 0=seconds, 1=minutes, 2=hours
defaultStopPictureCount = 5
defaultStopPictureCountType = 0 # 0=pictures, 1=seconds, 2=minutes, 3=hours, 4=days
defaultTakeVideoCount = 5
defaultTakeVideoCountType = 0 # 0=seconds, 1=minutes, 2=hours
defaultVideoLength = 5
defaultVideoLengthType = 0 # 0=seconds, 1=minutes, 2=hours
defaultStopVideoCount = 5
defaultStopVideoCountType = 0 # 0=videos, 1=seconds, 2=minutes, 3=hours, 4=days
# [Colors]
defaultBackgroundColor = 'black'
defaultForegroundColor = 'white'
buttonbackcolor = 'blue'
buttontextcolor = 'white'
buttonpressedcolor = '#9899FF'
buttonpressedtextcolor = 'black'
sliderbackcolor = 'blue'
slidercolor = '#9899FF'
slidertextcolor = 'white'
# [Fonts]
defaultFont = 'Arial 14 bold'
labelFont = 'Arial 12 bold'
# [Layout]
defaultButtonHeight = 50
defaultButtonPadX = 10
defaultButtonPadY = 10
defaultSliderHeight = 50
defaultSliderPadX = 10
defaultSliderPadY = 10
# [JPEG]
# [H264]