face detection
diff --git a/face/.DS_Store b/face/.DS_Store
new file mode 100644
index 0000000..5008ddf
--- /dev/null
+++ b/face/.DS_Store
Binary files differ
diff --git a/face/Dockerfile b/face/Dockerfile
new file mode 100644
index 0000000..8b7641a
--- /dev/null
+++ b/face/Dockerfile
@@ -0,0 +1,10 @@
+FROM python:3
+
+RUN pip help
+RUN pip install torch --no-cache-dir
+RUN pip install torchvision --no-cache-dir
+RUN pip install facenet-pytorch --no-cache-dir
+RUN pip install opencv-python-headless --no-cache-dir
+RUN pip install matplotlib --no-cache-dir
+
+WORKDIR /face
\ No newline at end of file
diff --git a/face/detected.jpg b/face/detected.jpg
new file mode 100644
index 0000000..dfd5bfd
--- /dev/null
+++ b/face/detected.jpg
Binary files differ
diff --git a/face/face.py b/face/face.py
new file mode 100644
index 0000000..4dc874f
--- /dev/null
+++ b/face/face.py
@@ -0,0 +1,16 @@
+from facenet_pytorch import MTCNN
+import cv2
+from PIL import Image, ImageDraw, ImageColor
+import numpy as np
+from matplotlib import pyplot as plt
+
+mtcnn = MTCNN(keep_all=True)
+
+img = Image.open("face.jpg")
+
+boxes, _ = mtcnn.detect(img)
+draw = ImageDraw.Draw(img)
+for i, box in enumerate(boxes):
+ draw.rectangle(((box[0], box[1]), (box[2], box[3])), outline="red")
+img.save("detected.jpg")
+#print(face)
diff --git a/face/gl.jpg b/face/gl.jpg
new file mode 100644
index 0000000..8957a57
--- /dev/null
+++ b/face/gl.jpg
Binary files differ
diff --git a/face/harry.jpg b/face/harry.jpg
new file mode 100644
index 0000000..f5a95b1
--- /dev/null
+++ b/face/harry.jpg
Binary files differ