Help regarding image recognition inside a live video game
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I want to do some image recognition and object detection for a video game in which objects move constantly. The first step to do this is to provide MATLAB with the input images by taking a screen shot and saving it inside a folder. This however may be a slow approach for a fast paced game.
What I really want to do is get MATLAB to continuously do object recognition on a video game that will be running maximized (The end goal is to use machine learning to study these images). I came across an article https://uk.mathworks.com/help/vision/examples/face-detection-and-tracking-using-live-video-acquisition.html where they do what I want but instead using a webcam video input. Is it possible to do the same thing but with the computer display itself?
Please also note that I do not want to record a video, save it and then do recognition on that as the game is real time so object detection should be real time as well.
Thank you.
0 commentaires
Réponses (1)
Image Analyst
le 5 Oct 2018
Modifié(e) : Image Analyst
le 5 Oct 2018
Essentially you put getframe() in a loop and then analyze the image it returns.
4 commentaires
Image Analyst
le 8 Oct 2018
- If you're using a video camera to view anohter screen, you can use getsnapshot().
- If you're using MATLAB and playing the game from MATLAB source code and have access to the figure window, then you can use getframe (sounds like this is not the case).
- If it's just some other completely different app running on your computer then I don't know what you'd do. Somehow you'll have to get screenshots of your computer screen.
Voir également
Catégories
En savoir plus sur Image Preview and Device Configuration dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!