Developer World
Spresense Arduino Library v3.3.0-b2e6327
CameraClass Class Reference

[en] The class to control Spresense Camera.
[ja] SpresenseのCamera機能を制御するためのクラス。 More...

#include <Camera.h>

Public Member Functions

 ~CameraClass ()
 Destruct CameraClass instance.
 
int getFd ()
 Get the file descriptor of camera device. More...
 
CamErr begin (int buff_num=1, CAM_VIDEO_FPS fps=CAM_VIDEO_FPS_30, int video_width=CAM_IMGSIZE_QVGA_H, int video_height=CAM_IMGSIZE_QVGA_V, CAM_IMAGE_PIX_FMT video_fmt=CAM_IMAGE_PIX_FMT_YUV422, int jpgbufsize_divisor=7)
 Initialize CameraClass instance. More...
 
CamErr startStreaming (bool enable, camera_cb_t cb=NULL)
 Start / Stop Video Stream. More...
 
CamErr setAutoWhiteBalance (bool enable)
 Control Auto White Balance. More...
 
CamErr setAutoExposure (bool enable)
 Control Auto Exposure. More...
 
CamErr setAbsoluteExposure (int32_t exposure_time)
 Set exposure Time. More...
 
int32_t getAbsoluteExposure (void)
 Get exposure Time. More...
 
CamErr setAutoISOSensitive (bool enable)
 Control Auto ISO Sensitivity (WIll obsolete after v1.2.0) More...
 
CamErr setAutoISOSensitivity (bool enable)
 Control Auto ISO Sensitivity. More...
 
CamErr setISOSensitivity (int iso_sense)
 Set ISO Sensivity value. More...
 
int getISOSensitivity (void)
 Get ISO Sensivity value. More...
 
CamErr setAutoWhiteBalanceMode (CAM_WHITE_BALANCE wb)
 Set Auto White Balance mode. More...
 
CamErr setColorEffect (CAM_COLOR_FX effect)
 Set Color Effect. More...
 
CamErr setHDR (CAM_HDR_MODE mode)
 Set HDR mode. More...
 
CAM_HDR_MODE getHDR (void)
 Get HDR mode. More...
 
CamErr setJPEGQuality (int quality)
 Set JPEG quality. More...
 
int getJPEGQuality (void)
 Get JPEG quality. More...
 
int getFrameInterval (void)
 Get frame interval. More...
 
CamErr setStillPictureImageFormat (int img_width, int img_height, CAM_IMAGE_PIX_FMT img_fmt=CAM_IMAGE_PIX_FMT_JPG, int jpgbufsize_divisor=7)
 Set Still Picture Image format parameters. More...
 
CamImage takePicture ()
 Take picture. More...
 
CAM_DEVICE_TYPE getDeviceType ()
 Get camera device type. More...
 
void end ()
 De-initialize Spresense Camera. More...
 

Static Public Member Functions

static CameraClass getInstance ()
 Get the Camera instance. More...
 

Detailed Description

[en] The class to control Spresense Camera.
[ja] SpresenseのCamera機能を制御するためのクラス。


The documentation for this class was generated from the following file: