Skip to content

OwlHowlinMornSky/WGC-Capture-with-OpenCV

Repository files navigation

WGC-Capture-with-OpenCV

WGC-Capture-with-OpenCV is Free/Libre.

WGC-Capture-with-OpenCV 是 自由的

Features

  • Capture a window or monitor at one time using WGC;
  • Write captured frames into a cv::Mat for farther process.
  • Packaged into a DLL so you don't need to care about anything of WGC or C++/WinRT.

Requirements

  • OpenCV 4.8.0

Usage

  1. Setup OpenCV 4.8.0.
  2. Add /include into Additional Include Directories.
  3. Add /lib into Additional Library Directories.
  4. Add wgc-capture.lib (Release) or wgc-capture-d.lib (Debug) into Additional Dependencies.
  5. Include ohms/WGC.h at anywhere needed.
  6. Remember to copy necessary DLL files in /bin.
  7. Examples are available.