Skip to content

crosstyan/cv-mmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6854fb5 · Mar 18, 2025

History

33 Commits
Oct 6, 2024
Jan 7, 2025
Jan 7, 2025
Sep 20, 2024
Jan 7, 2025
Sep 20, 2024
Dec 23, 2024
Oct 6, 2024
Sep 20, 2024
Mar 18, 2025
Sep 22, 2024
Sep 20, 2024

Repository files navigation

OpenCV IPC capture

Capture video frames from a camera using OpenCV and share them with other processes using shared memory. The stream could be a GStreamer pipeline or a camera device, depending on the platform/API. Use ZeroMQ to notify other processes when a new frame is available. (for synchronization) The consumer process SHOULD NOT write to the shared memory, only read/clone the data.

# opencv/build
cmake .. -DOPENCV_EXTRA_MODULES_PATH=/Volumes/External/Code/opencv_contrib/modules/ \
    -DCMAKE_CXX_STANDARD=17 \
    -DBUILD_JASPER=OFF \
    -DBUILD_JPEG=OFF \
    -DBUILD_OPENEXR=OFF \
    -DBUILD_OPENJPEG=OFF \
    -DBUILD_PERF_TESTS=OFF \
    -DBUILD_PNG=OFF \
    -DBUILD_PROTOBUF=OFF \
    -DBUILD_TBB=OFF \
    -DBUILD_TESTS=OFF \
    -DBUILD_TIFF=OFF \
    -DBUILD_WEBP=OFF \
    -DBUILD_ZLIB=OFF \
    -DBUILD_opencv_hdf=OFF \
    -DBUILD_opencv_java=OFF \
    -DBUILD_opencv_text=ON \
    -DOPENCV_ENABLE_NONFREE=ON \
    -DOPENCV_GENERATE_PKGCONFIG=ON \
    -DPROTOBUF_UPDATE_FILES=ON \
    -DWITH_1394=OFF \
    -DWITH_CUDA=OFF \
    -DWITH_EIGEN=ON \
    -DWITH_FFMPEG=ON \
    -DWITH_GPHOTO2=OFF \
    -DWITH_GSTREAMER=ON \
    -DWITH_JASPER=OFF \
    -DWITH_OPENEXR=ON \
    -DWITH_OPENGL=OFF \
    -DWITH_OPENVINO=ON \
    -DWITH_QT=OFF \
    -DWITH_TBB=ON \
    -DWITH_VTK=ON \
    -DBUILD_opencv_python2=OFF \
    -DBUILD_opencv_python3=ON
HOMEBREW_DEVELOPER=1 brew install --build-from-source -v --formula ./opencv.rb

Dependencies

Arch Linux

sudo pacman -S opencv \
    gst-plugins-base  \
    gst-plugins-good  \
    gst-plugins-bad  \
    gst-plugins-ugly  \
    gstreamer  \
    cppzmq  \
    spdlog \
    vtk \
    glew \
    hdf5

About

Connect OpenCV VideoIO to shared memory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published