DLL接口说明/*--------------------------------函数功能:获取设备数目返回值:设备数目------------------------------------*/extern "C" _declspec(dllexport) int GetDeviceCount();/*--------------------------------函数功能:获取设备名称参数一:摄像头索引,0 ->主摄像头,1 ->副摄像头参数二:设备名称返回值:0 ->成功,其他->失败------------------------------------*/extern "C" _declspec(dllexport) int GetDeviceName(int index, char* nbuf);/*--------------------------------函数功能:获取设备的预览分辨率数目参数一:摄像头索引,0 ->主摄像头,1 ->副摄像头返回值:预览分辨率数目------------------------------------*/extern "C" _declspec(dllexport) int GetResolutionCount(int index);/*--------------------------------函数功能:获取指定索引的预览分辨率参数一:分辨率索引参数二:分辨率宽度参数三:分辨率高度返回值:0 ->成功,其他->失败------------------------------------*/extern "C" _declspec(dllexport) int GetResolution(int R_index, int &width, int &height);/*--------------------------------函数功能:打开设备参数一:摄像头索引,0 ->主摄像头,1 ->副摄像头参数二:分辨率宽度参数三:分辨率高度参数四:显示句柄参数五:是否显示,true->显示,false ->不显示返回值:0 ->成功,其他->失败------------------------------------*/extern "C" _declspec(dllexport) int OpenDevice(int index, int width, int height, HWND mhwnd, bool isDisplay);/*--------------------------------函数功能:关闭设备返回值:0 ->成功,其他->失败------------------------------------*/extern "C" _declspec(dllexport) int CloseDevice();/*--------------------------------函数功能:拍照参数一:图像保存路径参数二:是否条码识别返回值:图像路径------------------------------------*/extern "C" _declspec(dllexport) char* CaptureFromPreview(char *path, int isBarCode)/*--------------------------------函数功能:设置图片保存格式参数一:图片格式:0 ->jpg,1 ->bmp,2 ->png,3 ->tif,4 ->pdf返回值:无------------------------------------*/extern "C" _declspec(dllexport) void SetFormatType(int type);/*--------------------------------函数功能:设置JPG格式图片质量参数一:图片质量值(范围1-100),值越大,图片质量越好返回值:无------------------------------------*/extern"C"_declspec(dllexport) void SetJpgQuality(int val);函数功能:设置色彩模式参数一:色彩模式:0 ->彩色,1 ->灰度,2 ->黑白返回值:无------------------------------------*/extern "C" _declspec(dllexport) void SetColorType(int type);/*--------------------------------函数功能:设置裁边方式参数一:裁边方式:0 ->不裁切,1 ->自动裁切返回值:无------------------------------------*/extern "C" _declspec(dllexport) void SetCutType(int type);/*--------------------------------函数功能:视频旋转参数一: 0 ->0度,1 ->90度,2 ->180度,3 ->270度返回值:无------------------------------------*/extern"C"_declspec(dllexport) void SetRotateAngle(int angle);/*--------------------------------函数功能:实际大小参数:无返回值:无------------------------------------*/extern"C"_declspec(dllexport) void TrueSize(void);/*--------------------------------函数功能:适合大小参数:无返回值:无------------------------------------*/extern"C"_declspec(dllexport) void BestSize(void);/*--------------------------------函数功能:放大参数:无返回值:无------------------------------------*/extern"C"_declspec(dllexport) void ZoomIn(void);函数功能:缩小参数:无返回值:无------------------------------------*/extern"C"_declspec(dllexport) void ZoomOut(void);/*--------------------------------函数功能:去底色参数一: 0 ->不去底色,1 ->去底色返回值:无------------------------------------*/extern"C"_declspec(dllexport) void SetDelBgColor(int flag);/*--------------------------------函数功能:去黑边参数一: 0 ->不去黑边,1 ->去黑边返回值:无------------------------------------*/extern"C"_declspec(dllexport) void SetDelBlackEdge(int flag);/*--------------------------------函数功能:对焦参数: 0 ->不去黑边,1 ->去黑边返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) int ManualFocus();/*--------------------------------函数功能:条码二维码识别参数一: 0 ->识别条码,1 ->识别二维码参数二:识别结果返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) int RecogQrBarCode(int type,char * result);/*--------------------------------函数功能:设置DPI参数一: 0 ->默认DPI,1 ->自定义DPI参数二: DPI值返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) void SetDpi(int type, int val);/*--------------------------------函数功能:添加要合并的图片路径参数一:图片路径返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) int AddImagePath(char* path);/*--------------------------------函数功能:图片合并(与函数AddImagePath配合使用,最多支持四张图片的合并)参数一:图片合并的路径参数二:合并方向:0->垂直合并,0->水平合并参数三:合并图片之间的间隙返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) int MergeImages(char* desPath, int direction,int sp);/*--------------------------------函数功能:添加要合并PDF的文件路径参数一:文件路径返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) int AddImageFileToPDF(char* path);/*--------------------------------函数功能:合并PDF与函数AddImageFileToPDF配合使用)参数一: PDF合并路径返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) int CombineToPDF(char* desPath);/*--------------------------------函数功能:硬件参数设置参数:无返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) int ShowCameraSettingWindow(void);/*--------------------------------函数功能:获取视频参数参数一:视频参数ID:亮度= 0,对比度= 1,色调= 2饱和度= 3清晰度= 4伽玛= 5白平衡= 7增益= 9参数二:获取参数的最小值参数三:获取参数的最大值参数四:获取参数的默认值参数五:获取参数的当前值返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) int GetVideoProcParms(int ParmID,long &min, long &max, long &def, long ¤t) ;/*--------------------------------函数功能:设置视频参数参数一:视频参数ID:亮度= 0,对比度= 1,色调= 2饱和度= 3清晰度= 4伽玛= 5白平衡= 7增益= 9参数二:设置值返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) int SetVideoProcParms(int ParmID, int value);/*--------------------------------函数功能:获取相机控制参数参数一:控制参数ID:Pan = 0,Tilt = 1,Roll = 2,Zoom = 3,Exposure = 4Iris = 5,Focus = 6参数二:获取参数的最小值参数三:获取参数的最大值参数四:获取参数的默认值参数五:获取参数的当前值参数六:获取参数的控制方式(0 ->手动,其他 ->自动)返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) int GetCameraCotrolParms(int ParmID,long &min, long &max, long &def, long ¤t, long &flag);/*--------------------------------函数功能:设置相机控制参数参数一:视频参数ID:Pan = 0,Tilt = 1,Roll = 2,Zoom = 3,Exposure = 4Iris = 5,Focus = 6参数二:设置值参数三:控制方式(0 ->手动设置,1 ->自动设置)返回值:0 ->成功,其他->失败------------------------------------*/extern"C"_declspec(dllexport) int SetCameraCotrolParms(int ParmID,int value, int flag);/*--------------------------------函数功能:读取身份证参数:无返回值:0 ->成功,其他->失败------------------------------------*/extern"C"__declspec(dllexport) int ReadCard();/*--------------------------------函数功能:获取身份证信息参数一:信息索引值0->名字1->性别2->民族3->出生日期4->住址5->身份证号码6->签发机关7->开始有效日期8->结束有效日期9->头像照片文件路径返回值:身份证信息------------------------------------*/extern"C"__declspec(dllexport) char* GeCardInfo(int index);/*****************************1600W像素及以上机型接口***********************//*--------------------------------函数功能:获取设备的拍照分辨率数目参数一:摄像头索引,0 ->主摄像头,1 ->副摄像头返回值:预览分辨率数目------------------------------------*/extern "C" _declspec(dllexport) int GetStillResolutionCount(int index);/*--------------------------------函数功能:获取指定索引的拍照分辨率参数一:分辨率索引参数二:分辨率宽度参数三:分辨率高度返回值:0 ->成功,其他->失败------------------------------------*/extern "C" _declspec(dllexport) int GetStillResolution(int R_index, int &width, int &height);/*--------------------------------函数功能:打开设备参数一:摄像头索引,0 ->主摄像头,1 ->副摄像头参数二:分辨率宽度参数三:分辨率高度参数四:显示句柄参数五:是否显示,true->显示,false ->不显示返回值:0 ->成功,其他->失败------------------------------------*/extern "C" _declspec(dllexport) int OpenDeviceEx(int index, int width, int height, HWND mhwnd, bool isDisplay);/*--------------------------------函数功能:拍照参数一:图像保存路径返回值:0 ->成功,其他->失败------------------------------------*/extern "C" _declspec(dllexport) int CaptureFromStill(char *path)/*****************************纯录音播放接口***********************/ /*--------------------------------函数功能:开始录音参数一:录音保存路径(录音格式后缀为.wav)返回值:0 ->成功,其他->失败------------------------------------*/extern "C" _declspec(dllexport) int StartAudioRecord(char *path)/*--------------------------------函数功能:停止录音参数:无返回值:0 ->成功,其他->失败------------------------------------*/extern "C" _declspec(dllexport) int StopAudioRecord()/*--------------------------------函数功能:播放录音参数一:录音文件路径返回值:0 ->成功,其他->失败------------------------------------*/extern "C" _declspec(dllexport) int StartPlayAudio(char *path)/*--------------------------------函数功能:停止播放录音参数:无返回值:0 ->成功,其他->失败------------------------------------*/extern "C" _declspec(dllexport) int StopPlayAudio()。