Skip to content

This is an example of how to call opencv function in a gstreamer plugin. The package is compiled using CMakeLists.

Notifications You must be signed in to change notification settings

JaouadROS/gstreamer_calling_opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gstreamer_calling_opencv

This repository contains an example of how to call OpenCV functions within a GStreamer plugin. It demonstrates the integration of GStreamer with OpenCV for image processing tasks. The project is configured with CMake, making it easy to build and install on various platforms.

Prerequisites

Before you begin, ensure you have the following installed:

  • GStreamer 1.20.3: Make sure GStreamer and its development libraries are installed.
  • OpenCV: You will need OpenCV and its development libraries.
  • CMake: Required for building the project.
  • A C++ compiler: GCC, Clang, or any C++ compiler compatible with your version of GStreamer and OpenCV.

Compilation and Installation

  1. Clone the Repository:

    First, clone this repository to your local machine using:

    git clone https://github.com/JaouadROS/gstreamer_calling_opencv 
    cd gstreamer_calling_opencv
  2. Build with CMake:

    In the project directory, create a build directory and navigate into it:

    mkdir build
    cd build

    Configure the project with CMake:

    cmake ..

    Compile the project:

    make
  3. Install the Plugin:

    After compiling, you can install the plugin. This might require administrative privileges:

    sudo make install

    This command installs the GStreamer plugin into /usr/lib/gstreamer-1.0.

Running the Application

Once installed, the GStreamer plugin can be used by GStreamer applications. In this project, gstImageProcessor is an example executable that demonstrates how to load and use the plugin.

To run the gstImageProcessor, simply execute:

./gstImageProcessor

This executable will load the GStreamer plugin cvimageprocessing from /usr/lib/gstreamer-1.0 and demonstrate its functionality, which involves using cv::equalizeHist for image processing within a GStreamer pipeline.

Author

The code in this repository is inspired by the gstcvequalizehist plugin and re written by JaouadROS.

About

This is an example of how to call opencv function in a gstreamer plugin. The package is compiled using CMakeLists.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published