vision_definitions.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 #
00004 # Copyright 2014 Aldebaran Robotics
00005 #
00006 # Redistribution and use in source and binary forms, with or without
00007 # modification, are permitted provided that the following conditions are met:
00008 #
00009 #    # Redistributions of source code must retain the above copyright
00010 #       notice, this list of conditions and the following disclaimer.
00011 #    # Redistributions in binary form must reproduce the above copyright
00012 #       notice, this list of conditions and the following disclaimer in the
00013 #       documentation and/or other materials provided with the distribution.
00014 #    # Neither the name of the University of Freiburg nor the names of its
00015 #       contributors may be used to endorse or promote products derived from
00016 #       this software without specific prior written permission.
00017 #
00018 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00019 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00020 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00021 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
00022 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00023 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00024 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00025 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00026 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00027 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00028 # POSSIBILITY OF SUCH DAMAGE.
00029 #
00030 
00031 # Useful constants used by the Vision modules.
00032 
00033 # Camera model
00034 kOV7670  = 1            # VGA camera
00035 kMT9M114 = 2            # HD wide angle camera
00036 
00037 # Image format
00038 k960p = 3                # 1280*960
00039 k4VGA = 3                # 1280*960
00040 kVGA = 2                 # 640*480
00041 kQVGA = 1                # 320*240
00042 kQQVGA = 0               # 160*120
00043 
00044 # Color Space
00045 kYuvColorSpace = 0
00046 kyUvColorSpace = 1
00047 kyuVColorSpace = 2
00048 kRgbColorSpace = 3
00049 krGbColorSpace = 4
00050 krgBColorSpace = 5
00051 kHsvColorSpace = 6
00052 khSvColorSpace = 7
00053 khsVColorSpace = 8
00054 kYUV422InterlacedColorSpace = 9  #deprecated
00055 kYUV422ColorSpace = 9
00056 kYUVColorSpace = 10
00057 kRGBColorSpace = 11
00058 kHSVColorSpace = 12
00059 kBGRColorSpace = 13
00060 kYYCbCrColorSpace = 14
00061 kH2RGBColorSpace = 15
00062 kHSMixedColorSpace = 16
00063 kDepthColorSpace = 17
00064 
00065 # Scale methods
00066 kSimpleScaleMethod = 0
00067 kAverageScaleMethod = 1
00068 kQualityScaleMethod = 2
00069 kNoScaling = 3
00070 
00071 
00072 # Standard Id
00073 kCameraBrightnessID       = 0
00074 kCameraContrastID         = 1
00075 kCameraSaturationID       = 2
00076 kCameraHueID              = 3
00077 kCameraRedChromaID        = 4
00078 kCameraBlueChromaID       = 5
00079 kCameraGainID             = 6
00080 kCameraHFlipID            = 7
00081 kCameraVFlipID            = 8
00082 kCameraLensXID            = 9
00083 kCameraLensYID            = 10
00084 kCameraAutoExpositionID   = 11
00085 kCameraAutoWhiteBalanceID = 12
00086 kCameraAutoGainID         = 13
00087 kCameraResolutionID       = 14
00088 kCameraFrameRateID        = 15
00089 kCameraBufferSizeID       = 16
00090 kCameraExposureID         = 17
00091 kCameraSelectID           = 18
00092 kCameraSetDefaultParamsID = 19
00093 kCameraColorSpaceID       = 20
00094 kCameraExposureCorrectionID = 21
00095 kCameraAecAlgorithmID     = 22
00096 kCameraFastSwitchID       = 23
00097 kCameraSharpnessID        = 24
00098 kCameraAwbGreenGainID     = 25
00099 kCameraAblcID             = 26
00100 kCameraAblcTargetID       = 27
00101 kCameraAblcStableRangeID  = 28
00102 kCameraBlcBlueID          = 29
00103 kCameraBlcRedID           = 30
00104 kCameraBlcGbID            = 31
00105 kCameraBlcGrID            = 32
00106 kCameraWhiteBalanceID     = 33
00107 kCameraBacklightCompensationID = 34


nao_sensors
Author(s): Séverin Lemaignan, Vincent Rabaud, Karsten Knese, Jack O'Quin, Ken Tossell, Patrick Beeson, Nate Koenig, Andrew Howard, Damien Douxchamps, Dan Dennedy, Daniel Maier
autogenerated on Mon Oct 6 2014 02:40:25