物联网操作系统AliOS Things 3.3
ucamera

函数

int32_t ucamera_service_init (const char *dev_name)
 
int32_t ucamera_service_uninit (void)
 
frame_buffer_t * ucamera_service_get_frame (void)
 
int ucamera_service_save_frame (frame_buffer_t *frame, const char *path)
 

详细描述

函数说明

◆ ucamera_service_get_frame()

frame_buffer_t* ucamera_service_get_frame(void )

Get one frame of camera device.

返回
frame buffer content.

◆ ucamera_service_init()

int32_t ucamera_service_init(const char * dev_name)

Init the ucamera module.

参数
[in]dev_namedevice name.
[in]dev_namedevice name.
返回
0 on success, negative error on failure.

◆ ucamera_service_save_frame()

int ucamera_service_save_frame(frame_buffer_t * frame,
const char * path 
)

Init the ucamera module.

参数
[in]frameframe buffer content.
[in]pathpath of saving image.
返回
0 on success, negative error on failure.

◆ ucamera_service_uninit()

int32_t ucamera_service_uninit(void )

Uninit the ucamera module.

返回
0 on success, negative error on failure.