DataInput — 支持多种数据源的数据处理

class DataInput(...)

使用示例

1
2
3
# coding=utf-8
# This is a sample Python script.
from minicv import DataInput

常量

支持的数据源种类:
DATA_INPUT_SOURCE_NONE
DATA_INPUT_CAMERA_NUMBER_FRONT
DATA_INPUT_SOURCE_IMAGE_GIF
DATA_INPUT_SOURCE_IMAGE_PNG
DATA_INPUT_SOURCE_IMAGE_JPG
DATA_INPUT_SOURCE_VIDEO_FILE
DATA_INPUT_SOURCE_VIDEO_RTMP
DATA_INPUT_SOURCE_VIDEO_RTSP
DATA_INPUT_SOURCE_CAMERA_USB
DATA_INPUT_SOURCE_CAMERA_LOCAL
DATA_INPUT_SOURCE_CAMERA_IP
DATA_INPUT_SOURCE_MAX
Camera前后摄像头的配置:
DATA_INPUT_CAMERA_NUMBER_NONE
DATA_INPUT_CAMERA_NUMBER_FRONT
DATA_INPUT_CAMERA_NUMBER_BACK
DATA_INPUT_CAMERA_NUMBER_MAX

操作函数

open(mDataInputType,mFileName)

打开非Camera模块

openCamera(mDataInputType,mCameraNum)

打开Camera模块

close()

关闭模块

checkDataReady()

检查数据是否准备好

requestData()

请求数据

releaseData(ImageBuffer_t)

释放数据