Repository navigation
Python wrapper for detail - #13267
Conversation
e81db44 to
e3e549f
Compare
|
Try to debug locally (built with opencv_contrib - SURF is there). |
|
GDB: |
|
ABI the return ? |
|
API only. Add some default implementation instead of pure declaration. For example |
6b84f08 to
cdebe9c
Compare
alalek
left a comment
There was a problem hiding this comment.
Well done!
It would be nice to have some Python example or simple test (without accuracy check, just check for non-empty result).
| Ptr<detail::RotationWarper> rw; | ||
|
|
||
| public: | ||
| CV_WRAP PyRotationWarper(String type, float scale); |
There was a problem hiding this comment.
I believe this should be moved out from public headers.
Could you create file similar to "shadow_umat.hpp"?
Do you have any thoughts about Java?
a75584d to
7dbe29a
Compare
|
My mistake - shadow doesn't work here, because there is not C++ class (like UMat). |
alalek
left a comment
There was a problem hiding this comment.
Please add some simple Python test (no need to test accuracy, just test that provided bindings works and return non empty result)
| typedef std::vector<UMat> vector_UMat; | ||
| typedef std::vector<detail::ImageFeatures> vector_ImageFeatures; | ||
| typedef std::vector<detail::MatchesInfo> vector_MatchesInfo; | ||
| typedef std::vector<detail::CameraParams> vector_CameraParams; |
There was a problem hiding this comment.
Only types from "core" module are allowed in cv2.cpp
Other types should be defined via "misc/python" headers.
| std::vector<double> &focals); | ||
|
|
||
| bool CV_EXPORTS calibrateRotatingCamera(const std::vector<Mat> &Hs, Mat &K); | ||
| bool CV_EXPORTS_W calibrateRotatingCamera(const std::vector<Mat> &Hs, Mat &K); |
There was a problem hiding this comment.
Use CV_OUT for output parameters.
|
Previous commit was wrong because PyRotationWraper was not exported in python |
| @@ -0,0 +1,70 @@ | |||
| #!/usr/bin/env python | |||
There was a problem hiding this comment.
Thank you!
Please move this test code into test_stitching.py.
class detail_test -> class stitching_detail_test
* Python wrapper for detail * hide pyrotationwrapper * copy code in pyopencv_rotationwarper.hpp * move ImageFeatures MatchInfo and CameraParams in core/misc/ * add python test for detail * move test_detail in test_stitching * rename
* Python wrapper for detail * hide pyrotationwrapper * copy code in pyopencv_rotationwarper.hpp * move ImageFeatures MatchInfo and CameraParams in core/misc/ * add python test for detail * move test_detail in test_stitching * rename
Rewrite stitching_detailed.cpp in python