1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Merge pull request #25709 from dkurt:wrap_addLayer

* Wrap dnn addLayer
* Add typing stubs
This commit is contained in:
Dmitry Kurtaev
2024-06-07 20:39:44 +03:00
committed by GitHub
parent bef5a87680
commit 3700f9e1e9
4 changed files with 41 additions and 2 deletions
+2 -2
View File
@@ -533,7 +533,7 @@ CV__DNN_INLINE_NS_BEGIN
* @param params parameters which will be used to initialize the creating layer.
* @returns unique identifier of created layer, or -1 if a failure will happen.
*/
int addLayer(const String &name, const String &type, const int &dtype, LayerParams &params);
CV_WRAP int addLayer(const String &name, const String &type, const int &dtype, LayerParams &params);
/** @overload Datatype of output blobs set to default CV_32F */
int addLayer(const String &name, const String &type, LayerParams &params);
@@ -541,7 +541,7 @@ CV__DNN_INLINE_NS_BEGIN
/** @brief Adds new layer and connects its first input to the first output of previously added layer.
* @see addLayer()
*/
int addLayerToPrev(const String &name, const String &type, const int &dtype, LayerParams &params);
CV_WRAP int addLayerToPrev(const String &name, const String &type, const int &dtype, LayerParams &params);
/** @overload */
int addLayerToPrev(const String &name, const String &type, LayerParams &params);