dnn: fix High-Level public API (cv::dnn::Model class)#18711
dnn: fix High-Level public API (cv::dnn::Model class)#18711opencv-pushbot merged 1 commit intoopencv:masterfrom
Conversation
|
Am I right that we should proxy dnn::Net to introduce private fields like discussed here? |
No, all private fields should be hidden. |
So why we need to break this inheritance? |
|
Because we should not have this inheritance exposing excessive Net internals (there is a comment about that in the patch). |
There is still a question how to deal with algorithms with multiple DL networks (SiamRPN++). |
- proxy selected Net methods only (don't derive from Net directly) - default Model ctor is protected
relates #14780
This refactoring is conservative enough and it doesn't introduce changes in existed code from:
Required for integration of #17570