dzungdoan6 / G2D

Collect video sequences with exact 6-DoF camera poses from Grand Theft Auto V
78 stars 19 forks source link

Real time Image Capture #11

Closed Abrar3616 closed 3 years ago

Abrar3616 commented 3 years ago

Hi again. I'm sorry for disturbing you so much, i wanted to ask you if there is some way to get images while playing the game i.e. Realtime. I tried your gdiscreencapture function but it just freezes the screen and then takes screen shots. i tried to take screenshots for 10 seconds but I am only getting multiple images of same frame as the game freezes on initialization of gdiscreencapture function. Please help.

dzungdoan6 commented 3 years ago

Hi Abrar3616. Do you need to record camera pose of every frame? If not, maybe you can use NVIDIA ShadowPlay to record the video while playing the game: https://www.nvidia.com/en-us/geforce/geforce-experience/shadowplay/ You can find many tutorials on Youtube about NVIDIA ShadowPlay

Abrar3616 commented 3 years ago

HI thanks for your reply. No i do not need poses. just the images at 10fps. Thankyou i will look into it and let you know.

Abrar3616 commented 3 years ago

Thanks i used your method with multi-threading and it worked. Just one last question what can i do if i want to save the images in smaller size like 640x480. Your help will be greatly appreciated

dzungdoan6 commented 3 years ago

Hi Abrar3616, How about using OpenCV to resize images? (see here)

Abrar3616 commented 3 years ago

Thanks Dadung I actually wanted to resize the images before saving but i guess I'll just resize them later.