-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
自己编译提供opencv-mobile-4.9.0的源码增加其他模块如objdetect和calib3d报错, #108
Comments
这个问题你是否解决了呢? |
Same problem here when use Flann and calib3d |
见我PR |
I’m also facing an issue with excessive UMAT codes; there are too many of them in the enabled module. How can I resolve this problem? I would appreciate your advice. |
Would love for this to get fixed so I can use calib3d on the luckfox Or maybe you have instructions on how to run the no-gpu patches please ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
error: ‘const class cv::_InputArray’ has no member named ‘isUMatVector’; did you mean ‘isMatVector’?
1061 | if( _descriptors.isUMatVector() )
| ^~~~~~~~~~~~
| isMatVector
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/matchers.cpp:1063:21: error: ‘UMat’ was not declared in this scope; did you mean ‘Mat’?
1063 | std::vector descriptors;
| ^~~~
| Mat
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/matchers.cpp:1063:25: error: template argument 1 is invalid
1063 | std::vector descriptors;
| ^
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/matchers.cpp:1063:25: error: template argument 2 is invalid
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/matchers.cpp:1064:22: error: ‘const class cv::_InputArray’ has no member named ‘getUMatVector’; did you mean ‘getMatVector’?
1064 | _descriptors.getUMatVector( descriptors );
| ^~~~~~~~~~~~~
| getMatVector
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/matchers.cpp:1066:44: error: request for member ‘size’ in ‘descriptors’, which is of non-class type ‘int’
1066 | for( size_t i = 0; i < descriptors.size(); i++ )
| ^~~~
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/matchers.cpp:1068:44: error: invalid types ‘int[size_t {aka long unsigned int}]’ for array subscript
1068 | addedDescCount += descriptors[i].rows;
| ^
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/matchers.cpp:1071:27: error: ‘const class cv::_InputArray’ has no member named ‘isUMat’; did you mean ‘isMat’?
1071 | else if( _descriptors.isUMat() )
| ^~~~~~
| isMat
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/matchers.cpp:1073:40: error: ‘const class cv::_InputArray’ has no member named ‘getUMat’; did you mean ‘getMat’?
1073 | addedDescCount += _descriptors.getUMat().rows;
| ^~~~~~~
| getMat
In file included from /home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/core/include/opencv2/core.hpp:53,
from /home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/include/opencv2/features2d.hpp:47,
from /home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/precomp.hpp:46,
from /home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/matchers.cpp:42:
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/matchers.cpp:1090:33: error: ‘const class cv::_InputArray’ has no member named ‘isUMat’; did you mean ‘isMat’?
1090 | CV_Assert( _descriptors.isUMat() || _descriptors.isUMatVector() || _descriptors.isMat() || _descriptors.isMatVector() );
| ^~~~~~
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro ‘CV_Assert’
342 | #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, FILE, LINE ); } while(0)
| ^~~~
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/features2d/src/matchers.cpp:1090:58: error: ‘const class cv::_InputArray’ has no member named ‘isUMatVector’; did you mean ‘isMatVector’?
1090 | CV_Assert( _descriptors.isUMat() || _descriptors.isUMatVector() || _descriptors.isMat() || _descriptors.isMatVector() );
| ^~~~~~~~~~~~
/home/lubancat/Desktop/opencv-mobile-4.9.0/opencv-mobile-4.9.0 (1)/opencv-mobile-4.9.0/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro ‘CV_Assert’
342 | #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, FILE, LINE ); } while(0)
| ^~~~
make[2]: *** [modules/features2d/CMakeFiles/opencv_features2d.dir/build.make:370:modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[1]: *** [CMakeFiles/Makefile2:807:modules/features2d/CMakeFiles/opencv_features2d.dir/all] 错误 2
make: *** [Makefile:166:all] 错误 2
希望能够解决
The text was updated successfully, but these errors were encountered: