import numpy as np
import cv2
import pickle
frameWidth= 640 # CAMERA RESOLUTION
frameHeight = 480
brightness = 180
threshold = 0.75 # PROBABLITY THRESHOLD
font = cv2.FONT_HERSHEY_SIMPLEX
# SETUP THE VIDEO CAMERA
cap = cv2.VideoCapture(0)
cap.set(3, frameWidth)
cap.set(4, frameHeight)
cap.set(10, brightness)
# IMPORT THE TRANNIED MODEL
pickle_in=open("model_trained.p","rb")
model=pickle.load(pickle_in)
我遇到了这个错误: ModuleNotFoundError: No module named 'keras.saving.pickle_utils' 如何解决?
附:我正在尝试在树莓派3上运行此代码。我已经安装了tensorflow及其相关包,并尝试导入tensorflow和keras,没有遇到任何问题。