Skip to content

Commit

Permalink
Merge pull request #457 from rasbt/image-module
Browse files Browse the repository at this point in the history
Setup a mlxtend.image placeholder module
  • Loading branch information
rasbt committed Nov 2, 2018
2 parents a9a4d61 + 96fc652 commit 19884fe
Show file tree
Hide file tree
Showing 7 changed files with 151 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ pages:
- user_guide/general_concepts/gradient-optimization.md
- user_guide/general_concepts/linear-gradient-derivative.md
- user_guide/general_concepts/regularization-linear.md
- image:
- user_guide/image/extract_face_landmarks.md
- math:
- user_guide/math/num_combinations.md
- user_guide/math/num_permutations.md
Expand Down
3 changes: 3 additions & 0 deletions docs/sources/USER_GUIDE_INDEX.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
- [linear-gradient-derivative](user_guide/general_concepts/linear-gradient-derivative.md)
- [regularization-linear](user_guide/general_concepts/regularization-linear.md)

## `image`
- [extract_face_landmarks](user_guide/image/extract_face_landmarks.md)

## `math`
- [num_combinations](user_guide/math/num_combinations.md)
- [num_permutations](user_guide/math/num_permutations.md)
Expand Down
113 changes: 113 additions & 0 deletions docs/sources/user_guide/image/extract_face_images.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Counter"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"A function extract facial landmarks."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"> from mlxtend.image import extract_face_landmarks"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Overview"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The `extract_face_landmarks` function ..."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### References\n",
"\n",
"- -"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 1 - Text"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Note that the first number displays the current iteration, and the second number shows the time elapsed after initializing the `Counter`."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## API"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"with open('../../api_modules/mlxtend.image/extract_face_landmarks.md', 'r') as f:\n",
" print(f.read())"
]
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.6"
},
"toc": {
"nav_menu": {},
"number_sections": false,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 1
}
9 changes: 9 additions & 0 deletions mlxtend/image/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Sebastian Raschka 2014-2018
# mlxtend Machine Learning Library Extensions
# Author: Sebastian Raschka <sebastianraschka.com>
#
# License: BSD 3 clause

from .extract_face_landmarks import extract_face_landmarks

__all__ = ["extract_face_landmarks"]
11 changes: 11 additions & 0 deletions mlxtend/image/extract_face_landmarks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Sebastian Raschka 2014-2018
# mlxtend Machine Learning Library Extensions
#
# A counter class for printing the progress of an iterator.
# Author: Sebastian Raschka <sebastianraschka.com>
#
# License: BSD 3 clause


def extract_face_landmarks():
pass
11 changes: 11 additions & 0 deletions mlxtend/image/tests/test_extract_face_landmarks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Sebastian Raschka 2014-2018
# mlxtend Machine Learning Library Extensions
# Author: Sebastian Raschka <sebastianraschka.com>
#
# License: BSD 3 clause

from mlxtend.image import extract_face_landmarks


def test_defaults():
extract_face_landmarks()
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Information Analysis',
Expand Down

0 comments on commit 19884fe

Please sign in to comment.