Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何编写/实现从网络摄像头获取图像(任何格式 png、jpg)并将其保存为图像的程序?
我需要在 web 应用程序中使用 Flash spport 来实现它吗?
有没有关于如何构建这样的应用程序的教程。
基本技术是首先使用 Camera.get 抓取用户的网络摄像头,然后将其附加到 Video 对象。然后,您创建一个 BitmapData 对象并使用它的 draw 方法来捕获视频的帧。最后,您使用作为 AS3CoreLIb 一部分的 JPGEncoder 类(只需 google 即可)将 BitmapData 对象转换为存储在 ByteArray 中的 JPG。