question
8 answers
1 votes
주피터 노트북으로 얼굴인식을 통한 감정인식 프로그램을 하려고 오픈소스를 찾아보다가
https://m.blog.naver.com/roboholic84/221633210887 해당 글의 방법대로 적용하였습니다 ㅜㅜ
그런데
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[13], line 3
1 import cv2
2 import numpy as np
----> 3 from keras.preprocessing.image import img_to_array
4 from keras.models import load_model
6 # Face detection XML load and trained model loading
ImportError: cannot import name 'img_to_array' from 'keras.preprocessing.image' (C:\Users\82107\anaconda3\lib\site-packages\keras\preprocessing\image.py)
이와 같은 에러가 발생하여 케라스 버전 문제인 것 같아서 에러 검색해보고 수정하라는 대로 수정도 해 봤는데 에러가 더 길어져서요ㅜㅜ
혹시 가능하시다면 코드한번 봐주실 수 있을까요?
버전은 케라스 2.11.0 numpy 1.23.5 tensorflow 2.11.0 opencv-python 4.7.0.72 입니다.
김리아
asked at
2023-03-15 23:29:45
question
1 answers
1 votes
안녕하세요.
테스트 겸 해서 글 남깁니다. ^^
고맙습니다.
홍원규
asked at
2023-03-12 16:51:01