diff --git a/README.md b/README.md index e3e456e..05201bd 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,17 @@ print("Race: ", demography["dominant_race"])

+# Stream + +You can run deepface for real time videos as well. Calling stream function under the DeepFace interface will access your webcam and apply both face recognition and facial attribute analysis. Stream function expects the database folder including face images with jpg extention. VGG-Face is the default face recognition model and cosine similarity is the default distance metric similar to verify function. + +```python +from deepface import DeepFace +DeepFace.stream("/user/database") +``` + +

+ # Installation The easiest way to install deepface is to download it from [PyPI](https://pypi.org/project/deepface/). diff --git a/deepface/stream.py b/deepface/stream.py deleted file mode 100644 index 18545ed..0000000 --- a/deepface/stream.py +++ /dev/null @@ -1,5 +0,0 @@ -#from deepface import DeepFace - -import DeepFace - -DeepFace.stream("C:/Users/IS96273/Desktop/database") \ No newline at end of file