How to quickly capture screenshots in Java?

I am implementing a simple eye tracker, which requires fast screen synchronization to capture video from webcam

The thing is the way robots do this, which is mentioned here: https://stackoverflow.com/questions/2475303/java-library-for-capturing-active-window-screenshot It's very slow

By the way, retrieving video from a webcam works faster and returns a byte array, which is a very fast process

Does anyone know a faster solution? It can help C library link with Java

thank you!

Update: decided to switch to opencv and is now looking for a way to take a screenshot of it:)

Solution

You must play OpenCV

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>