Emotion-recognition icon indicating copy to clipboard operation
Emotion-recognition copied to clipboard

Hey. when I have all the modules installed but running this gives following error.

Open workingprototype opened this issue 6 years ago • 2 comments

Traceback (most recent call last): File "real_time_video.py", line 1, in from keras.preprocessing.image import img_to_array ImportError: No module named keras.preprocessing.image

workingprototype avatar Jan 23 '19 23:01 workingprototype

@thescientifichuman Has same issue with Tensorflow 2.0. I changed the imports from keras.preprocessing.image import img_to_array to tensorflow.keras.preprocessing.image import img_to_array and from tensorflow.keras.models import load_model and the issue seemed to have gone away.

raghav7203 avatar Apr 13 '20 14:04 raghav7203

@omar178 I have commited the code change for the real_time_video.py. I have tested, it is working fine. Please find below the pull request:

raghav7203 avatar Apr 13 '20 14:04 raghav7203