On 2016-01-08 22:18, Jason von Nieda wrote:
> Hi folks,
>
> I'm beginning to accept that I can't continue to use OpenCV for
> capturing images from cameras if I want OpenPnP to really shine when
> it comes to computer vision. OpenCV is great for processing images,
> but it's terrible for capturing them.
>
Are you targeting primarily USB cameras? UVC (
https://en.wikipedia.org/wiki/USB_video_device_class ) ?
I was searching around and found
https://github.com/openxc/android-webcam ... would that work on other
platforms?
>
> My short list of requirements is:
> * Available for one or more of our supported platforms (Windows,
> Linux, Mac)
Java would meet that quite nicely. Or rather you know issues already
with Java on multiple platforms. Devil you know... :)
> * Open source, or at least free (commercial included).
> * Able to enumerate cameras.
A quick search just turned up
http://jphoto.sourceforge.net/ which looks somewhat old , and lots of
people asking for Java camera APIs and help.
> * Able to control resolution and video format. Video format is going
> to be very important in solving our multiple cameras on one USB port
> issue.
Multiple independent? Multiple together? Ordering (sequential?)
> * Able to control auto exposure and brightness settings for cameras
> that support it.
So on Linux, you have gphoto(2). I found
https://github.com/mvysny/gphoto2-java
Thinking of other popular cross platform languages, we have QT. This
brings my mind to VLC which is written in QT. However that's playing
video, not acquiring it. (Sorry just riffing out loud to try and get
creative thoughts going among the folks here).
Looks like Windows has
https://msdn.microsoft.com/en-us/library/windows/desktop/ms630368(v=vs.85).aspx
>
> That's really all we need to get going. I am currently experimenting
> with libuvc on Mac and it is showing some promise. libuvc is also well
> supported on Linux, so I might be able to use one library for both Mac
> and Linux. That would leave Windows.
Yes. That's the best I can find.
Java seems to be some sort of dead end with image acquisition. Some
random threads about TWAIN/JTWAIN.
Ooooo i just found
https://www.ptgrey.com/flycapture-sdk
https://github.com/bytedeco/javacv
from
http://bytedeco.org/