opencv / opencv_contrib

Repository for OpenCV's extra modules
Apache License 2.0
9.43k stars 5.76k forks source link

CUDA_DISABLER nullify CUDA functions. #2465

Open Raffaello opened 4 years ago

Raffaello commented 4 years ago
System information (version)
Detailed description

Jut trying to do a simple object detection with CUDA is disabled as can be seen in this line: https://github.com/opencv/opencv_contrib/blob/4.2.0/modules/cudaobjdetect/src/cascadeclassifier.cpp#L44-L49

Steps to reproduce

just run a basic cuda object detection script to trigger the defined CUDA_DISABLER.

So how is it possible to run cuda if it is disabled in the code? any reason? is it safe to remove that define?

Issue submission checklist

the question is here without any accepted answer nor explanation: https://answers.opencv.org/question/29976/videoreader_gpu-not-available-but-built-with-nvcuvid/

nosajthenitram commented 4 years ago

Your issue should be corrected with this PR.

https://github.com/opencv/opencv_contrib/pull/2554

cherry pick that and rebuild.

pumkin253 commented 4 years ago

Thank you for your response and help.

On Wed, Jun 10, 2020, 7:03 AM nosajthenitram notifications@github.com wrote:

Your issue should be corrected with this PR.

2554 https://github.com/opencv/opencv_contrib/pull/2554

cherry pick that and rebuild.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/opencv/opencv_contrib/issues/2465#issuecomment-642031767, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZR4OH2PT44XHCDV4VGOLLRV6HEFANCNFSM4LPLX25A .