Joshua M. Doe 9bf84eb7e8 common: add genicam pixel format utility function
GenICam currently supports a specific list of pixel format names,
however Basler, NI, and probably others sometimes use different names,
especially in older cameras. Spaces tend to get used, so now when
checking for matches, ignore spaces and casing.
2020-04-08 06:51:21 -04:00
2020-04-07 11:43:59 -04:00
2020-04-06 15:13:43 -04:00

gst-plugins-vision

GStreamer plugins related to the field of machine vision.

Image acquisition elements

Image generation elements

Other elements

  • extractcolor: Extract a single color channel
  • klvinjector: Inject test synchronous KLV metadata
  • klvinspector: Inspect synchronous KLV metadata
  • sfx3dnoise: Applies 3D noise to video
  • videolevels: Scales monochrome 8- or 16-bit video to 8-bit, via manual setpoints or AGC

Dependencies

  • GStreamer 1.2.x
  • Specific frame grabber SDKs and/or licenses

Installation

  • Install GStreamer 1.2.x or newer (latest should work)
  • Build project or download a release from Github (ZIP files under Assets)
  • Extract files somewhere
  • Create an environment variable GST_PLUGIN_PATH that points to where you extracted the files

Examples

Capture from a CoaXPress camera via a Kaya Komodo frame grabber, apply AGC to convert it to 8-bit monochrome, then output the video via A&B Software GigESim which generates GigE Vision video:

gst-launch-1.0 kayasrc ! videolevels auto=continuous ! gigesimsink

Then in another command capture the GigE Vision video via Pleora eBUS and display the video to the screen:

gst-launch-1.0 pleorasrc ! autovideoconvert ! autovideosink

Compiling

  • Install Git or download a ZIP archive
  • Install CMake
  • Install GStreamer distribution or build from source. The installer should set the installation path via GSTREAMER_1_0_ROOT_X86_64 environment variable. If not set, set GSTREAMER_ROOT to your installation, the directory containing bin, lib, etc.
  • Install any camera or framegrabber software/SDK for those plugins you wish to build. Check cmake/modules for any paths you may need to set.
  • Run the following commands from a terminal or command prompt, assuming CMake and Git are in your PATH.
git clone https://github.com/joshdoe/gst-plugins-vision.git
cd gst-plugins-vision
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" ..
  • To create a package of all compiled plugins run:
cmake --build . --target PACKAGE

See also

  • Aravis, Linux open source GStreamer plugin for GigE Vision and USB3 Vision cameras
Languages
C 72.5%
C++ 14.8%
CMake 6.9%
Python 4%
PowerShell 1.4%
Other 0.3%