Skip to content

Brown-LEMS/edge-detect-opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Edge Detector with OpenCV

Build


  1. Install or build OpenCV4 with OpenCV4 Contribution (build directions are in the latter)
    • Before building, make sure (using a package manager or some other method) that libgtk2.0-dev is installed on Debian/Ubuntu or gtk2-devel on Fedora. pkg-config must also be installed.
  2. Build this repo:
git clone https://github.com/Brown-LEMS/edge-detect-opencv.git
cd edge-detect-opencv
cmake -S . -B build -DCMAKE_PREFIX_PATH="/path/to/opencv/build"
cmake --build build -j$(nproc)
  1. Download the Structured Forest Edge model from here
  2. This executable runs a demo either outputting edges to a file or displaying them on a window. Usage (argument order must match):
# to output edges to a file:
./build/edt -m <model_name> -i <input_img> -o <output_name>

# show on window
./build/edt -m <model_name> -i <input_img> -s

About

Edge Detector using OpenCV4 C++ API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors