How to analyze data from the current monitor screen

4 views (last 30 days)
Hi,
I have created a Threshold function using Matlab Threshold Color App and the function works great, I input it a matrix and it returns a BW image where it shows me in white the required object.
However, I was wondering if there is an option to do so on live data and it leads me to 2 questions:
1) Lets say I have a video game running on my screen, I had like to take the data from my monitor as live data and work on it. Is there an option to do so?
2) Once I manage to obtain the online data from the video game that plays on my screen, is there a way to change the following code to work on the video and display the output video in BW?
Thank you very much.
  4 Comments
Rik
Rik on 5 Aug 2018
As you guessed in a previous edit of your comment: you can use this to capture a new frame when your code finishes analyzing the previous frame. You can also edit this down to remove all checks and only use the actual capturing code.
Rik
Rik on 5 Aug 2018
It's more clear to post a new comment, instead of substantially changing your previous comment.
You don't need to save the capture to a file if you don't want to, but if you want a full resolution, full frequency capture, you will probably need another tool that does that, and your code must be extremely fast to be able to do any processing on it.
What is your specific question about that function? Because I don't think I fully understand what you mean.

Sign in to comment.

Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!