Real-time Canny edge detection using OpenCV and CUDA

preview_player
Показать описание
OpenCV 2.4.11
CUDA 7.0 on GeForce 660GTX
Logitech HD Webcam C525

Pseudocode:

cv::VideoCapture captureDevice(0);

while (true)
{

cv::Mat source;

gpu::GpuMat d_source(source);
gpu::GpuMat d_greyscale, d_blurred, d_dst;

gpu::cvtColor(d_source, d_greyscale, CV_BGR2GRAY);
gpu::blur(d_greyscale, d_blurred, Size(3, 3));

int ratio = 3;
int kernel_size = 3;
gpu::Canny(d_blurred, d_dst, lowThreshold, lowThreshold * ratio, kernel_size);

cv::Mat cannyEdge(d_dst);
cv::imshow("Canny edge video", cannyEdge);

}
Рекомендации по теме
Комментарии
Автор

when I have migraines I wish there was a filter with this effect for computers or smartphones or for videos

NeoAnguiano
Автор

What a relaxing song in the background...

AnnebelBuntOnline
Автор

Hi. Your video is great.
But how to add cuda into opencv. Can u give me some directions ?

hoangbui
Автор

Very nice, Any documentation about this using java ?

AriefWijayaisMRAW
Автор

Music link/ name? reminds me of explosions in the sky

silvastomp
Автор

do you have canny edge detection using c# sir ? can you help ?

rouzanfiqriabdullah
join shbcf.ru