readme for stream

This commit is contained in:
Şefik Serangil 2020-03-31 21:49:46 +03:00
parent bae9fb123d
commit 67a86ef595
2 changed files with 11 additions and 5 deletions

View File

@ -73,6 +73,17 @@ print("Race: ", demography["dominant_race"])
<p align="center"><img src="https://raw.githubusercontent.com/serengil/deepface/master/tests/dataset/test-case-3.jpg" width="95%" height="95%"></p> <p align="center"><img src="https://raw.githubusercontent.com/serengil/deepface/master/tests/dataset/test-case-3.jpg" width="95%" height="95%"></p>
# 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")
```
<p align="center"><img src="https://raw.githubusercontent.com/serengil/deepface/master/icon/deepface-stream.jpg" width="90%" height="90%"></p>
# Installation # Installation
The easiest way to install deepface is to download it from [PyPI](https://pypi.org/project/deepface/). The easiest way to install deepface is to download it from [PyPI](https://pypi.org/project/deepface/).

View File

@ -1,5 +0,0 @@
#from deepface import DeepFace
import DeepFace
DeepFace.stream("C:/Users/IS96273/Desktop/database")