-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add python bindings to cudaobjdetect, cudawarping and cudaarithm #2396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add python bindings to cudaobjdetect, cudawarping and cudaarithm #2396
Conversation
Add python wrapper to convolution funciton.
… internaly if not passed for python bindings consistency.
Moved module specific python cuda tests from main opencv repo. |
Could you please re-check Crash log with python 2.7 (problem is
Command line (
Python 3.7:
|
Thanks looking into this. |
Apologies I committed the old test case, before I introduced the create method. I have left both the SURF_CUDA constructors unwrapped
meaning that constructing cuSurf as
will construct and empty object and still throw an exception when calling
However this does force the user to call create() allowing python to catch the following exception
when not compiled with
works, however
throws an exception. |
…rping documentation.
Overloads have been added for mog and mog2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thank you 👍
Updated KeyPoints in cuda::ORB::Convert python wrapper to be an output argument. |
_dst.create(src.size(), src.type()); | ||
Mat dstMat = _dst.getMat(); | ||
dst.copyTo(dstMat); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 lines
Did you try just dst.copyTo(_dst);
call?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but it works perfectly, I wrongly assumed that this worked the same for Mat
and GpuMat
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it makes sense to improve GpuMat
support in .copyTo()
implementation (in a separate PR).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I can take a look at that once this has been merged.
@alalek Made suggested changes. |
@cudawarped Please remove useless |
where? |
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@cudawarped can you please till me how do I patch this changes on my Jetson Nano which also uses Ubuntu |
These changes were merged over a year ago. Using the latest version 4.5.1 will be sufficient. |
Main PR: opencv/opencv#16248
resolves #2159 #2393 #2407
This pullrequest changes
Adds overloads to C++ functions to generate the missing python bindings for cudaobjdetect, cudawarping, cudaarithm and cudabgsegm functions.
Python tests have been added for the missing functions and all module specific python tests have also been moved here from the main repo.