Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
transybao1393 authored and transybao1393 committed Aug 4, 2023
1 parent 4206238 commit 43d50eb
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
Binary file removed .DS_Store
Binary file not shown.
8 changes: 7 additions & 1 deletion mtcnn/code/face_rec_cam.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ def main():
people_detected = set()
person_detected = collections.Counter()

cap = VideoStream(src=0).start()
# macbook webcam
# cap = VideoStream(src=0).start()

# camera rtsp stream
rtsp_url = "rtsp://transybao:transybao93@192.168.68.148:554/stream1"
cap = VideoStream(rtsp_url).start()


while (True):
frame = cap.read()
Expand Down
27 changes: 20 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
### Face Recognition Pipeline
Description: Pipeline for face recognition pipeline. From 1 image to recognition.
# Face Recognition Pipeline
From *1 image* to edge face recognition.

### Why this pipeline shine?
Imagine you have limited resources, you want a realtime solution to server face recognition model for specific person. This pipeline will have you to achive that goal with speed and accuracy.
With just only 1 image for input, you will have a model with realtime running and ready to server in edge devices (cameras, mobile phone,...)

![Face recognition pipeline](resources/face-recognition-pipeline.png)

## Before doing anything
1. Download and create models to mtcnn/models folder from URL https://drive.google.com/file/d/1TTdqNEqYjWTTMYGxm8IT6t41mRef-5Yu/view?usp=sharing
2. Create folder mtcnn/training_data/processed and mtcnn/training_data/raw
3. Create folder /preview
4. Create folder /video
1. Download and create models to __mtcnn/models__ folder from URL https://drive.google.com/file/d/1TTdqNEqYjWTTMYGxm8IT6t41mRef-5Yu/view?usp=sharing
2. Create folder __mtcnn/training_data/processed__ and __mtcnn/training_data/raw__
3. Create folder __/preview__
4. Create folder __/video__

## Installation steps
Follow instruction in Makefile
Please follow instruction in Makefile

## Next steps
- Multi processing and even better multithreading implementation for better memory and CPU usage.
- Python generator pipeline to optimize memory managment.
- Cython / Rust migration
- Improve speed and accuracy when multiple model recognition
- Image Ingestion layer to improve caching and data serving

0 comments on commit 43d50eb

Please sign in to comment.