aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2020-01-07 17:30:34 -0800
committerHongxu Jia <hongxu.jia@windriver.com>2020-01-07 17:30:34 -0800
commit083221037fe9f9a467af69ae0bdc06029888001c (patch)
tree337292c1d3c2a777f438650d96e5c79d7a02d5af
parent7982c8c476ae2a81ea444014adfb1ce38f13c6c2 (diff)
downloadmeta-tensorflow-master.tar.gz
meta-tensorflow-master.tar.bz2
meta-tensorflow-master.zip
recognize_face.py: fix 'Namespace' object has no attribute 'save'HEADmaster
The issue was caused by commit [bad2757 meta-demo/conf/layer.conf: do not support to save avi video], clean it. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
-rw-r--r--meta-demo/recipes-demo/face-detection/files/recognize_face.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/meta-demo/recipes-demo/face-detection/files/recognize_face.py b/meta-demo/recipes-demo/face-detection/files/recognize_face.py
index 16657f7..59d043c 100644
--- a/meta-demo/recipes-demo/face-detection/files/recognize_face.py
+++ b/meta-demo/recipes-demo/face-detection/files/recognize_face.py
@@ -67,12 +67,8 @@ if __name__ == "__main__":
rv, frame = camera.read()
if rv:
_face_detection(frame)
- if args.save:
- out.write(frame)
cv.imshow('Video', frame)
# When everything done, release the capture
camera.release()
- if args.save:
- out.release()
cv.destroyAllWindows()