Closed cptanalatriste closed 4 years ago
Got this error:
WARNING:tensorflow:From /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/ops/math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
Traceback (most recent call last):
File "fermodel_example_webcam.py", line 26, in
The code I pasted in the issue will not fail, It will exit if frames value is None.
@anjutiwari I manage to replicate the flaky image capture after executing the script multiple times.
Inspired by the code you pasted, I implemented some modifications: Now before capture, I verify access to the camera and try multiple times to obtain a frame (with a threshold for tries). Can you please check if the flakiness persist?
A fix for webcam image storage and EmoPy emotion assessment.