Skip to content

Object detector module#3267

Merged
stefanv merged 69 commits intoscikit-image:masterfrom
glemaitre:is/detector
Sep 6, 2018
Merged

Object detector module#3267
stefanv merged 69 commits intoscikit-image:masterfrom
glemaitre:is/detector

Conversation

@glemaitre
Copy link
Contributor

@glemaitre glemaitre commented Jul 14, 2018

superseded #1570

This PR is trying to rebase the original PR #1570

…ecure: just return the filepath, otherwise the file cant be proberly closed.
@stefanv stefanv mentioned this pull request Jul 26, 2018
@stefanv
Copy link
Member

stefanv commented Jul 26, 2018

Let's move this to the feature submodule, since we don't seem to have a lot of other functionality for the detect submodule proposed here (at least, not since 2015 when this work started).

@stefanv
Copy link
Member

stefanv commented Jul 26, 2018

There have been some conversations about whether to use a standard sklearn-like fit interface. Other potential functions to consider for a similar interface:

  • ORB, CenSURE
  • RANSAC

@codecov-io
Copy link

codecov-io commented Jul 26, 2018

Codecov Report

Merging #3267 into master will increase coverage by <.01%.
The diff coverage is 90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3267      +/-   ##
==========================================
+ Coverage   86.81%   86.81%   +<.01%     
==========================================
  Files         339      341       +2     
  Lines       27385    27403      +18     
==========================================
+ Hits        23773    23790      +17     
- Misses       3612     3613       +1
Impacted Files Coverage Δ
skimage/feature/setup.py 17.24% <0%> (-1.28%) ⬇️
skimage/data/__init__.py 96.07% <100%> (+0.07%) ⬆️
skimage/data/_detect.py 100% <100%> (ø)
skimage/future/__init__.py 100% <100%> (ø) ⬆️
skimage/feature/tests/test_cascade.py 100% <100%> (ø)
skimage/feature/__init__.py 100% <100%> (ø) ⬆️
skimage/restoration/tests/test_denoise.py 99.47% <0%> (ø) ⬆️
skimage/draw/_random_shapes.py 97.89% <0%> (ø) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f03a2c...9679ef8. Read the comment docs.

@glemaitre glemaitre closed this Aug 31, 2018
@glemaitre glemaitre reopened this Aug 31, 2018
@glemaitre
Copy link
Contributor Author

@emmanuelle @stefanv . I rebased the code and the tests are passing.
What would be the way to go: merge as it is or you want to discuss and integrate some improvements.

@emmanuelle
Copy link
Member

@glemaitre thank you for the changes!

I would support to have an API closer to scikit-learn with fit and predict, since users of this feature will probably have some background in machine learning (and scikit-learn), but I would think it's better to merge the PR and then do another PR changing the API for Cascade, ORB, ransac etc.

=========================================

This example shows how to detect faces on an image using object detection
framework.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a sentence like "It is an illustration of how to use machine learning for computer vision" ?


plt.show()

"""
Copy link
Member

Choose a reason for hiding this comment

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

I don't think the following lines are required, since there is only one figure.

data_dir = _os.path.abspath(_os.path.dirname(__file__))


def frontal_face_cascade_xml():
Copy link
Member

Choose a reason for hiding this comment

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

The name is not very clear, I would prefer frontal_face_cascade_filename but it might be a matter of taste only, feel free to ignore this particular remark.

@glemaitre
Copy link
Contributor Author

@emmanuelle I addressed the issues.

@glemaitre
Copy link
Contributor Author

The error is independent. The Travis build should be restarted.

@emmanuelle
Copy link
Member

Thanks @glemaitre +1 for merging. @stefanv the ball is yours :-)

@stefanv stefanv merged commit 2f436f1 into scikit-image:master Sep 6, 2018
@stefanv
Copy link
Member

stefanv commented Sep 6, 2018

It's very exciting to see this work finally make its way into skimage! Congratulations @warmspringwinds, and thank you very much @glemaitre for all the work you put in to complete this feature.

@jni
Copy link
Member

jni commented Sep 6, 2018

I'll also add that we are all on board with trying to make a scikit-learn compatible interface for this and other feature detectors.

@warmspringwinds
Copy link
Contributor

That's amazing!

Thank you so much @glemaitre for all your work and @vighneshbirodkar @stefanv @jni for mentoring during this project! Hopefully this new feature will find a lot of applications in the scikit-image community :)

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.

7 participants