mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge branch 4.x
This commit is contained in:
@@ -608,13 +608,13 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
* @param outputName name for layer which output is needed to get
|
||||
* @details If @p outputName is empty, runs forward pass for the whole network.
|
||||
*/
|
||||
CV_WRAP void forward(OutputArrayOfArrays outputBlobs, const String& outputName = String());
|
||||
CV_WRAP void forward(CV_ND OutputArrayOfArrays outputBlobs, const String& outputName = String());
|
||||
|
||||
/** @brief Runs forward pass to compute outputs of layers listed in @p outBlobNames.
|
||||
* @param outputBlobs contains blobs for first outputs of specified layers.
|
||||
* @param outBlobNames names for layers which outputs are needed to get
|
||||
*/
|
||||
CV_WRAP void forward(OutputArrayOfArrays outputBlobs,
|
||||
CV_WRAP void forward(CV_ND OutputArrayOfArrays outputBlobs,
|
||||
const std::vector<String>& outBlobNames);
|
||||
|
||||
/** @brief Runs forward pass to compute outputs of layers listed in @p outBlobNames.
|
||||
@@ -661,7 +661,7 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
* as:
|
||||
* \f[input(n,c,h,w) = scalefactor \times (blob(n,c,h,w) - mean_c)\f]
|
||||
*/
|
||||
CV_WRAP void setInput(InputArray blob, const String& name = "",
|
||||
CV_WRAP void setInput(CV_ND InputArray blob, const String& name = "",
|
||||
double scalefactor = 1.0, const Scalar& mean = Scalar());
|
||||
|
||||
/** @brief Sets the new value for the learned param of the layer.
|
||||
@@ -672,8 +672,8 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
* @note If shape of the new blob differs from the previous shape,
|
||||
* then the following forward pass may fail.
|
||||
*/
|
||||
CV_WRAP void setParam(int layer, int numParam, const Mat &blob);
|
||||
CV_WRAP inline void setParam(const String& layerName, int numParam, const Mat &blob) { return setParam(getLayerId(layerName), numParam, blob); }
|
||||
CV_WRAP void setParam(int layer, int numParam, CV_ND const Mat &blob);
|
||||
CV_WRAP inline void setParam(const String& layerName, int numParam, CV_ND const Mat &blob) { return setParam(getLayerId(layerName), numParam, blob); }
|
||||
|
||||
/** @brief Returns parameter blob of the layer.
|
||||
* @param layer name or id of the layer.
|
||||
|
||||
Reference in New Issue
Block a user