Results 1 to 7 of 7

Thread: build a programm in C++ in Linux

  1. #1
    Join Date
    Oct 2014
    Posts
    4

    build a programm in C++ in Linux

    Hello,

    I need to build a program in C++ in Linux, for my final project in university,in order to communicate, change settings (iris,exposure time), capture an image and save it to a specific place.
    I am using this GigE Camera DFK23G274.I
    http://www.theimagingsource.com/en_U...or/dfk23g274i/
    So, i want to give me some directions about the library i have to use and some directions for how to use it.


    Thanks
    Dimiou Marios

  2. #2
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,886

    Re: build a programm in C++ in Linux

    Hello

    A good point for starting is
    https://github.com/TheImagingSource/tiscamera/wiki

    Please look at the "Aravis" part.
    Best regards
    Stefan
    IC Imaging Control Support

  3. #3
    Join Date
    Oct 2014
    Posts
    4

    Re: build a programm in C++ in Linux

    i looked for it but i could not understand how i can do it....

  4. #4
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,886

    Re: build a programm in C++ in Linux

    Well,

    the Linux software is not as simple. I guess, you are experienced with GIT and you downloaded a built the ARAVIS lib as shown on the Aravis home page.
    Then you compiled the the gstreamer pipeline modules, right?
    Best regards
    Stefan
    IC Imaging Control Support

  5. #5
    Join Date
    Oct 2014
    Posts
    4

    Re: build a programm in C++ in Linux

    Basically no....i am trying to find out what is happening with aravis lib. I have no experience with camera programming.... so i don't know about gstreamer pipeline modules for example....i am totally new in this programming sector.....

  6. #6
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,886

    Re: build a programm in C++ in Linux

    Then I suppose to search in the internet about using gstreamer in Linux. There is a lot of to read, often hard to understand. This will take its time, but it is necessary.

    About Aravis: It is a library, that encapsulates the GigEVision protocol, so you can control the camera with your own programs and receive the images.

    So you should also learn, how to compile the Aravis library.

    I am very sorry, I am aware, that is not the answer you wanted to read, but you have to learn about linux fist.
    Best regards
    Stefan
    IC Imaging Control Support

  7. #7
    Join Date
    Oct 2014
    Posts
    4

    Re: build a programm in C++ in Linux

    Stefan, finally i change camera.... and i am going to use DFK23U274 which is a usb camera. A colleague of yours gave this V4L2 and opencv code
    ftp://tis_ftp:Imaging199@ftp.theimag...cv_example.zip

    and i add some changes, for changing exposure time and gain and imwrite() command for saving picture to a specific file. My question is if this code is ready to be used...!!!

    The code i have added in main is this:
    //setting exposure
    ctrl.id = V4L2_CID_EXPOSURE;
    ctrl.value = "an integer for exposure";
    ioctl(fd, VIDIOC_S_CTRL, &ctrl);

    //setting gain
    ctrl.id = V4L2_CID_GAIN;
    ctrl.value = "an integer for gain";
    ioctl(fd, VIDIOC_S_CTRL, &ctrl);

    Thanks a lot

Similar Threads

  1. Distribute applications build in VS2005
    By varandas in forum IC Imaging Control C++ Class Library
    Replies: 0
    Last Post: March 15, 2007, 11:27:54
  2. DFG/MC4 under linux
    By Unregistered in forum IC Imaging Control C++ Class Library
    Replies: 2
    Last Post: October 6, 2005, 08:17:12
  3. Build with VC++.NET
    By Junji in forum MontiVision Development Kit
    Replies: 2
    Last Post: February 28, 2005, 01:09:10
  4. VC6 code, VS7.0 build: header missing?
    By wrayb in forum IC Imaging Control C++ Class Library
    Replies: 1
    Last Post: February 15, 2005, 12:30:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •