Java: how to take a screenshot fast
- by user350789
I am implementing a simple eye tracker, which requires fast screenshoting of what is happening on the screen simultaneously with capturing the video from webcam.
The thing is that the way of doing it with Robot, mentioned here: http://stackoverflow.com/questions/2475303/java-library-for-capturing-active-window-screenshot
is extremely slow.
By the way, retrieving the video from a webcam works much faster and returns the byte array, which is very fast to be processed.
Does anybody know a faster solution? C++ libraries, which can be linked to Java for doing this may help as well.
Thank you!