How to take single snapshots from a webcam?
问题 I want to take a snapshot with my webcam using java and save it to a jpg file. What are the steps needed to do so? A tutorial would be greatly appreciated. Greetings, Burkhard 回答1: the JMF (Java Media Framework) is a good starting point. However, I did not succeed with it. I finally found the solution here. The important part being: Buffer buf = frameGrabber.grabFrame(); // Convert frame to an buffered image so it can be processed and saved Image img = (new BufferToImage((VideoFormat) buf