This page describes the required steps to use an AVT GigE camera in combination with an Ubuntu operating system.
Update 02/05/2013 - Configuration with windows 7 x64 bit added at each step - using single ethernet port on laptop Update 02/02/2014 - Added a link to a working configuration using Manta camera and OpenCV 2.4.9
Content
AVT PvAPI SDK for GigE VisionĀ® cameras
Ethernet configuration
Viewing frames
Capturing frames
Downloadable content
You can find a working code snippet on how to connect the manta camera at the following link (checked at 02/02/2014):
Extract this package at a known location, since this package contains the libraries for the SDK and you'll need this location during the following steps
Install the SDK into a preselected folder, of which the location is needed for further installation - it will contain the needed folders for project configuration
Ethernet configuration
Configuration of the Ethernet interface of your computer is necessary to use the GigE camera and can be realized in 2 ways:
A first configuration is a point to point connection between the GigE camera and your computer. In this configuration, the Ethernet connector of your PC is connected to the GigE camera.
Change the IP Address of your PC to 169.254.1.1
Change network mask to 16
Change Gateway to 169.254.1.2
A second configuration is realized by connecting the GigE camera on the same switch which is used to connect your computer. In this case it's recommended to create a virtual Ethernet interface on top of the physical Ethernet interface:
Create a new C++ empty console project using VS2010 or another windows compatible SDK
Add the source file to the project
Configure the following settings in project properties
C/C++ - General - Additional Include Directories : D:\OpenCV2.4\build\include; D:\OpenCV2.4\build\include\opencv; D:\OpenCV2.4\build\include\opencv2; D:\Manta\GigESDK\inc-pc; %(AdditionalIncludeDirectories)
Linker - General - Additional Library Directories : D:\OpenCV2.4\build\x64\vc10\lib; D:\Manta\GigESDK\lib-pc\x64
Linker - Input - Additional Dependencies : (for moment all openCV libraries in order to provide full functionality) opencv_core243d.lib; opencv_highgui243d.lib; opencv_video243d.lib; opencv_ml243d.lib; opencv_legacy243d.lib; opencv_calib3d243d.lib; opencv_contrib243d.lib; opencv_features2d243d.lib; opencv_haartraining_engined.lib; opencv_objdetect243d.lib; ImageLib.lib; PvAPI.lib
Build the project and go to the destination folder of the application. The *.exe can be found there and called using command line tool.
Do not forget to add enough parameters (location of folder / number of frames / extension of files).
Opening video live stream using manta camera - Windows version only
A windows cpp file was created to pull in a live stream from the manta camera in order to perform image operations on the input.
Main differences with previous files:
Code transfered to openCV 2.4.5 completely
Solely using C++ interface, not the C style interface of openCV
Update 02/05/2013 - Configuration with windows 7 x64 bit added at each step - using single ethernet port on laptop
Update 02/02/2014 - Added a link to a working configuration using Manta camera and OpenCV 2.4.9
Content
Downloadable content
You can find a working code snippet on how to connect the manta camera at the following link (checked at 02/02/2014):
https://github.com/StevenPuttemans/opencv_tryout_code/blob/master/camera_interfacing/AVT_manta_camera.cpp
AVT PvAPI SDK
Windows 7 x64 bit:
Ethernet configuration
- Configuration of the Ethernet interface of your computer is necessary to use the GigE camera and can be realized in 2 ways:
- A first configuration is a point to point connection between the GigE camera and your computer. In this configuration, the Ethernet connector of your PC is connected to the GigE camera.
- Change the IP Address of your PC to 169.254.1.1
- Change network mask to 16
- Change Gateway to 169.254.1.2
- A second configuration is realized by connecting the GigE camera on the same switch which is used to connect your computer. In this case it's recommended to create a virtual Ethernet interface on top of the physical Ethernet interface:
Windows 7 x64 bit:Viewing frames
Windows 7 x64 bit:
Capturing frames
Windows 7 x64 bit:
- Download the source code here (linux specific libraries were removed and interfacing was changed)

CaptureSaveMono.cpp
- Details
- Download
- 6 KB
- Create a new C++ empty console project using VS2010 or another windows compatible SDK
- Add the source file to the project
- Configure the following settings in project properties
- C/C++ - General - Additional Include Directories : D:\OpenCV2.4\build\include;
- Linker - General - Additional Library Directories : D:\OpenCV2.4\build\x64\vc10\lib;
- Linker - Input - Additional Dependencies : (for moment all openCV libraries in order to provide full functionality)
Build the project and go to the destination folder of the application. The *.exe can be found there and called using command line tool.D:\OpenCV2.4\build\include\opencv;
D:\OpenCV2.4\build\include\opencv2;
D:\Manta\GigESDK\inc-pc;
%(AdditionalIncludeDirectories)
D:\Manta\GigESDK\lib-pc\x64
opencv_core243d.lib; opencv_highgui243d.lib;
opencv_video243d.lib; opencv_ml243d.lib;
opencv_legacy243d.lib; opencv_calib3d243d.lib;
opencv_contrib243d.lib; opencv_features2d243d.lib;
opencv_haartraining_engined.lib; opencv_objdetect243d.lib;
ImageLib.lib; PvAPI.lib
Do not forget to add enough parameters (location of folder / number of frames / extension of files).
Opening video live stream using manta camera - Windows version only
A windows cpp file was created to pull in a live stream from the manta camera in order to perform image operations on the input.
Main differences with previous files:
Code can be downloaded here:
Usage:
manta_GigE_streaming.exe <resolution width> <resolution heigth>