Image control commands

Commands used to control the image captured by the camera chip. Please note the setting will not change between frames, will remain active until camera module will be restarted.

Basic Help

A basic Help feature is implemented by default on CTS for every command. To get help type the command followed by ‘h’:

h
Available commands (use '<command>h'for more details).
- Tracking/capture:
    Frame dumping:       F...
    Tracking:            T...
    YUV Class:           C...
- Image control:
    AWB:                 a...
    Brightness:          b...
    Contrast:            c...
    GAMMA:               g...
    Orientation:         f...
    Resolution:          r...
    Saturation:          s...
    Sharpness:           S...
- System control:
    Configuration:       M...
    Version info:        v...
    UART:                u...

Automated White Balance (AWB)

Control AWB for camera module.

AWB control

To list all available options:

ah
Select/Change AWB settings:
  Current setting:   a?
  Disable AWB:       a0
  Enable AWB:        a1
  Sunny:             a2
  Cloudy:            a3
  Office:            a4
  Home:              a5

Check AWB status

To check current status:

 a?
AWB:          home

Change AWB setting

To change current setting:

a<mode>

Where:

mode – is active AWB mode. Can be one of the following:

  • 0 – disable AWB;
  • 1 – enable AWB;
  • 2 – enable “Sunny” WB correction;
  • 3 – enable “Cloudy” WB correction;
  • 4 – enable “Office” WB correction;
  • 5 – enable “Home” WB correction.

Example: to enable “Sunny” WB correction:

a2

Brightness

Control image Brightness.

Brightness control

To list all available options:

bh
Select/Change Brightness settings:
  Current setting:   b?
  -100%:             b0
  -75%:              b1
  -50%:              b2
  -25%:              b3
  0%:                b4
  +25%:              b5
  +50%:              b6
  +75%:              b7
  +100%:             b8

Check Brightness status

To check current status:

b?
Brightness:   +25%

Change Brightness setting

To change current setting:

b<mode>

Where:

mode – can be one of the following:

  • 0 – reduce current brightness by 4 steps;
  • 1 – reduce current brightness by 3 steps;
  • 2 – reduce current brightness by 2 steps;
  • 3 – reduce current brightness by 1 step;
  • 4 – no brightness change;
  • 5 – increase current brightness by 1 step;
  • 6 – increase current brightness by 2 steps;
  • 7 – increase current brightness by 3 steps;
  • 8 – increase current brightness by 4 steps;

NOTE: Each step is 25%. Only 4 steps available in each direction.

Example: to increase brightness to 75%:

b7

Contrast

Control image contrast.

Contrast control

To list all available options:

ch
Select/Change Contrast settings:
  Current setting:   c?
  -100%:             c0
  -75%:              c1
  -50%:              c2
  -25%:              c3
  0%:                c4
  +25%:              c5
  +50%:              c6
  +75%:              c7
  +100%:             c8

Check Contrast status

To check current status:

c?
Contrast:   +25%

Change Contrast setting

To change current setting:

c<mode>

Where:

mode – can be one of the following:

  • 0 – reduce current contrast by 4 steps;
  • 1 – reduce current contrast by 3 steps;
  • 2 – reduce current contrast by 2 steps;
  • 3 – reduce current contrast by 1 step;
  • 4 – no contrast change;
  • 5 – increase current contrast by 1 step;
  • 6 – increase current contrast by 2 steps;
  • 7 – increase current contrast by 3 steps;
  • 8 – increase current contrast by 4 steps;

NOTE: Each step is 25%. Only 4 steps available in each direction.

Example: to increase contrast to 50%:

c6

Gamma

Control image Gamma curves.

Gamma control

To list all available options:

gh
Select/Change Contrast settings:
  Current setting:   g?
  -100%:             g0
  -75%:              g1
  -50%:              g2
  -25%:              g3
  0%:                g4
  +25%:              g5
  +50%:              g6
  +75%:              g7
  +100%:             g8

Check Gamma status

To check current status:

c?
Gamma:   -25%

Change Gamma setting

To change current setting:

g<mode>

Where:

mode – can be one of the following:

  • 0 – reduce current gamma by 4 steps;
  • 1 – reduce current gamma by 3 steps;
  • 2 – reduce current gamma by 2 steps;
  • 3 – reduce current gamma by 1 step;
  • 4 – no gamma change;
  • 5 – increase current gamma by 1 step;
  • 6 – increase current gamma by 2 steps;
  • 7 – increase current gamma by 3 steps;
  • 8 – increase current gamma by 4 steps;

NOTE: Each step is 25%. Only 4 steps available in each direction.

Example: to decrease gamma to -50%:

g2

 

Saturation

Control image saturation.

Saturation control

To list all available options:

sh
Select/Change Saturation settings:
  Current setting:   s?
  -100%:             s0
  -75%:              s1
  -50%:              s2
  -25%:              s3
  0%:                s4
  +25%:              s5
  +50%:              s6
  +75%:              s7
  +100%:             s8

Check Saturation status

To check current status:

s?
Saturation:   +25%

Change Saturation setting

To change current setting:

s<mode>

Where:

mode – can be one of the following:

  • 0 – reduce current saturation by 4 steps;
  • 1 – reduce current saturation by 3 steps;
  • 2 – reduce current saturation by 2 steps;
  • 3 – reduce current saturation by 1 step;
  • 4 – no saturation change;
  • 5 – increase current saturation by 1 step;
  • 6 – increase current saturation by 2 steps;
  • 7 – increase current saturation by 3 steps;
  • 8 – increase current saturation by 4 steps;

NOTE: Each step is 25%. Only 4 steps available in each direction.

Example: to increase saturation to 25%:

s5

Orientation

Control image orientation.

Orientation control

To list all available options:

fh
Select/Change Orientation settings:
  Current setting:  f?
  Normal:           fn
  Flip:             ff
  Mirror:           fm
  Flip + Mirror:    fr

Check Orientation status

To check current status:

f?
Orientation:  normal

Change Orientation setting

To change current setting:

f<mode>

Where:

mode – can be one of the following:

  • n – normal ;
  • f – flipped image;
  • m – mirrored image;
  • r – flipped and mirrored image;

Example: to set orientation to normal:

fn

Resolution

Control image resolution.

Resolution control

To list all available options:

rh
Change Resolution:
  Current setting:   r?
  QVGA:              r0
  QQVGA:             r1

Check Resolution status

To check current status:

r?
Resolution:   QVGA (320 x 240)

Change Resolution setting

To change current setting:

r<mode>

Where:

mode – can be one of the following:

  • 0 – QVGA (320 x 240) ;
  • 1- QQVGA (160 x 120);

Example: to set resolution to QQVGA:

r1

 

Sharpness

Control image sharpness.

Sherpness control

To list all available options:

Sh
Select Sharpness mode:
  Current setting:   S?
  Enable:            Se
  Disable:           Sd

Check Sharpness status

To check current status:

S?
Sharpness:    disable

Change Sharpness setting

To change current setting:

S<mode>

Where:

mode – can be one of the following:

  • d – disable sharpness ;
  • e – enable sharpness;

Example: to enable sharpness:

Se

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s