How to take single snapshots from a webcam?

后端 未结 4 1549
死守一世寂寞
死守一世寂寞 2020-12-21 14:51

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

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-21 15:43

    I prefer using JMyron instead of JMF. JMyron is easy to use for accessing webcam. To save the captured image you just need to save the BufferedImage using ImageIO.write(); this blog post How To Use Webcam Using Javais usefull to start using JMyron.

提交回复
热议问题