Error deserializing object of type int

这个是什么问题,我找了好多方法都解决不了

代码没有错,但是就是运行不了。
求大神解答

RuntimeError                              Traceback (most recent call last)
<ipython-input-2-9d4046540513> in <module>
     50 if __name__ == "__main__":
     51 
---> 52     feature()

<ipython-input-2-9d4046540513> in feature()
     28     image_file = "D:\\1.jpg"
     29     detector = dlib.get_frontal_face_detector()
---> 30     predictor = dlib.shape_predictor("C:\\Users\\Administrator\\Desktop\\shibiefengleqi\\haarcascade_frontalface_default.xml")
     31     image = cv2.imread(image_file)
     32     image = resize(image, width=1200)

RuntimeError: Error deserializing object of type int
查看全部
weixin_44333322
weixin_44333322
2019/07/16 13:46
  • python
  • tensorflow
  • 人工智能
  • 点赞
  • 收藏
  • 回答
    私信

2个回复