Skip to content

Commit

Permalink
Remove face recognition, update versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-matera committed Jul 22, 2024
1 parent e326657 commit c5809a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 55 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Build a Jupyter Stack specific for my Python for Everyone class.
#

FROM docker.io/jupyter/scipy-notebook:hub-4.0.2
FROM quay.io/jupyter/scipy-notebook:lab-4.2.4
USER root
RUN apt update -y && apt install -y openssh-client wamerican tree && apt clean -y
USER $NB_UID
Expand All @@ -11,9 +11,9 @@ RUN pip install -r requirements.txt

# Autoload my extensions.
RUN ipython profile create default
COPY <<EOF ${HOME}/.ipython/profile_default/ipython_config.py
c = get_config() # noqa: F821
c.InteractiveShellApp.extensions.append('doctags')
EOF
#COPY <<EOF ${HOME}/.ipython/profile_default/ipython_config.py
#c = get_config() # noqa: F821
#c.InteractiveShellApp.extensions.append('doctags')
#EOF

ENV JUPYTER_ENABLE_LAB yes
50 changes: 0 additions & 50 deletions Lessons/02_using_the_turtle.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -444,56 +444,6 @@
"tu.move(20)"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"tags": []
},
"source": [
"## Face Recognition \n",
"\n",
"The turtle is capable of recognizing faces in the image loaded into the canvas. The `find_face` function returns a `list` with information about each of the faces that it found. Each list contains a `dict` with landmarks in the face."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"tu.new()\n",
"tu.background(\"images/forrest_gump.jpeg\")\n",
"\n",
"faces = tu.find_faces()\n",
"face = faces[0] # The first face in the list \n",
"\n",
"# Draw a box around the face. The top/bottom, left_right\n",
"# landmarks show us where the face was found and contain \n",
"# a single point.\n",
"tu.width = 2\n",
"tu.color = 'yellow'\n",
"tu.pen_up()\n",
"tu.pos = face['top_right']\n",
"tu.pen_down()\n",
"tu.pos = face['top_left']\n",
"tu.pos = face['bottom_left']\n",
"tu.pos = face['bottom_right']\n",
"tu.pos = face['top_right']\n",
"\n",
"# The feature landmarks are outlines of facial features. \n",
"tu.color = 'red'\n",
"tu.fill = 'orange'\n",
"\n",
"tu.pen_up()\n",
"tu.pos = face['top_lip'][0]\n",
"tu.pen_down()\n",
"with tu.polygon():\n",
" for dot in face['top_lip']:\n",
" tu.pos = dot\n",
" \n"
]
},
{
"attachments": {},
"cell_type": "markdown",
Expand Down

0 comments on commit c5809a9

Please # to comment.