Defining the strategy to perform forgery detection

actually among the cuda modules in contrib there is cudaoptflow. IDK how well it’s maintained but it’s there.

does that happen at runtime?

that smells vaguely like OpenCL errors. that shouldn’t even happen because you are not supposed to (need to) build OpenCV yourself. you should only need to build your own program. get the official binaries from opencv.org. you can use that in Visual Studio.