bkeahl
bkeahl

Reputation: 33

Java Access To "Video Controller" In Windows

Is there a way to access a device classed as a video controller from Java? I can capture from a webcam via an applet I created, but need to capture an image from a security camera that is being fed into what Windows Device Manager classes as a "Video Controller".

I had thought the same code I used for the webcam would work, much to my disappointment.

Any ideas?

Upvotes: 0

Views: 137

Answers (1)

Hey StackExchange
Hey StackExchange

Reputation: 2125

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.

Upvotes: 1

Related Questions