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 current color space (either kBGRColorSpace or kYuvColorSpace).
Returns the current picture extension. See ALPhotoCaptureProxy::setPictureFormat() for the list of possible return values.
Returns the current delay in millisecond between two pictures.
Sets the color space used. It must be either kBGRColorSpace (for color images) or kYuvColorSpace (for gray-scale images).
Parameters: |
|
---|
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: |
|
---|
Sets the time period between which two successive shots.
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 undescore (“_”) and the picture number to the end of the file name and before the extension. You will find an example on the Tutorial page.