NAOqi Vision - Overview | API | Tutorial
Namespace : AL
#include <alproxies/alphotocaptureproxy.h>
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
Returns the ID of the camera used to take pictures.
Returns: | camera ID. |
---|
Returns the current delay in millisecond between two pictures.
Returns the current color space (either kBGRColorSpace or kYuvColorSpace).
Returns the current picture extension. See ALPhotoCaptureProxy::setPictureFormat() for the list of possible return values.
Deprecated since version 1.18: use ALPhotoCaptureProxy::setHalfPressEnabled() instead.
Toggles the halfPress mode between on and off depending on the current state.
Returns: | true in case of success, false otherwise. |
---|
Deprecated since version 1.18: use ALPhotoCaptureProxy::isHalfPressEnabled() instead.
Returns the current status of halfPress mode (true if it is on, false otherwise).
Returns the current status of halfPress mode.
Returns: | true if the halfPress mode is on, false otherwise. |
---|
Sets the camera used to take pictures.
Parameters: |
|
---|
Sets the time period between which two successive shots.
Parameters: |
|
---|
Sets the color space used. It must be either kBGRColorSpace (for color images) or kYuvColorSpace (for gray-scale images).
Parameters: |
|
---|
Enable or disables the halfPress mode.
Parameters: |
|
---|---|
Returns: | true in case of success, false otherwise. |
Sets the image format used to save the pictures. This also corresponds to the file extension added to the filename.
Parameters: |
|
---|
Sets the frame resolution. It can be either VGA, QVGA or QQVGA.
Parameters: |
|
---|
There are two overloads of this function:
Takes one picture at the given resolution and stores it on the disk. The file format is determined by the extension (see ALPhotoCaptureProxy::setPictureFormat() for the list of supported extensions). If the destination file already exists, it will be overwritten.
Parameters: |
|
---|---|
Returns: | Array of one element [fileName]. |
Takes one picture at the given resolution and stores it on the disk. The file format is determined by the extension (see ALPhotoCaptureProxy::setPictureFormat() for the list of supported extensions).
Parameters: |
|
---|---|
Returns: | Array of one element [fileName]. |
There are two overloads of this function:
Takes several pictures in a row and stores them on disk. If the destination file already exists, it will be overwritten.
Parameters: |
|
---|---|
Returns: | Array containing the list of the recorded file names [listOfNames] where listOfNames is an array of strings [name1, name2...]. |
Takes several pictures in a row and stores them on disk.
Parameters: |
|
---|---|
Returns: | Array containing the list of the recorded file names [listOfNames] where listOfNames is an array of strings [name1, name2...]. |
Note
Since this function saves several pictures to disk, we have to create different file names. This is done by appending an underscore (“_”) and the picture number to the end of the file name and before the extension. You will find an example on the Tutorial page.