Skip to content

Commit

Permalink
Merge pull request #3 from naushir/master
Browse files Browse the repository at this point in the history
Add the option of setting the AWB mode to greyworld.
  • Loading branch information
rwb27 authored Apr 28, 2020
2 parents 79177fa + 1acc8b9 commit e50a348
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions picamera/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ class PiCamera(object):
'incandescent': mmal.MMAL_PARAM_AWBMODE_INCANDESCENT,
'flash': mmal.MMAL_PARAM_AWBMODE_FLASH,
'horizon': mmal.MMAL_PARAM_AWBMODE_HORIZON,
'greyworld': mmal.MMAL_PARAM_AWBMODE_GREYWORLD,
}

IMAGE_EFFECTS = {
Expand Down
3 changes: 2 additions & 1 deletion picamera/mmal.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,8 @@ class MMAL_PARAMETER_EXPOSUREMETERINGMODE_T(ct.Structure):
MMAL_PARAM_AWBMODE_INCANDESCENT,
MMAL_PARAM_AWBMODE_FLASH,
MMAL_PARAM_AWBMODE_HORIZON,
) = range(10)
MMAL_PARAM_AWBMODE_GREYWORLD,
) = range(11)
MMAL_PARAM_AWBMODE_MAX = 0x7fffffff

class MMAL_PARAMETER_AWBMODE_T(ct.Structure):
Expand Down

0 comments on commit e50a348

Please sign in to comment.