diff --git a/modules/dnn/include/opencv2/dnn/dnn.hpp b/modules/dnn/include/opencv2/dnn/dnn.hpp index d2155894d..1d747eef7 100644 --- a/modules/dnn/include/opencv2/dnn/dnn.hpp +++ b/modules/dnn/include/opencv2/dnn/dnn.hpp @@ -74,7 +74,7 @@ namespace dnn static void unregisterLayer(const String &type); - static Ptr createLayerInstance(const String &type, LayerParams& params = LayerParams()); + static Ptr createLayerInstance(const String &type, LayerParams& params); private: LayerRegister(); @@ -115,7 +115,7 @@ namespace dnn Net(); ~Net(); - int addLayer(const String &name, const String &type, LayerParams ¶ms = LayerParams()); + int addLayer(const String &name, const String &type, LayerParams ¶ms); int getLayerId(LayerId layer); void deleteLayer(LayerId layer);