Skip to content

Conversation

@thaiat
Copy link
Contributor

@thaiat thaiat commented Nov 11, 2016

This exposes a static method run_multiple on dlib.fhog_object_detector that accepts a list (python list) of detectors

The results have the same form as for the run method

Example:

detector_1= dlib.fhog_object_detector("object_detector1.svm")
detector2 = dlib.fhog_object_detector("object_detector2.svm")
detectors = [detector1, detector2]
retval = dlib.fhog_object_detector.run_multiple(
    detectors, 
    image, 
    upsample_num_times=0,  
    adjust_threshold=0.0)

Copy link
Owner

@davisking davisking left a comment

Choose a reason for hiding this comment

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

Thanks, looks good except for a minor typedef thing.

{
typedef object_detector<scan_fhog_pyramid<pyramid_down<6> > > simple_object_detector;

typedef scan_fhog_pyramid<pyramid_down<6> > image_scanner_type;
Copy link
Owner

Choose a reason for hiding this comment

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

I think you should be able to use the simple_object_detector everywhere here, so this new typedef isn't needed. It would also make it clear that all these pieces of code must operate on the same type, simple_object_detector, which I'm pretty sure is the case.

@davisking davisking merged commit 23785d5 into davisking:master Nov 12, 2016
@davisking
Copy link
Owner

Awesome, thanks for the PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants