针对目前图像视频处理过程中存在渲染速度慢、效率低、CPU损耗大、流畅性不高、很难满足用户体验需求的问题,论文提出了一种基于开源计算机视觉库(OpenSourceComputerVision,OpenCV)提高文件拍摄流畅性的方法和系统。将渲染的帧数据和摄像头获取的帧数据的速率进行分离,通过异步渲染的方式将帧处理的逻辑和渲染的逻辑分别运行于两个不同的线程中;然后通过适当的丢帧操作,提高文件拍摄的流畅度。该方法可以降低CPU的使用率,提高图像渲染的速度和效率,从而提升图像视频的流畅性,为用户提供更好的体验。该方法和系统可广泛应用到各领域的图像视频处理中,具有重要的应用价值。
Based on the problems of slow rendering speed,low efficiency,large CPU loss,low fluency,and the difficulty of meeting the needs of users??experience,this paper presented a method and system for improving fluency of document filing based on the OpenCV(Open Source Computer Vision).The rate of the frame data from rendering and the frame data from the camera are sep?arated to run in two different threads through the asynchronous rendering of the frame processing logic and rendering logic.Then,through the appropriate drop frame operation to improve the file shooting fluency,this method can reduce the CPU usage and improve the speed and efficiency of image rendering,thereby enhancing the fluency of image and video to provide users with a better experience.The method and system can be widely applied to various fields of image and video processing,and has important application value.