Leo*_*eda 14
Run Code Online (Sandbox Code Playgroud)CameraSource cs = new SocketCamera("192.168.0.100", 9889, 320, 240, true); if (!cs.open()) { /* deal with failure to obtain camera */ } while(/*some condition*/) { cs.capture(canvas) //capture the frame onto the canvas } cs.close();
PS:我无法测试这个,因为我跑的时候出错了WebcamBroadcaster.
PPS:我刚刚开始尝试Android,所以这一切都可能是错的.
| 归档时间: |
|
| 查看次数: |
54567 次 |
| 最近记录: |