Problem with window capture/So i wanted to capture the window of a specific game and i tried to use opencv with windows functions in C++
i tried to run this code on a game and it doesn t work(it gets a black screen as ouput)
the only app that worked partially was the File Explorer -Home Window or Gallery Window,but the image is not positioned well in the output,and it doesn t show the entire window(the output is partially black)
This is the code i’ve been using: