-
Notifications
You must be signed in to change notification settings - Fork 107
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
[Community assistance needed] Smart pointer fix in blob_detector.cpp: OpenCV version #38
Comments
Hello, I have the same issue with OpenCV 4.7.0 built from source on Ubuntu 20.04 LTS. Your workaround works. |
I don't think the solution proposed here works correctly, since I don't think you can just opencv/opencv#20367 is what broke this code. It added the pure virtual On the other hand, I don't see why I think the best solution is to either make Lastly, OpenCV 4.7 added the |
@lopsided98 as they have inheritance now, it should be possible. Anyhow, it now saves the build and makes the software working without faults (for now at least). Could you please propose your solution as a PR making the code cross-version? It looks really interesting, but considerably complex in implementation. |
My solution is simple: switch the base class from |
Building the package from source with Clang 15 and OpenCV 4.7.0 built from source on Ubuntu 22.04 LTS and Mint 22 the following line 9 in
src/costmap_to_dynamic_obstacles/blob_detector.cpp
:produces the error:
BlobDetector: attempt to instantiate an abstract class
, becauseBlobDetector
is inherited fromcv::SimpleBlobDetector
now containing abstract member functions. To harmonize the smart OpenCV pointers instantiation here, the following workaround is used:Could anyone please help me figure out the OpenCV version from which this error appears? Then I will create a pull request with proper definitions to handle the issue.
The text was updated successfully, but these errors were encountered: