1 | initial version |
It's not clear if you want to display the processed frames in the video window. So I'll assume you just want to show the original video to the user, and do something else with the processed frame.
The most obvious approach is creating a 2nd thread to do your custom processing.
The idea is that on every iteration of the main loop, your application will perform 2 tasks:
2 | No.2 Revision |
It's not clear if you want to display the processed frames in the video window. So I'll assume you just want to show the original video to the user, and do something else with the processed frame.
The most obvious approach is creating a 2nd thread to do your custom processing.
The idea is that on every iteration of the main loop, your application will perform 2 tasks:
On this post I share 2 similar solutions, one using Linux pthreads and the other using Windows threads.