So, I tried to run the code of the webcam project both locally on my laptop
(running OS X) and on a Jetson with the GStreamer driver.
On my laptop it did not find any cameras, I guess the reason for that are the
new security rules in OS X. I do not know how I can register my program to use
the camera.
On the Jetson I got the following exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError: jnidispatch
(/com/sun/jna/linux-aarch64/libjnidispatch.so) not found in resource path
at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:723)
at com.sun.jna.Native.loadNativeLibrary(Native.java:697)
at com.sun.jna.Native.<clinit>(Native.java:127)
at org.gstreamer.lowlevel.GNative.loadNativeLibrary(GNative.java:48)
at org.gstreamer.lowlevel.GNative.loadLibrary(GNative.java:45)
at org.gstreamer.lowlevel.GstNative.load(GstNative.java:42)
at org.gstreamer.lowlevel.GstNative.load(GstNative.java:39)
at org.gstreamer.Gst.<clinit>(Gst.java:59)
at
com.github.sarxos.webcam.ds.gstreamer.GStreamerDriver.init(GStreamerDriver.java:99)
at
com.github.sarxos.webcam.ds.gstreamer.GStreamerDriver.<init>(GStreamerDriver.java:50)
at Main.main(Main.java:30)
In general I would say that the library looks very good, but it requires a bit
more time to understand the details.
As the next steps I suggest to test the code on a windows laptop or a raspberry
pi with a connected pi cam.
Philipp
> On 6. Mar 2020, at 11:07, Patrick Wiener <[email protected]> wrote:
>
> Yep - I guess for a first PoC this is sufficient. However, there could be
> potential issues with how these libraries access the CSI camera (raspistill,
> gstreamer etc).
>
> For the future, the adapter needs to account for the potential heterogeneity
> in hardware/node setup.
>
>
>
>> Am 06.03.2020 um 10:56 schrieb Philipp Zehnder <[email protected]>:
>>
>> Hi Patrick,
>>
>> this is a very interesting idea.
>> I thought about this before and I found a cool library which we could
>> possibly use to connect cameras [1]
>>
>> It seems that they support different operating systems, further they have
>> multiple drivers (e.g. GStreamer).
>> I tried to run an example locally, but it did not work on my computer yet.
>> But maybe we should test it directly on a Pi.
>>
>>
>> [1] https://github.com/sarxos/webcam-capture
>> <https://github.com/sarxos/webcam-capture>
>>
>>
>>> On 6. Mar 2020, at 10:51, Patrick Wiener <[email protected]> wrote:
>>>
>>>
>>> Hi all,
>>>
>>> it’s hacky friday again and I just came across an interesting adapter for
>>> StreamPipes Connect.
>>>
>>> Since we use camera imagery in some use cases, it would be great to have a
>>> specific adapter
>>> to access camera images, e.g. from picameras deployed on Raspberry Pi’s,
>>> right at the source.
>>> This could enable us to also pre-process these images on the edge device
>>> itself.
>>>
>>> What do you think about it? Suggestions and help are warmly welcome.
>>>
>>> Patrick
>>
>>
>