opencv_tutorials icon indicating copy to clipboard operation
opencv_tutorials copied to clipboard

Windows Apps capturing a black screen

Open puddl3jump3r opened this issue 2 years ago • 4 comments

Using a test game (Big Farm) installed as windows application from the Microsoft Store, I only capture a black screen. I know in a browser like google it is due to hardware acceleration, but this is a windows application built in a framework. Has anyone figured out how to do this without a fullscreen capture?

puddl3jump3r avatar Mar 23 '22 23:03 puddl3jump3r

Hi! You might wanna check this answer to a question already asked.

MadMowgli avatar Mar 24 '22 07:03 MadMowgli

Using a test game (Big Farm) installed as windows application from the Microsoft Store, I only capture a black screen. I know in a browser like google it is due to hardware acceleration, but this is a windows application built in a framework. Has anyone figured out how to do this without a fullscreen capture?

I had a similar problem with that and there were two different solutions to it.

The first one was that the cv2.imshow didn't have a cv.waitKey and cv.destroyAllWindows() after it was used.

The second problem was simply that the game was minimized. In order for the wind32 to capture the game, the window can't be minimized.

CasperKristiansson avatar Apr 08 '22 17:04 CasperKristiansson

Same here I'm using the sample code. Getting black screen from the game window

umutbalkan avatar Jun 17 '22 07:06 umutbalkan

Even capturing the full screen doesn't work for me. Would really appreciate if someone has a solution. This is my 20th resource, I'm starting to lose faith my game can be captured with Python at least

TypicallyThomas avatar Jan 13 '23 22:01 TypicallyThomas