Skip to content

DNN: Object detect sample: Update functionality - #13670

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
allnes:dnn_fix_obj_detect_sample
Feb 5, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
allnes:dnn_fix_obj_detect_sample

Conversation

@allnes
allnes force-pushed the dnn_fix_obj_detect_sample branch 5 times, most recently from 6c30de7 to 0047687 Compare January 29, 2019 12:16
@allnes

allnes commented Jan 29, 2019

Copy link
Copy Markdown
Member Author

@dkurt pls reviwe me

Comment thread samples/dnn/object_detection.cpp Outdated
std::vector<float> confidences;
std::vector<Rect> boxes;
if (net.getLayer(0)->outputNameToIndex("im_info") != -1) // Faster-RCNN or R-FCN
if (net.getLayer(0)->outputNameToIndex("im_info") != -1 || outLayerType == "DetectionOutput") // Faster-RCNN or R-FCN

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use just outLayerType == "DetectionOutput" statement here? And please update a comment Faster-RCNN or R-FCN to Faster-RCNN or R-FCN or SSD.

Comment thread samples/dnn/object_detection.cpp Outdated
@@ -1,5 +1,6 @@
#include <fstream>
#include <sstream>
#include <iostream>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it used?

Comment thread samples/dnn/object_detection.cpp Outdated
}
}
else if (outLayerType == "Region")
else if (outLayerType == "Region" || outLayerType == "PriorBoxClustered")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no PriorBoxClustered in person-detection-retail-0002. Does PR fix more networks which have PriorBoxClustered as an output layer?

@allnes
allnes force-pushed the dnn_fix_obj_detect_sample branch 2 times, most recently from e97de59 to cca2c4b Compare January 30, 2019 14:47
@allnes

allnes commented Jan 30, 2019

Copy link
Copy Markdown
Member Author

@dkurt PR done

@dkurt dkurt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 👍

@opencv-pushbot
opencv-pushbot merged commit cca2c4b into opencv:3.4 Feb 5, 2019
@alalek alalek mentioned this pull request Feb 5, 2019
@allnes
allnes deleted the dnn_fix_obj_detect_sample branch February 5, 2019 18:58
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants