stdthread t1&GasDetectvideo_IR_frame_acquisition; stdthread t2&GasDetectvideo_VIS_frame_acquisition;
These lines of code create two threads, t1 and t2, that will each run a member function of the GasDetect class in parallel. Specifically, t1 will run the video_IR_frame_acquisition function and t2 will run the video_VIS_frame_acquisition function. This allows the program to acquire frames from two different video sources simultaneously, improving performance and efficiency.
原文地址: https://www.cveoy.top/t/topic/fnOz 著作权归作者所有。请勿转载和采集!