Closed xsacha closed 4 years ago
+1. Does anyone know any workaround for this?
Does not look like they care about CUDA support anymore. You will have to move on I feel. I already have.
Does not look like they care about CUDA support anymore. You will have to move on I feel. I already have.
Me too. Have installed OpenCV 3.4, it works fine with CUDA 10.0.
Yikes. Can confirm this is still the case for... some reason.
Why this was removed I have no idea, since the PR is nondescript about it. If @alalek would be more specific about what was legacy needing removal I'd happily try to patch, but the removed stuff doesn't mention cvLoad
, which was apparently what was supposed to be removed? Is Open CV dropping Cascade Classifiers entirely going forward? What's the deal?
You could maybe get away with using the HOG detector? That's still included in 4.1.0. But seeing as the DNN module is slow for you I'm guessing the same applies. (Also, the CUDA HOG detectMultiScale
needs a CV_WRAP
, so it's not available from Python.)
Are the CPU bound cascade classifiers going to be dropped eventually, as I am planning on using them in the near future?
Probably not as it is easier to maintain
Are there any plans to re-add the CUDA classifiers with the new APIs?
There are no resources planned for that. Feel free to prepare patch with migration of disabled code from removed legacy API and validate proposed changes.
@alalek shouldn't be deprecated and replace with the new one before disabling it?
There is no new one unless someone added one recently
I know this thread is dated at bit at this time, but I've started the effort of getting openCV 4.3.0 to work with cuda cascade classifiers. I have it functioning against simple classifiers, so there's still a little more work to do. I'll push this up to a branch on my work when it's in better shape.
Sounds great. Keep us updated on your progress. As I am keen to upgrade to OpenCV 4 but not having CUDA accelerated classifiers is a key blocker.
I've pushed up my first branch with the fix for CUDA cascade classifiers in OpenCV4.x.
https://github.com/nosajthenitram/opencv_contrib/tree/2048_cuda_cascade_no_longer_available
@alalek Who maintains the xml parser for the persistence module? I've got some questions regarding the cuda cascade classifier xml and how it's consumed. I'm not an xml expert, so I'm not sure what this should look like as it's represented in the file nodes.
This PR (https://github.com/opencv/opencv_contrib/pull/1889) removed objdetect related classes such as cv::cuda::CascadeClassifier. For me, the best part about OpenCV (recently moved to contrib).
The pull request states it is obsolete. If so, what is the replacement? I have not seen anything similar. Please do not suggest DNN as it is far slower and not equivalent at all.
I am still unable to use OpenCV 4.X due to this PR.