How to capture video from a webcam (in java)?

I want to develop an application in java to capture video from a webcam and save it in a specific place. Can someone provide me with working code?

What type (usb, ip, etc.) of a webcam is the best for application development.

Please help me. how to act?

+3
source share
3 answers

Check David's solution using JMF: http://www.mutong.com/fischer/java/usbcam/

+1
source

webcam-capture ( ). , - - . , USB IP-. (Windows XP, Vista, 7, 8, Linux, Mac OS, Raspbian ..), - . .

JMF - , , , , , .

+14

, - JMyron - USB. dll, , ... - , ( , ), , DLL . dll .

import JMyron.JMyron;

//initializer
int width=100;//insert your numbers here
int height=100;
JMyron jmyron = new JMyron();
jmyron.start(width,height);
//in a loop
jmyron.update();
int[] image = jmyron.image();

int [] width * height. , width , width ..

+2

Source: https://habr.com/ru/post/1727330/


All Articles