论文部分内容阅读
随着摄像头性价比的提高,有些单位已将它应用于电子摄像,效果很好。可以说,摄像头有很多的用武之地。然而,要应用摄像头完成这些任务,若依靠供应商提供的软件,一是费用极高,二是功能不切合当地实际,三是软件维护几乎不可能实现。因此,我们有必要自己来控制摄像头。下面,笔者介绍开启摄像头并利用摄像头拍照、录像的基本方法。用户只需稍加改动,便可应用于实际工作中。对摄像的支持——对摄像的支持是利用Windows专门提供的VideoforWindows(vfw.h)来对视频进行抓拍和录像的,再利用C++builder对JPG图片支持的格式进行图片压缩,建成电子档案,也可以利用directshow编程(对此不加叙述)。
With the camera cost-effective increase, some units have it applied to electronic camera, the effect is very good. It can be said that the camera has a lot of useless. However, the application of cameras to complete these tasks, depending on the software provided by suppliers, one is extremely costly, and second, the function does not meet the actual situation, and third, software maintenance is almost impossible to achieve. Therefore, we need to control the camera ourselves. Now, I introduce the basic method to open the camera and use the camera to take pictures and videos. Users only need to change a little, can be applied to the actual work. Support for video - Support for video is the use of Windows exclusively provided by VideoforWindows (vfw.h) to capture and video capture of the video, and then use C ++ builder JPG image formats supported by the picture compression, the formation of electronic files , You can also use directshow programming (not to mention this).