mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 19:45:21 +00:00
readme for stream
This commit is contained in:
parent
bae9fb123d
commit
67a86ef595
11
README.md
11
README.md
@ -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>
|
||||
|
||||
# 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
|
||||
|
||||
The easiest way to install deepface is to download it from [PyPI](https://pypi.org/project/deepface/).
|
||||
|
@ -1,5 +0,0 @@
|
||||
#from deepface import DeepFace
|
||||
|
||||
import DeepFace
|
||||
|
||||
DeepFace.stream("C:/Users/IS96273/Desktop/database")
|
Loading…
x
Reference in New Issue
Block a user