
-27-
v4.9
Camera related functions
6.3. Stopping the camera
When do not use the camera, the function
stopCamera()
stops and turns off the camera reducing the power consumption.
Example of use:
{
// Stops the camera:
_3G.stopCamera();
}
This function returns:
•
‘1’ on success
•
‘0’ if error
•
‘-2’ if camera not started
6.4. Configuration of the camera
The camera can be configured in some parameters. Each one have its own function.
Note:
the camera must be started to start the configuration.
6.4.1. Resolution
The camera can be configured with 6 different resolutions. The next table shows the resolution, the number of horizontal and
vertical pixels and the library parameter to use with the function.
Resolution
H x V (pixels)
library parameter
STAMP
80x48
0
QQVGA
160x120
1
QCIF
176x144
2
QVGA
320x240
3
CIF
352x288
4
VGA
640x480
5
Figure: Resolutions and library parameters
The highest resolution for pictures are VGA (5) and for videos are QVGA (3).
Example of use:
{
// Sets QVGA resolution
_3G.cameraResolution(3);
}
This function returns:
•
‘1’ on success
•
‘0’ if error
•
‘-2’ if camera not detected
•
‘-3’ if camera not started
Содержание Waspmote 3G Plus GPS
Страница 1: ...Waspmote 3G GPS Networking Guide ...