Hey. when I have all the modules installed but running this gives following error.
workingprototype opened this issue · 2 comments
workingprototype commented
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
raghav7203 commented
@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 commented
@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: