문제 설명
Windows에서 "비디오 컨트롤러"에 대한 Java 액세스 (Java Access To "Video Controller" In Windows)
Java에서 비디오 컨트롤러로 분류된 장치에 액세스하는 방법이 있습니까? 내가 만든 애플릿을 통해 웹캠에서 캡처할 수 있지만 Windows 장치 관리자가 "비디오 컨트롤러"로 분류하는 보안 카메라에서 이미지를 캡처해야 합니다.
웹캠에 사용한 것과 동일한 코드가 작동할 거라고 생각했는데 실망이 컸습니다.
아이디어가 있습니까?
참조 솔루션
방법 1:
Beside going to the JNI route, I would definitely take a look to OpenCV, that would do it for you effortless.
OpenCV provide a DLL that you can easily invoke from Java. You can then use it to capture and manipulate images coming from a webcam, in real‑time.
But the really interesting part of OpenCV reside in the fact that it is a Computer Vision API. As such, you can for e.g. easily perform motion detection, face recognition, etc, what sounds to me to be a must in the video security software world.
To capture an image from a camera, see the VideoCapture method. Example of usage here.
(by bkeahl、Hey StackExchange)