Canny edge detection implemented in CUDA C/C++. Supports images and video. OpenCV is used for loading and writing media. Compiled for CUDA compute capability 8.9 (compute_89, sm_89) and tested on RTX 4060.
Comparison with an example from the article:

- headless -
truefor just writing output files,falsefor GUI - media -
imageorvideo - in - input path
- lowThreshold, highThreshold - percentages for retaining or discarding edges based on pixel values
nvcc -arch=sm_89 -O3 -o canny *.cu `pkg-config --cflags --libs opencv4`