- added
video_face_rec.py/faces_split_timestamps
return value for all the enteries a faces appears - added
video_face_rec.py/refine_results
to remove single frames faces from enteries return, but not activated in 1st appearance return - fixed
timestamp
= 0 by the end of the video - fixed
target_fps
having value less than 1 which resulted in corrupted video output
- restructured the files into folders
/face_rec_code/
: for all the python code/face_rec_files/
: for the videos and pictures
- split the code into 2 python files
face_rec_code/video_face_rec.py
for loading the folder and files then the analysis codeface_rec_code/app.py
for running the flask server
- output unknown persons photos and labeled video are saved inside a folder by the name of the video inside
./unknown/
- changed
video_face_rec.py/run
tovideo_face_rec.py/pipeline
with default parameters in case no parameters passed - added 2
app.py/run
methods in the serverapp.py/run_defaults
- GET: uses thevideo_face_rec.py/pipeline
with default parameters, doesn't take any argumentsapp.py/run_custom
- POST: uses thevideo_face_rec.py/pipeline
with customs parameters, takes the parameters from json object from the post request
- enhanced the
video_face_rec.py/confirm_dirs
to check all the directories and files are correct - added
video_face_rec.py/fetch_video_full_dir
to get the video for the analysis (either from default or custom run) - added tolerance parameter in the analysis
- moved code for saving photos and video to seperate functions
video_face_rec.py/save_photo
&video_face_rec.py/save_video
- changed the flask server running to more stable
app.py/WSGIServer
- analysis terminal prints are now in minutes & seconds, ex:"time: 0m:25s - Found 1 faces, recognized: Unknown"