-
Notifications
You must be signed in to change notification settings - Fork 15
/
vision_definitions.py
75 lines (70 loc) · 1.87 KB
/
vision_definitions.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
# Camera model
kOV7670 = 1 # VGA camera
kMT9M114 = 2 # HD wide angle camera
# Image format
k960p = 3 # 1280*960
k4VGA = 3 # 1280*960
kVGA = 2 # 640*480
kQVGA = 1 # 320*240
kQQVGA = 0 # 160*120
# Color Space
kYuvColorSpace = 0
kyUvColorSpace = 1
kyuVColorSpace = 2
kRgbColorSpace = 3
krGbColorSpace = 4
krgBColorSpace = 5
kHsvColorSpace = 6
khSvColorSpace = 7
khsVColorSpace = 8
kYUV422InterlacedColorSpace = 9 #deprecated
kYUV422ColorSpace = 9
kYUVColorSpace = 10
kRGBColorSpace = 11
kHSVColorSpace = 12
kBGRColorSpace = 13
kYYCbCrColorSpace = 14
kH2RGBColorSpace = 15
kHSMixedColorSpace = 16
kDepthColorSpace = 17
# Scale methods
kSimpleScaleMethod = 0
kAverageScaleMethod = 1
kQualityScaleMethod = 2
kNoScaling = 3
# Standard Id
kCameraBrightnessID = 0
kCameraContrastID = 1
kCameraSaturationID = 2
kCameraHueID = 3
kCameraRedChromaID = 4
kCameraBlueChromaID = 5
kCameraGainID = 6
kCameraHFlipID = 7
kCameraVFlipID = 8
kCameraLensXID = 9
kCameraLensYID = 10
kCameraAutoExpositionID = 11
kCameraAutoWhiteBalanceID = 12
kCameraAutoGainID = 13
kCameraResolutionID = 14
kCameraFrameRateID = 15
kCameraBufferSizeID = 16
kCameraExposureID = 17
kCameraSelectID = 18
kCameraSetDefaultParamsID = 19
kCameraColorSpaceID = 20
kCameraExposureCorrectionID = 21
kCameraAecAlgorithmID = 22
kCameraFastSwitchID = 23
kCameraSharpnessID = 24
kCameraAwbGreenGainID = 25
kCameraAblcID = 26
kCameraAblcTargetID = 27
kCameraAblcStableRangeID = 28
kCameraBlcBlueID = 29
kCameraBlcRedID = 30
kCameraBlcGbID = 31
kCameraBlcGrID = 32
kCameraWhiteBalanceID = 33
kCameraBacklightCompensationID = 34