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
The robot.createScreenCapture(captureSize); call takes about 20ms for me.
robot.createScreenCapture(captureSize);