help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image acquisition


From: Kai Torben Ohlhus
Subject: Re: Image acquisition
Date: Wed, 21 Aug 2019 15:40:33 +0900
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 8/21/19 1:51 PM, Nkosiphile Bhebhe wrote:

>> On 21 Aug 2019, at 05:47, Kai Torben Ohlhus <address@hidden> wrote:
>>
>>> On 8/21/19 12:38 PM, Nkosiphile Bhebhe wrote:
>>> Good Day,
>>>
>>> I am trying to connect to a point grey CCD camera using octave on ubuntu. I 
>>> have tried to install the image acquisition package but I get the following 
>>> error “unable to find the v4l2_open function”.
>>> I only started using octave recently may you kindly assist?
>>>
>>> Kind Regards
>>> Nkosiphile
>>
>>
>> Did you install the build dependencies [1,2] mentioned at the bottom of [3]?
>>
>>   sudo apt-get install libv4l-dev libfltk1.1-dev
>>
>> If you did this and installed the image acquisition package without
>> errors, you must load the package as well
>>
>>   pkg load image-acquisition
>>
>> HTH,
>> Kai
>>
>> [1] https://packages.ubuntu.com/search?keywords=libv4l-dev
>> [2] https://packages.ubuntu.com/search?keywords=libfltk1.1-dev
>> [3] https://octave.sourceforge.io/image-acquisition/index.html
>>
>>
>
> Hi Kai,
>
> Thank you for the response.
>
> Yes I did install the dependencies, I thought I didn’t do it the right
way and repeated the procedure and it said the dependencies are already
installed. Do I have to follow a specific order when setting up?
>
> Kind Regards
>
>  Nkosiphile
>

Dear Nkosiphile,

Please reply at the bottom of this mail (bottom-posting) for this
mailing list and keep the list itself in the CC so many others smarter
than me can help you as well.

I just repeated the procedure myself on my Laptop with openSUSE 15.1 and
I get:

$ sudo zypper install libv4l-devel fltk-devel  # Different for Ubuntu!
...
$ octave

octave:1> pkg install -forge image-acquisition
For information about changes from previous versions of the
image-acquisition package, run 'news image-acquisition'.
octave:2> pkg load image-acquisition
octave:3> imaqhwinfo
ans =

  scalar structure containing the fields:

    driver = uvcvideo
    card = Integrated Camera
    bus_info = usb-0000:00:14.0-10
    version = 4.12.14
    capabilities =  2233466881
    device = /dev/video0
octave:4> obj = videoinput("v4l2", "/dev/video0")
obj = videoinput for v4l2
      device               = /dev/video0
warning: duplicate type v4l2_handler
      driver               = uvcvideo
      card                 = Integrated Camera
      VideoInput           = 0
      VideoResolution      = 640 x 480 px
      VideoFormat          = YUYV


So seems kind of working.

What exactly is your error message or makes you believe things are not
working?  When do you see this message “unable to find the v4l2_open
function”?  While installing?  Especially, what is your version of
Ubuntu and Octave?

Kai



reply via email to

[Prev in Thread] Current Thread [Next in Thread]