Skip to content

Commit 65b02cc

Browse files
authored
Merge pull request opencv#17742 from SoheibKadi/DetectionOutput_layer_doc
Adding comment from source code to DetectionOutputLayer class documentation
2 parents 1c8ee3f + 6bed5c1 commit 65b02cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/dnn/include/opencv2/dnn/all_layers.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,14 @@ CV__DNN_EXPERIMENTAL_NS_BEGIN
598598
static Ptr<RegionLayer> create(const LayerParams& params);
599599
};
600600

601+
/**
602+
* @brief Detection output layer.
603+
*
604+
* The layer size is: @f$ (1 \times 1 \times N \times 7) @f$
605+
* where N is [keep_top_k] parameter multiplied by batch size. Each row is:
606+
* [image_id, label, confidence, xmin, ymin, xmax, ymax]
607+
* where image_id is the index of image input in the batch.
608+
*/
601609
class CV_EXPORTS DetectionOutputLayer : public Layer
602610
{
603611
public:

0 commit comments

Comments
 (0)