如何使用LiveCode从台式计算机上的相机捕获静止图像?
我正在使用以下代码在移动设备上捕获图像:
mobilePickPhoto "front camera" ,100 , 100发布于 2015-05-31 16:26:04
首先使用外部的视频采集卡来设置摄像机。
revIinitializeVideoGrabber the short name of this stack,"QT","20,20,120,86"现在你可以抓取一个帧:
revVideoFrameImage 66,100,myPictureData并设置图像控件的imageData:
set the imageData of img 1 to myPîctureData例如,现在将其导出为PNG
export img 1 to myPictureData as PNG您可以将myPictureData写入文件。
最新版本的LiveCode可能无法使用revVideoGrabber external。
https://stackoverflow.com/questions/27868200
复制相似问题